Subject: odd behaviour - pkgsrc on Linux Slackware
To: None <tech-pkg@netbsd.org>
From: Tomasz Luchowski <tomasz@luchowski.com>
List: tech-pkg
Date: 03/29/2003 22:54:32
I'm playing with pkgsrc-current on Slackware 9.0, i386 (bootstrap-pkgsrc).

Trying to build mplayer:

zuntum@zunpc:/usr/pkgsrc/graphics/mplayer# uname -a
Linux zunpc 2.4.20 #2 Mon Mar 17 22:02:15 PST 2003 i686 unknown
zuntum@zunpc:/usr/pkgsrc/graphics/mplayer# bmake
=> Checksum OK for mplayer/MPlayer-0.90rc5.tar.bz2.
===> Extracting for mplayer-0.90rc15
===> Required installed package mplayer-share>=0.90rc15: mplayer-share-0.90rc15 found
===> Required package win32-codecs>=011227: NOT found
===> Verifying reinstall for ../../graphics/win32-codecs
===> win32-codecs-020909nb2 is not available for Linux-2.4.20-i386
===> Returning to build of mplayer-0.90rc15
===> Required installed package cdparanoia>=3.0: cdparanoia-3.0.9.8 found
===> Required installed package mad>=0.14.2b: mad-0.14.2b found
===> Required installed package esound>=0.2.18: esound-0.2.29nb1 found
===> Required installed package libaudiofile>=0.2.1: libaudiofile-0.2.3nb1 found
===> Required installed package gettext-lib>=0.11.5: gettext-lib-0.11.5 found
===> Required installed package libvorbis>=1.0.0.8: libvorbis-1.0.0.8 found
===> Required installed package libogg>=1.0.0.8: libogg-1.0.0.8 found
===> Required installed package faad2>=1.1: faad2-1.1 found
===> Required installed package SDL>=1.2.0: SDL-1.2.5nb3 found
===> Required installed package MesaLib>=5.0: MesaLib-5.0nb1 found
===> Required installed package glut>=5.0: glut-5.0 found
===> Required installed package aalib-x11>=1.4.0.4nb1: aalib-x11-1.4.0.4nb2 found
===> Required installed package jpeg-6b: jpeg-6b found
===> Required installed package libungif>=4.1.0: libungif-4.1.0.1 found
===> Required installed package png>=1.2.4: png-1.2.5nb2 found
===> Required installed package zlib>=1.1.4nb1: zlib-1.1.4nb1 found
===> Required installed package libdvdread>=0.9.4: libdvdread-0.9.4 found
===> Required package nas>=1.4.2: NOT found
===> Verifying reinstall for ../../audio/nas
=> Checksum OK for nas-1.6.src.tar.gz.
===> Extracting for nas-1.6nb1
===> Required installed package x11-links>=0.12: x11-links-0.12 found
===> Patching for nas-1.6nb1
===> Applying pkgsrc patches for nas-1.6nb1
===> Buildlinking for nas-1.6nb1
===> Configuring for nas-1.6nb1
cd /usr/cvs/pkgsrc/audio/nas/work/nas-1.6; for file in                                   config/NetAudio.def;                                    do
/bin/sed        -e "s|@PKG_SYSCONFDIR@|/usr/X11R6/etc/nas|g"     ${file} >> ${file}.fixed;                       /bin/mv -f ${file}.fixed ${file};
done
cd /usr/cvs/pkgsrc/audio/nas/work/nas-1.6; for file in                                   server/nasd.conf.eg                                     server/dda/voxware/auvo
xware.c;                                 do                                                              /bin/sed       -e "s|@DEVOSSAUDIO@||g"          ${file} >> ${fi
le}.fixed;                       /bin/mv -f ${file}.fixed ${file};                       done
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
make Makefiles
/bin/sh: -c: line 1: syntax error near unexpected token `>'
make: [Makefiles] Error 2 (ignored)
make includes
/bin/sh: -c: line 1: syntax error near unexpected token `>'
make: *** [includes] Error 2
*** Error code 2


Let's not think about this too much yet.

If I try to build audio/nas "by hand", it works fine:

zuntum@zunpc:/usr/pkgsrc/audio/nas# bmake clean
===> Cleaning for nas-1.6nb1
zuntum@zunpc:/usr/pkgsrc/audio/nas# bmake
=> Checksum OK for nas-1.6.src.tar.gz.
===> Extracting for nas-1.6nb1
===> Required installed package x11-links>=0.12: x11-links-0.12 found
===> Patching for nas-1.6nb1
===> Applying pkgsrc patches for nas-1.6nb1
===> Buildlinking for nas-1.6nb1
===> Configuring for nas-1.6nb1
cd /usr/cvs/pkgsrc/audio/nas/work/nas-1.6; for file in                                   config/NetAudio.def;                                    do
/bin/sed        -e "s|@PKG_SYSCONFDIR@|/usr/X11R6/etc/nas|g"     ${file} >> ${file}.fixed;                       /bin/mv -f ${file}.fixed ${file};
done
cd /usr/cvs/pkgsrc/audio/nas/work/nas-1.6; for file in                                   server/nasd.conf.eg                                     server/dda/voxware/auvo
xware.c;                                 do                                                              /bin/sed       -e "s|@DEVOSSAUDIO@||g"          ${file} >> ${fi
le}.fixed;                       /bin/mv -f ${file}.fixed ${file};                       done
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
make Makefiles
making Makefiles in include...
        mv -f Makefile Makefile.bak
make[1]: Entering directory `/usr/cvs/pkgsrc/audio/nas/work/nas-1.6'
make[1]: Leaving directory `/usr/cvs/pkgsrc/audio/nas/work/nas-1.6'
make[1]: Entering directory `/usr/cvs/pkgsrc/audio/nas/work/nas-1.6/include'
making Makefiles in include/audio...
        mv -f Makefile Makefile.bak
make[2]: Entering directory `/usr/cvs/pkgsrc/audio/nas/work/nas-1.6/include'
make[2]: Leaving directory `/usr/cvs/pkgsrc/audio/nas/work/nas-1.6/include'
make[2]: Entering directory `/usr/cvs/pkgsrc/audio/nas/work/nas-1.6/include/audio'
make[2]: Nothing to be done for `Makefiles'.
make[2]: Leaving directory `/usr/cvs/pkgsrc/audio/nas/work/nas-1.6/include/audio'
make[1]: Leaving directory `/usr/cvs/pkgsrc/audio/nas/work/nas-1.6/include'
making Makefiles in server...
        mv -f Makefile Makefile.bak
make[1]: Entering directory `/usr/cvs/pkgsrc/audio/nas/work/nas-1.6'
make[1]: Leaving directory `/usr/cvs/pkgsrc/audio/nas/work/nas-1.6'
make[1]: Entering directory `/usr/cvs/pkgsrc/audio/nas/work/nas-1.6/server'
making Makefiles in server/dia...
        mv -f Makefile Makefile.bak

Does anyone know what makes it fail this way? I think I've seen packages failing
when built as depends and then building just fine if "make'd" directly.

-- 
/* Tomasz Luchowski <tomasz@luchowski.com> */