Subject: Re: pkg/32031: pkgsrc-2005Q3 problems under NetBSD 2.1
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: pkgsrc-bugs
Date: 11/09/2005 22:08:02
The following reply was made to PR pkg/32031; it has been noted by GNATS.

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
	pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/32031: pkgsrc-2005Q3 problems under NetBSD 2.1
Date: Wed, 9 Nov 2005 23:07:09 +0100

 On Wed, Nov 09, 2005 at 08:32:00PM +0000, mm_lists@pulsar-zone.net wrote:
 > >Number:         32031
 > >Category:       pkg
 > >Synopsis:       pkgsrc-2005Q3 problems under NetBSD 2.1
 > CFLAGS+=-I/usr/X11R6/include
 > LDFLAGS+=-Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib
 > 
 > Note: I don't remember which, but some package also needed that I add a
 > fontconfig package dependency via .include in its Makefile in order for it
 > to build.
 > 
 > 	vim		Configure problems, it uses -lncurses because of
 > 			CONFIGURE_ARGS+= --with-tlib=ncurses
 > 			in Makefile instead of --with-tlib=curses
 > 			(was "fixed" to compile using pkgsrc under linux?)
 > 			Would pkgsrc popularity lead to other such non-netbsd
 > 			friendly changes?
 > 			Note the same problem applies for vim-gtk, vim-gtk2,
 > 			possibly also vim-xforms and vim-kde...
 
 Buids under 2.0, I can't see why it would be different in 2.1:
 ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc-2005Q3/NetBSD-2.0/i386/All/*vim*
 
 
 > 
 > 	wget		had to fix conditionals for openssl in http-* with
 > 			NetBSD 2.0.2 (or 2.0_STABLE dating a few months back)
 > 			Because of OpenSSL version change (this affected no
 > 			other package)
 > 			Hmm actually I was told it was because of OpenSSL
 > 			upgrade in 2.1, but under 2.1 the same problem
 > 			occurred.
 
 ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc-2005Q3/NetBSD-2.0/i386/All/wget-1.10.2.tgz
 
 > 
 > +	MesaLib		missing -I/usr/pkg/X11R6/include
 
 ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc-2005Q3/NetBSD-2.0/i386/All/MesaLib-6.2.1nb2.tgz
 
 > 
 > 	libdvdcss	url to download the file is obsolete and should be
 > 			changed, works otherwise
 
 This one is probably restricted, so not available as binary package
 
 > 
 > +	gd		missing -I/usr/pkg/include and -I/usr/pkg/X11R6/include
 
 ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc-2005Q3/NetBSD-2.0/i386/All/gd-2.0.33nb1.tgz
 
 > 
 > *	gphoto		both hashes mismatch (gphoto-0.4.3.tar.gz)
 > +	gphoto2		Another problem where an existing headerfile can't be
 > 			found
 
 ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc-2005Q3/NetBSD-2.0/i386/All/gphoto-0.4.3nb7.tgz
 ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc-2005Q3/NetBSD-2.0/i386/All/gphoto2-2.1.6.tgz
 
 > 
 > 	python		Error creating package, had to use pkg_tarup.
 > 			Caused by some files supplied to tar which aren't found
 > 			causing tar to report error and make package to fail
 > 			Probably incorrect PLIST
 
 All python packages from 1.5 to 2.4 have built under 2.0, and are available
 from the ftp server.
 
 > 
 > 	xlockmore	Same as for python, incorrect PLIST
 
 xlockmore-5.19nb2.tgz on ftp server
 
 > 
 > +	SDL		Again the missing -I/-L
 
 SDL-1.2.9.tgz on ftp server
 
 > 
 > *	cscope		Configure problems.
 > 			Moreover, also seems to refer to ncurses.
 
 Yes, this one seems to not build
 
 > 
 > *	nspr		Fails in configure script
 
 nspr-4.4.1nb1.tgz on ftp server
 
 > 
 > *	gaim		Requires nspr above so couldn't build obviously
 
 gaim-1.5.0nb1.tgz on ftp server
 
 > 
 > +	xforms		Missing an -I/usr/X11R6/include with -lXext, needed
 > 			to manually fix Makefile during build since it won't
 > 			take LDFLAGS from mk.conf (using imake)
 
 xforms-1.0nb4.tgz on ftp server
 
 > 
 > 	SDL_sound	Required addition of .include for dependencies of
 > 			flac and speex
 
 SDL_sound-1.0.1nb2.tgz on ftp server
 
 > 
 > 	SDL_mixer	Required addition of .include for dependencies of
 > 			libmikmod
 
 SDL_mixer-1.2.6nb2.tgz on ftp server
 
 > 
 > *	db4		Compilation error
 
 db4-4.3.28.tgz on ftp server
 
 > 
 > *	fceu		Compilation error
 
 fceu-0.98.12nb1.tgz on ftp server
 
 > 
 > *	MesaDemos	Compilation error
 
 MesaDemos-6.2.1.tgz on ftp server
 
 > 
 > 	xawtv		--disable-aalib didn't work, so had to remove it from
 > 			Makefile and add aalib dependency via .include
 > 			Also had to add dependency to libdv
 
 xawtv-3.90nb2.tgz on ftp server
 
 > 
 > 	mplayer-share	Had to add --disable-aa in Makefile.common
 
 mplayer-share is not on the ftp server, but mplayer may be RESTRICTED
 
 > 
 > 	sylpheed-claws	Requires gpgme03, but looks for gpgme-config,
 > 			so doesn't build the pgpmime plugin unless
 > 			I made a symlink from gpgme-config to gpgme03-config,
 > 			could perhaps be considered a gpgme03 package bug
 > 			which should have a symlink.
 > 			Moreover, had to be built before abiword, since
 > 			abiword requires gnu libiconv, and if that is
 > 			installed sylpheed-claws doesn't seem to build
 > 			properly. (unless fix applied to abiword to use
 > 			system iconv)
 
 sylpheed-claws-1.0.4.tgz on ftp server
 
 > 
 > 	abiword		By default failed to build without libiconv package
 > 			installed;  Had to comment USE_GNU_ICONV and
 > 			the libiconv buildlink .include for it to use the
 > 			system iconv (another gnu system friendly fix?)
 
 abiword-2.4.1.tgz on ftp server.
 
 
 There are very very few changes between between 2.0 and 2.1 which should
 affect packages build. Most changes are bug fixes, a few features added.
 But *no* API or ABI changes (this is what a minor release mean).
 So, especially for your PLIST, missing includes or libraries, I should
 have got these errors in the 2.0 bulk build. This is why I strongly suspect
 something in your environnement, or system setup.
 
 > 
 > 
 > 
 > My /etc/mk.conf is as follows:
 > 
 > 
 > 
 > CFLAGS+=-march=i686 -O2 -pipe
 
 Did you try without CFLAGS ?
 
 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --