Subject: pkg/14636: databases/libtool does not build with new perl-5.6.1nb6
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 11/19/2001 00:22:17
>Number:         14636
>Category:       pkg
>Synopsis:       databases/libtool does not build with the new perl-5.6.1nb6
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 18 21:23:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Greg A. Woods
>Release:        pkgsrc updated from rsync'ed CVS on 2001/11/18
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:

System: NetBSD

>Description:

	I had recently upgraded rrdtool to 1.0.33, using pkgsrc, on
	several machines including an old 1.3.3 machine and a couple of
	1.5W machines, all of which have perl-5.00404 installed, and on
	one 1.5W machine which had perl-5.6.1 installed.

	However on the latter system I decided to add some more
	perl-related packages, including net/p5-Net and I quickly
	discovered that it had recently been updated to require
	"perl>=5.6.1nb2".  So I deleted all the many packages requiring
	perl, including my working rrdtool, updated perl (now to
	5.6.1nb6), and started re-building all the packages I had to
	delete.  All went well until I tried to re-build rrdtool.  The
	install bombed out with some missing perl-shared files....

	(I knew I didn't want to upgrade perl!  :-)

>How-To-Repeat:

	Try installing databases/rrdtool on a freshly installed system
	with today's pkgsrc.

	Observe the difference between the last stages of the build,
	first on a system with perl-5.00404 still installed, where the
	rebuild works just fine:

cd perl-shared && /usr/pkg/bin/perl Makefile.PL  
Checking if your kit is complete...
Looks good
Writing Makefile for RRDs
cd perl-shared && gmake
gmake[2]: Entering directory `/var/obj/package/databases/rrdtool/work/rrdtool-1.0.33/perl-shared'
mkdir ./blib
mkdir ./blib/lib
mkdir ./blib/arch
mkdir ./blib/arch/auto
mkdir ./blib/arch/auto/RRDs
mkdir ./blib/lib/auto
mkdir ./blib/lib/auto/RRDs
mkdir ./blib/man3
cp ntmake.pl ./blib/lib/ntmake.pl
cp RRDs.pm ./blib/lib/RRDs.pm
/usr/pkg/bin/perl -I/usr/pkg/lib/perl5/i386-netbsd/5.00404 -I/usr/pkg/lib/perl5 /usr/pkg/lib/perl5/ExtUtils/xsubpp  -typemap /usr/pkg/lib/perl5/ExtUtils/typemap RRDs.xs >RRDs.tc && mv RRDs.tc RRDs.c
gcc -c -I../src -I/usr/pkg/include -I/usr/pkg/include -I/opt/local/include -O2    -DVERSION=\"1.000331\" -DXS_VERSION=\"1.000331\" -DPIC -fPIC  -I/usr/pkg/lib/perl5/i386-netbsd/5.00404/CORE -DPERLPATCHLEVEL=4 RRDs.c
Running Mkbootstrap for RRDs ()
chmod 644 RRDs.bs
LD_RUN_PATH="" gcc -o blib/arch/auto/RRDs/RRDs.so  --whole-archive -shared  -L/usr/pkg/lib -L/opt/local/lib RRDs.o -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -L../src/.libs/ -lrrd_private -lcgi -lm -lgd -lpng -lz -ljpeg -lttf -lXpm -lX11 -lintl    
chmod 755 blib/arch/auto/RRDs/RRDs.so
cp RRDs.bs ./blib/arch/auto/RRDs/RRDs.bs
chmod 644 blib/arch/auto/RRDs/RRDs.bs
Manifying ./blib/man3/RRDs.3
gmake[2]: Leaving directory `/var/obj/package/databases/rrdtool/work/rrdtool-1.0.33/perl-shared'
gmake[1]: Leaving directory `/var/obj/package/databases/rrdtool/work/rrdtool-1.0.33'


	now on the system with perl-5.6.1nb6:

cd perl-shared && /usr/pkg/bin/perl Makefile.PL  
Checking if your kit is complete...
Looks good
Writing Makefile for RRDs
cd perl-shared && gmake
gmake[2]: Entering directory `/work/pkgobj/databases/rrdtool/work/rrdtool-1.0.33/perl-shared'
cp ntmake.pl blib/lib/ntmake.pl
cp RRDs.pm blib/lib/RRDs.pm
/usr/pkg/bin/perl -I/usr/pkg/lib/perl5/5.6.1/i386-netbsd -I/usr/pkg/lib/perl5/5.6.1 /usr/pkg/lib/perl5/5.6.1/ExtUtils/xsubpp  -typemap /usr/pkg/lib/perl5/5.6.1/ExtUtils/typemap RRDs.xs > RRDs.xsc && mv RRDs.xsc RRDs.c
cc -c -I../src -I/usr/pkg/include -DDEBUGGING -fno-strict-aliasing -g -pipe   -DVERSION=\"1.000331\" -DXS_VERSION=\"1.000331\"  -I/usr/pkg/lib/perl5/5.6.1/i386-netbsd/CORE -DPERLPATCHLEVEL=6 RRDs.c
rm -rf blib/arch/auto/RRDs/RRDs.a
/usr/bin/ar cr blib/arch/auto/RRDs/RRDs.a RRDs.o && : blib/arch/auto/RRDs/RRDs.a
chmod 755 blib/arch/auto/RRDs/RRDs.a
gmake[2]: Leaving directory `/work/pkgobj/databases/rrdtool/work/rrdtool-1.0.33/perl-shared'
gmake[1]: Leaving directory `/work/pkgobj/databases/rrdtool/work/rrdtool-1.0.33'


	note that RRDs.so is not built, and RRDs.bs is not copied to the
	right directory and this of course causes the 'make install' to
	bomb out and no joy to be had....

>Fix:

	Dunno -- but it looks like the MakeMaker stuff has changed
	incompatibly....  I'm no perl wizard, so I guess I'll have to
	leave this to someone else...
>Release-Note:
>Audit-Trail:
>Unformatted: