Subject: Re: bulk build of pkgsrc-2004Q3?
To: Hubert Feyrer <hubert@feyrer.de>
From: Hauke Fath <hf@spg.tu-darmstadt.de>
List: tech-pkg
Date: 09/29/2004 14:55:38
Hubert Feyrer wrote:
> On Wed, 29 Sep 2004, Hauke Fath wrote:
> 
>> Usage: pkg_view [-n] [-v] [-i ignore] [-k pkg_dbdir_dflt] [-w viewname]
>> [-d stowdir] [-W viewbase] add|check|delete pkgname... perl: not found
>> Null message body; hope that's ok
>>
>> Bulk build ended: Wed Sep 29 03:58:42 CEST 2004
>>
>> And the promised $REPORT (build.conf) is never written.
>>
>> What is happening here?
> 
> Can you check if
> 1) there is really a perl pkg installed (seems so, from the === msg above)

Yes, and no.

When I chroot to the sandbox, I see
# perl -v
perl: not found
# ls /usr/pkg/bin/
digest         exetags        kttcp          mimencode      rdoc 
    screen         tclsh          zebgrep
dpputlinks     globe          metamutt       rcs2log        rigmem 
    sqlsh.rb       url_handler.sh zfbgrep
# ls /usr/pkg/
bin      cint     crack    cross    emul     etc      include  info 
lib      libdata  libexec  machine  man      packages sbin     share    var
# ls /usr/pkg/packages/
crashme-2.4                nbitools-6.3nb1            p5-Bit-Vector-6.3 
          p5-Scalar-List-Utils-1.13  perl-5.8.4nb1 
sj3-server-bin-2.0.1.20nb3
digest-20021220            openntpd-20040719pnb1      p5-Date-Calc-5.3 
          p5-perl-headers-2.0_RC1    pkgdb.byfile.db            tosha-0.05
mips64emul-0.2             p5-Attribute-Handlers-0.78 
p5-Params-Validate-0.72    perl-5.6.1nb10             sj3-lib-2.0.1.20nb1
#  /usr/pkg/packages/perl-5.8.4nb1/bin/perl -v

This is perl, v5.8.4 built for i386-netbsd

[...]


> 2) check if /usr/pkg/bin (== path to perl binary) is you your $PATH

The path is fine, but apparently the Perl 'make bulk' does not set up 
the pkgviews link farm correctly.

> It should be doable to run the script from /usr/pkg as above for testing 
> purpose ("perl mk/bulk/post-build").
> 
> Also, do you run this inside a chroot? (shouldn't matter, but who knows)

Yes.

> Might be interesting to see what happens at a manual "cd lang/perl5 && 
> make bulk-install", if the same pkg_views error arises.

# make bulk-install
make: don't know how to make bulk-install. Stop

make: stopped in /usr/pkgsrc/lang/perl5
# ls -la
total 40
drwxr-xr-x    5 pkgsrc  wsrc   512 Sep 29 03:58 .
drwxr-xr-x  166 pkgsrc  wsrc  3584 Sep 28 17:34 ..
drwxr-xr-x    2 pkgsrc  wsrc   512 Sep 28 17:34 CVS
-rw-r--r--    1 pkgsrc  wsrc   741 Aug 13  2003 DESCR
-rw-r--r--    1 pkgsrc  wsrc   330 Jan  8  2004 MESSAGE
-rw-r--r--    1 pkgsrc  wsrc  7172 Aug 30 13:16 Makefile
-rw-r--r--    1 pkgsrc  wsrc   496 Aug 13  2003 Makefile.common
-rw-r--r--    1 pkgsrc  wsrc   338 Aug 13  2003 PLIST
-rw-r--r--    1 pkgsrc  wsrc  2537 May  3 17:30 buildlink3.mk
-rw-r--r--    1 pkgsrc  wsrc   996 Apr 13 12:04 distinfo
-rw-r--r--    1 pkgsrc  wsrc  5199 Jul  8 10:33 module.mk
drwxr-xr-x    3 pkgsrc  wsrc   512 Apr 13 12:04 patches
drwxr-xr-x    2 root    wsrc   512 Sep 29 03:58 work
# pwd
/usr/pkgsrc/lang/perl5
#

-- huh?

> Making sure your pkg_install tools are uptodate might be useful too 
> (vanilla 2.0_BETA works for me)

It's a 2.0 beta sandbox on a 2.0 beta machine.

	hauke

-- 
/~\  The ASCII Ribbon Campaign                    Hauke Fath
\ /    No HTML/RTF in email	        Institut für Nachrichtentechnik
  X     No Word docs in email	                  TU Darmstadt
/ \  Respect for open standards              Ruf +49-6151-16-3281