Subject: 'make replace' not replacing ?
To: None <pkgsrc-users@netbsd.org>
From: Adrian Portelli <adrianp@stindustries.net>
List: pkgsrc-users
Date: 08/09/2006 14:00:10
Hi,

I've just seen some interesting behaviour with 'make replace' on one of
my 3.x NetBSD boxes running pkgsrc HEAD checked out just a few minutes ago.

I saw this with about 10 packages I ran 'make replace' on before I
realised it wasn't actually replacing them.  It was just building the
new package, removing the installed package and then stopping.

Below is a shortened output from a 'make replace' on ImageMagick.

adrian.

......
/usr/pkgsrc/graphics/ImageMagick/work/.buildlink/lib/libjasper.so:
warning: warning: tmpnam() possibly used unsafely, use mkstemp() or
mkdtemp()
=> Unwrapping files-to-be-installed.
===> Replacing for ImageMagick-6.2.8.8nb1
=> Becoming ``root'' to make su-replace (/usr/bin/su)
Password:
Terminal type is screen.
Creating binary package: ImageMagick-6.2.8.0
Creating package
/usr/pkgsrc/graphics/ImageMagick/work/ImageMagick-6.2.8.0.tgz
Registering depends: mpeg2codec>=1.2 jasper>=1.701.0nb2
libwmf>=0.2.8.4nb3 lcms>=1.12nb2 libexif>=0.6.13nb1 tiff>=3.7.2nb1.
Registering conflicts:.
=> Preserving existing +REQUIRED_BY file.
===> Deinstalling for ImageMagick-6.2.8.8nb1
Running /usr/bin/env  /usr/sbin/pkg_delete -K /var/db/pkg
ImageMagick-6.2.8.0
=> Required installed package digest>=20010302: digest-20060302 found
===> Checking for vulnerabilities in ImageMagick-6.2.8.8nb1
=> Checksum SHA1 OK for
ImageMagick-6.2.8-8-20060807/ImageMagick-6.2.8-8.tar.bz2
=> Checksum RMD160 OK for
ImageMagick-6.2.8-8-20060807/ImageMagick-6.2.8-8.tar.bz2
=> Fixing @pkgdep entries in dependent packages.
=> Dropping ``root'' privileges.
$