On Wed, Mar 03, 2004 at 10:44:12AM -0500, David R. Morrison wrote:
> The more I think about it, the more I think that %n should be used for the
> truncated name.  That currently shows up in lots of places; not only the
> patch file, but often in the Source: line and so on.

And that's a more common usage than in InstallScript where one needs
to "cp -r doc/html %i/share/%n" and would have to consider adding
%type_pkg things to that %n.

But I still like the idea of having an unversion-name available.
Actually, this could fulfill a long-standing annoyance with our shlibs
policy, namely that %n isn't just the library name. That means we
have:
  Package: libfoo2
  Version: 2.4.1
  Source: mirror:sourceforge:libfoo/libfoo-%v.tar.gz
Gotta retype "libfoo" everywhere. Now we could do:
  Package: libfoo%type_pkg[shlibvers]
  Version: 2.4.1
  Type: shlibvers 2
  Source: mirror:sourceforge:%n/%n-%v.tar.gz

> I think we need a %versioned_name type of percent field for the fully
> expanded name.

Okay, but that particular name is not gonna work. It's ambiguous
whether (using the example above) that should expand to "libfoo2" or
to "2.4.1ersioned_name". "%V" is unused, so maybe "%Versioned_name" or
better yet (since a variant isn't just for versions) "%Variant_name"?

> On the other hand, the name of the "parent", as represented by %N, should
> probably be the versioned name of the parent.  (This would allow splitoffs
> within variant packages to function as they do now.)

Agreed. We're going to have to be very careful how we document %n,
though. In a SplitOff it should probably be the full Package string
(so the Shlibs field doesn't have to be changed).

  Package: foo%type_pkg[-x11]
  Type: -x11 (boolean)
  # %n is foo
  # %Variant_name is either foo-x11 or foo
  SplitOff: <<
    Package: %N-shlibs
    # %N is either foo-x11 or foo
    # %n is either foo-x11-shlibs or foo-shlibs
    #   (*not* always foo-shlibs)
  <<

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to