Subject: 'make install-depends' behaving weirdly
To: None <tech-pkg@NetBSD.org>
From: Thomas Klausner <wiz@NetBSD.org>
List: tech-pkg
Date: 10/14/2006 10:30:18
Hi!

In a clean sandbox without any packages installed, I did:
cd /usr/pkgsrc/devel/pango
make DEPENDS_TARGET=bin-install install-depends
with the following result:
# make DEPENDS_TARGET=bin-install install-depends
==========================================================================
The supported build options for pango are:

	x11

The currently selected options are:

	x11

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

	PKG_OPTIONS.pango (not defined)

==========================================================================
=> Required installed package libtool-base>=1.5.18nb5: NOT found
=> Verifying bin-install for ../../devel/libtool-base
===> Binary install for libtool-base>=1.5.18nb5
=> Installing libtool-base-1.5.22nb3 from /usr/pkgsrc/packages/All
pkg_add: Warning: package `/usr/pkgsrc/packages/All/libtool-base-1.5.22nb3.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 4.99.2 (pkg) vs. NetBSD/i386 4.99.3 (this host)
libtool-base-1.5.22nb3 successfully installed.
=> Returning to build of pango-1.14.7
=> Required installed package gmake>=3.78: NOT found
=> Verifying bin-install for ../../devel/gmake
===> Binary install for gmake>=3.78
=> Installing gmake-3.81 from /usr/pkgsrc/packages/All
pkg_add: Warning: package `/usr/pkgsrc/packages/All/gmake-3.81.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 4.99.2 (pkg) vs. NetBSD/i386 4.99.3 (this host)
===========================================================================
Registering info files for gmake-3.81:

	/usr/pkg/info/make.info

===========================================================================
gmake-3.81 successfully installed.
=> Returning to build of pango-1.14.7
=> Required installed package pkg-config>=0.19: NOT found
=> Verifying bin-install for ../../devel/pkg-config
===> Binary install for pkg-config>=0.19
=> Installing pkg-config-0.21 from /usr/pkgsrc/packages/All
pkg_add: Warning: package `/usr/pkgsrc/packages/All/pkg-config-0.21.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 4.99.2 (pkg) vs. NetBSD/i386 4.99.3 (this host)
pkg-config-0.21 successfully installed.
=> Returning to build of pango-1.14.7
=> Required installed package x11-links>=0.25: NOT found
=> Verifying bin-install for ../../pkgtools/x11-links
===> Binary install for x11-links>=0.25
=> Installing x11-links-0.30 from /usr/pkgsrc/packages/All
pkg_add: Warning: package `/usr/pkgsrc/packages/All/x11-links-0.30.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 4.99.2 (pkg) vs. NetBSD/i386 4.99.3 (this host)
x11-links-0.30 successfully installed.
=> Returning to build of pango-1.14.7
=> Required installed package renderproto>=0.9.1: NOT found
=> Verifying bin-install for ../../x11/renderproto
===> Binary install for renderproto>=0.9.1
=> Installing renderproto-0.9.2 from /usr/pkgsrc/packages/All
pkg_add: Warning: package `/usr/pkgsrc/packages/All/renderproto-0.9.2.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 4.99.2 (pkg) vs. NetBSD/i386 4.99.3 (this host)
renderproto-0.9.2 successfully installed.
=> Returning to build of pango-1.14.7
=> Required installed package Xft2>=2.1.7nb2: NOT found
=> Verifying bin-install for ../../fonts/Xft2
===> Binary install for Xft2>=2.1.7nb2
=> Installing Xft2-2.1.7nb2 from /usr/pkgsrc/packages/All
pkg_add: Warning: package `/usr/pkgsrc/packages/All/Xft2-2.1.7nb2.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 4.99.2 (pkg) vs. NetBSD/i386 4.99.3 (this host)
pkg_add: Warning: package `/usr/pkgsrc/packages/All/fontconfig-2.4.0nb1.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 4.99.2 (pkg) vs. NetBSD/i386 4.99.3 (this host)
pkg_add: Warning: package `/usr/pkgsrc/packages/All/freetype2-2.2.1nb2.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 4.99.2 (pkg) vs. NetBSD/i386 4.99.3 (this host)
pkg_add: Warning: package `/usr/pkgsrc/packages/All/expat-2.0.0nb1.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 4.99.2 (pkg) vs. NetBSD/i386 4.99.3 (this host)
===========================================================================
Installing files needed by fontconfig-2.4.0nb1:

	/usr/pkg/etc/fontconfig/conf.d/20-fix-globaladvance.conf
	    [/usr/pkg/share/examples/fontconfig/conf.d/20-fix-globaladvance.conf]

	/usr/pkg/etc/fontconfig/conf.d/20-lohit-gujarati.conf
	    [/usr/pkg/share/examples/fontconfig/conf.d/20-lohit-gujarati.conf]

	/usr/pkg/etc/fontconfig/conf.d/20-unhint-small-vera.conf
	    [/usr/pkg/share/examples/fontconfig/conf.d/20-unhint-small-vera.conf]

	/usr/pkg/etc/fontconfig/conf.d/30-amt-aliases.conf
	    [/usr/pkg/share/examples/fontconfig/conf.d/30-amt-aliases.conf]

	/usr/pkg/etc/fontconfig/conf.d/30-urw-aliases.conf
	    [/usr/pkg/share/examples/fontconfig/conf.d/30-urw-aliases.conf]

	/usr/pkg/etc/fontconfig/conf.d/40-generic.conf
	    [/usr/pkg/share/examples/fontconfig/conf.d/40-generic.conf]

	/usr/pkg/etc/fontconfig/conf.d/49-sansserif.conf
	    [/usr/pkg/share/examples/fontconfig/conf.d/49-sansserif.conf]

	/usr/pkg/etc/fontconfig/conf.d/50-user.conf
	    [/usr/pkg/share/examples/fontconfig/conf.d/50-user.conf]

	/usr/pkg/etc/fontconfig/conf.d/51-local.conf
	    [/usr/pkg/share/examples/fontconfig/conf.d/51-local.conf]

	/usr/pkg/etc/fontconfig/conf.d/60-latin.conf
	    [/usr/pkg/share/examples/fontconfig/conf.d/60-latin.conf]

	/usr/pkg/etc/fontconfig/conf.d/65-fonts-persian.conf
	    [/usr/pkg/share/examples/fontconfig/conf.d/65-fonts-persian.conf]

	/usr/pkg/etc/fontconfig/conf.d/65-nonlatin.conf
	    [/usr/pkg/share/examples/fontconfig/conf.d/65-nonlatin.conf]

	/usr/pkg/etc/fontconfig/conf.d/69-unifont.conf
	    [/usr/pkg/share/examples/fontconfig/conf.d/69-unifont.conf]

	/usr/pkg/etc/fontconfig/conf.d/80-delicious.conf
	    [/usr/pkg/share/examples/fontconfig/conf.d/80-delicious.conf]

	/usr/pkg/etc/fontconfig/conf.d/90-synthetic.conf
	    [/usr/pkg/share/examples/fontconfig/conf.d/90-synthetic.conf]

	/usr/pkg/etc/fontconfig/fonts.conf
	    [/usr/pkg/share/examples/fontconfig/fonts.conf]

	/usr/pkg/etc/fontconfig/fonts.dtd
	    [/usr/pkg/share/examples/fontconfig/fonts.dtd]

===========================================================================
pkg_add: Warning: package `/usr/pkgsrc/packages/All/Xrender-0.9.0nb1.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 4.99.2 (pkg) vs. NetBSD/i386 4.99.3 (this host)
Xft2-2.1.7nb2 successfully installed.
=> Returning to build of pango-1.14.7
=> Required installed package glib2>=2.10.0: NOT found
=> Verifying bin-install for ../../devel/glib2
===> Binary install for glib2>=2.10.0
=> Installing glib2-2.12.4 from /usr/pkgsrc/packages/All
pkg_add: Warning: package `/usr/pkgsrc/packages/All/glib2-2.12.3.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 4.99.2 (pkg) vs. NetBSD/i386 4.99.3 (this host)
pkg_add: Warning: package `/usr/pkgsrc/packages/All/perl-5.8.8nb3.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 4.99.2 (pkg) vs. NetBSD/i386 4.99.3 (this host)
glib2-2.12.3 successfully installed.
=> No binary package found for glib2-2.12.4; installing from source.
=> Required installed package digest>=20010302: digest-20060826 found
===> Checking for vulnerabilities in glib2-2.12.4
=> Checksum SHA1 OK for glib-2.12.4.tar.bz2
=> Checksum RMD160 OK for glib-2.12.4.tar.bz2
work.i386 -> /usr/obj/devel/glib2/work.i386
===> Installing dependencies for glib2-2.12.4
...

here it goes and builds glib2, then

...
=> Unwrapping files-to-be-installed.
===> Installing for glib2-2.12.4
ERROR: glib2-2.12.3 is already installed - perhaps an older version?
ERROR: If so, you may use either of:
ERROR:     - "pkg_delete glib2-2.12.3" and "/usr/bin/make reinstall"
ERROR:       to upgrade properly
ERROR:     - "/usr/bin/make update" to rebuild the package and all
ERROR:       of its dependencies
ERROR:     - "/usr/bin/make replace" to replace only the package without
ERROR:       re-linking dependencies, risking various problems.
*** Error code 1


Can someone explain to me this part of the build:
=> Verifying bin-install for ../../devel/glib2
===> Binary install for glib2>=2.10.0
=> Installing glib2-2.12.4 from /usr/pkgsrc/packages/All
pkg_add: Warning: package `/usr/pkgsrc/packages/All/glib2-2.12.3.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 4.99.2 (pkg) vs. NetBSD/i386 4.99.3 (this host)
pkg_add: Warning: package `/usr/pkgsrc/packages/All/perl-5.8.8nb3.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 4.99.2 (pkg) vs. NetBSD/i386 4.99.3 (this host)
glib2-2.12.3 successfully installed.
=> No binary package found for glib2-2.12.4; installing from source.

?

I don't remember this happening a few weeks ago, so I think it must
have been broken relatively recent (last month or two).

Cheers,
 Thomas