Subject: Package problems with perl5 package?
To: None <current-users@NetBSD.ORG>
From: the Riz <riz@beast.boogers.sf.ca.us>
List: current-users
Date: 10/16/1997 09:25:49
Time for a sanity check-

I'm checking out the pkg stuff in hopes of building a lot of the packages
for 1.3, for the alpha and others.  Anyway, it looks like it has a *lot* of
potential, but I've run into a few problems, the most disturbing of which
is when I try to build perl5 on alpha.  (I haven't tried it on other
architectures yet, cuz I don't want to potentially screw up my perl install
there)

The package builds fine;  I can do the make, and the make install just
fine.  When I try to create the package using "make package", I get the
following:
paixpc2# make package
>> Checksum OK for perl5.004_01.tar.gz.
===>  Building package for perl-5.00401
Creating package perl-5.00401.tgz
Registering depends:.
Creating gzip'd tar ball in '/tmp/pkgsrc/lang/perl5/perl-5.00401.tgz'
tar: can't add file bin/sperl5.00401 : No such file or directory
tar: can't add file lib/perl5/<$ARCH>-netbsd/5.00401/CORE/EXTERN.h : No
such file or directory
tar: can't add file lib/perl5/<$ARCH>-netbsd/5.00401/CORE/INTERN.h : No
such file or directory
tar: can't add file lib/perl5/<$ARCH>-netbsd/5.00401/CORE/XSUB.h : No such
file or directory

[many pages deleted]

This, of course, corresponds to lines in the PLIST file of the form:
lib/perl5/<$ARCH>-netbsd/5.00401/CORE/EXTERN.h
lib/perl5/<$ARCH>-netbsd/5.00401/CORE/INTERN.h
lib/perl5/<$ARCH>-netbsd/5.00401/CORE/XSUB.h
lib/perl5/<$ARCH>-netbsd/5.00401/CORE/av.h

...it seems that pkg_create is supposed to expand <$ARCH> to alpha (the
directory lib/perl5/alpha-netbsd exists with the above files in place), but
it doesn't, and tar gets confused.  

Can someone with a better knowledge of the package system tell me if I'm
interpreting this correctly?  Is there some critical variable I've
forgotten to set?  I'm this close > < to being really excited about the
possibilities this package system has to offer... Thanks a bunch to all
those who have put in the effort to create it (on the FreeBSD side) and to
integrate it into NetBSD.

+j

-- 
Jeff Rizzo                                         http://boogers.sf.ca.us/~riz