Subject: Re: (b)make replace is borken
To: None <pkgsrc-users@netbsd.org>
From: Mark E. Perkins <perkinsm@bway.net>
List: pkgsrc-users
Date: 08/09/2007 09:25:45
On 2007/08/09 08:55, Joerg Sonnenberger wrote:
> On Thu, Aug 09, 2007 at 07:42:02AM -0400, Mark E. Perkins wrote:
>> I will add that this is recent breakage. 'replace' works as expected on a
>> system with pkg_install-20070804 and everything else as above.
>
> I've commited a fix for this. Attached is the patch if you want to try
> it before anoncvs gets it.
>
> Joerg
That fixes the pkg_tarup problem, but now I get this:
===> Replacing for p5-Devel-Symdump-2.0700
WARNING: experimental target - DATA LOSS MAY OCCUR.
=> Becoming ``root'' to make su-replace (/usr/bin/sudo)
Creating binary package: p5-Devel-Symdump-2.0604
Creating package /usr/pkgsrc/devel/p5-Devel-Symdump/work/p5-Devel-Symdump-2.0604
/usr/pkg/bin/pkg_tarup: line 1: 15126 Bus error pkg_create "-c"
"/var/db/pkg/p5-Devel-Symdump-2.0604/+COMMENT" "-d"
"/var/db/pkg/p5-Devel-Symdump-2.0604/+DESC" "-b"
"/var/db/pkg/p5-Devel-Symdump-2.0604/+BUILD_VERSION" "-B"
"/var/db/pkg/p5-Devel-Symdump-2.0604/+BUILD_INFO" "-s"
"/var/db/pkg/p5-Devel-Symdump-2.0604/+SIZE_PKG" "-S"
"/var/db/pkg/p5-Devel-Symdump-2.0604/+SIZE_ALL" "-i"
"/var/db/pkg/p5-Devel-Symdump-2.0604/+INSTALL" "-k"
"/var/db/pkg/p5-Devel-Symdump-2.0604/+DEINSTALL" -v -f "/tmp/+CONTENTS.15096"
-l -p "/usr/pkg" -P "perl>=5.8.7" -C ""
"/usr/pkgsrc/devel/p5-Devel-Symdump/work/p5-Devel-Symdump-2.0604.tgz"
=> Preserving existing +INSTALLED_INFO file.
=> Preserving existing +REQUIRED_BY file.
===> Deinstalling for p5-Devel-Symdump-2.0700
Running /usr/pkg/sbin/pkg_delete -K /var/db/pkg p5-Devel-Symdump-2.0604
Executing `/bin/rmdir -p /usr/pkg/lib/perl5/vendor_perl/man/man3 2>/dev/null
|| true'
Executing `/bin/rmdir -p
/usr/pkg/lib/perl5/vendor_perl/5.8.0/darwin-thread-multi-2level/auto/Devel/Symdump
2>/dev/null || true'
Executing `/bin/rmdir -p /usr/pkg/lib/perl5/vendor_perl/5.8.0/Devel/Symdump
2>/dev/null || true'
Executing `/bin/rmdir -p /usr/pkg/lib/perl5/vendor_perl/5.8.0/Devel
2>/dev/null || true'
===> Installing for p5-Devel-Symdump-2.0700
=> Running PRE-INSTALL script actions
Installing /usr/pkg/lib/perl5/vendor_perl/5.8.0/Devel/Symdump.pm
Installing /usr/pkg/lib/perl5/vendor_perl/5.8.0/Devel/Symdump/Export.pm
Installing /usr/pkg/lib/perl5/vendor_perl/man/man3/Devel::Symdump.3
Writing
/usr/pkg/lib/perl5/vendor_perl/5.8.0/darwin-thread-multi-2level/auto/Devel/Symdump/.packlist
Appending installation info to
/usr/pkg/lib/perl5/5.8.0/darwin-thread-multi-2level/perllocal.pod
=> Automatic manual page handling
=> Running POST-INSTALL script actions
=> Registering installation for p5-Devel-Symdump-2.0700
p5-Devel-Symdump-2.0700 requires installed package perl-5.8.8nb4
=> Fixing @pkgdep entries in dependent packages.
*** Error code 138
Stop.
bmake: stopped in /usr/pkgsrc/devel/p5-Devel-Symdump
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/p5-Devel-Symdump
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/p5-Devel-Symdump
Doing sudo bmake replace does not help:
-> sudo bmake replace
=> Required installed package digest>=20010302: digest-20070803 found
===> Checking for vulnerabilities in p5-Devel-Symdump-2.0700
===> Replacing for p5-Devel-Symdump-2.0700
WARNING: experimental target - DATA LOSS MAY OCCUR.
Creating binary package: p5-Devel-Symdump-2.0700
Creating package /usr/pkgsrc/devel/p5-Devel-Symdump/work/p5-Devel-Symdump-2.0700
/usr/pkg/bin/pkg_tarup: line 1: 15671 Bus error pkg_create "-c"
"/var/db/pkg/p5-Devel-Symdump-2.0700/+COMMENT" "-d"
"/var/db/pkg/p5-Devel-Symdump-2.0700/+DESC" "-b"
"/var/db/pkg/p5-Devel-Symdump-2.0700/+BUILD_VERSION" "-B"
"/var/db/pkg/p5-Devel-Symdump-2.0700/+BUILD_INFO" "-s"
"/var/db/pkg/p5-Devel-Symdump-2.0700/+SIZE_PKG" "-S"
"/var/db/pkg/p5-Devel-Symdump-2.0700/+SIZE_ALL" "-i"
"/var/db/pkg/p5-Devel-Symdump-2.0700/+INSTALL" "-k"
"/var/db/pkg/p5-Devel-Symdump-2.0700/+DEINSTALL" -v -f "/tmp/+CONTENTS.15641"
-l -p "/usr/pkg" -P "perl>=5.8.7" -C ""
"/usr/pkgsrc/devel/p5-Devel-Symdump/work/p5-Devel-Symdump-2.0700.tgz"
=> Preserving existing +INSTALLED_INFO file.
=> Preserving existing +REQUIRED_BY file.
===> Deinstalling for p5-Devel-Symdump-2.0700
Running /usr/pkg/sbin/pkg_delete -K /var/db/pkg p5-Devel-Symdump-2.0700
Executing `/bin/rmdir -p /usr/pkg/lib/perl5/vendor_perl/man/man3 2>/dev/null
|| true'
Executing `/bin/rmdir -p
/usr/pkg/lib/perl5/vendor_perl/5.8.0/darwin-thread-multi-2level/auto/Devel/Symdump
2>/dev/null || true'
Executing `/bin/rmdir -p /usr/pkg/lib/perl5/vendor_perl/5.8.0/Devel/Symdump
2>/dev/null || true'
Executing `/bin/rmdir -p /usr/pkg/lib/perl5/vendor_perl/5.8.0/Devel
2>/dev/null || true'
=> Fixing @pkgdep entries in dependent packages.
*** Error code 138
Stop.
bmake: stopped in /usr/pkgsrc/devel/p5-Devel-Symdump
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/p5-Devel-Symdump
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/p5-Devel-Symdump