Subject: 'make replace' broken ?
To: None <tech-pkg@NetBSD.org>
From: None <adrianp@stindustries.net>
List: tech-pkg
Date: 09/13/2003 15:02:45
Hi,

I just did a 'cvs update' on my 1.6.1 i386 boxes and was trying to update
some packages when I hit a problem with 'make replace' . I first upgraded
to pkg_install-20030913 which went fine doing a normal 'make update'. 
When I tried to do a 'make replace' on a few other packages it failed. 
I've attached the important parts of the build to this email.  Anyone else
seen this? PR it ?

I know make replace is considered experimental - but it is useful :)

Thanks,

Adrian.

[adrianp@xxx /usr/pkgsrc/security/p5-Digest-MD5 ]$ make clean
===> Cleaning for p5-Digest-MD5-2.27
[adrianp@xxx /usr/pkgsrc/security/p5-Digest-MD5 ]$ make replace
===> Checking for vulnerabilities in p5-Digest-MD5-2.27
=> Checksum OK for Digest-MD5-2.27.tar.gz.
===> Extracting for p5-Digest-MD5-2.27
===> Required installed package perl>=5.0: perl-5.8.0nb2 found
===> Patching for p5-Digest-MD5-2.27
===> Overriding tools for p5-Digest-MD5-2.27
===> Buildlinking for p5-Digest-MD5-2.27
===> Configuring for p5-Digest-MD5-2.27
Testing alignment requirements for U32... no restrictions
Checking if your kit is complete...
Looks good
Writing Makefile for Digest::MD5
===> Building for p5-Digest-MD5-2.27
....
=> Fixing buildlink references in files-to-be-installed.
===> Replacing p5-Digest-MD5-2.27
===> Becoming root@xxx to replace p5-Digest-MD5-2.27.
/usr/bin/su Password:
*** WARNING - experimental target - data loss may be experienced ***
Creating binary package: p5-Digest-MD5-2.24
Creating package
/usr/pkgsrc/security/p5-Digest-MD5/work/p5-Digest-MD5-2.24.tgz
Registering depends: perl>=5.0.
Registering conflicts: p5-MD5-[0-9]*.
===> Deinstalling for p5-Digest-MD5-2.27
Running /usr/sbin/pkg_delete -K /var/db/pkg p5-Digest-MD5-2.24
pkg_delete: package `p5-Digest-MD5-2.24' is required by other packages:
        spamassassin-2.55nb2
        p5-Net-DNS-0.33
        p5-Digest-HMAC-1.01
===> Checking for vulnerabilities in p5-Digest-MD5-2.27
===> Installing for p5-Digest-MD5-2.27
===>  p5-Digest-MD5-2.24 is already installed - perhaps an older version?
*** If so, you may use either of:
***  - "pkg_delete p5-Digest-MD5-2.24" and "make reinstall" to upgrade
properly
***  - "make update" to rebuild the package and all of its dependencies
***  - "make replace" to replace only the package without re-linking
***    dependencies, risking various problems.
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/security/p5-Digest-MD5
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/security/p5-Digest-MD5
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/security/p5-Digest-MD5
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/security/p5-Digest-MD5
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/security/p5-Digest-MD5