Subject: ongoing (b)make replace problems-- +REQUIRED_BY not being restored
To: None <pkgsrc-users@netbsd.org>
From: Mark E. Perkins <perkinsm@bway.net>
List: pkgsrc-users
Date: 08/10/2007 06:43:59
(b)make replace appears to complete normally, but db files are not being restored.

Thanks,
Mark

-> pwd
/usr/pkgsrc/devel/p5-Devel-Symdump
-> cat /var/db/pkg/p5-Devel-Symdump-2.0700/+REQUIRED_BY
p5-Pod-Coverage-0.18
-> bmake replace
=> Required installed package digest>=20010302: digest-20070803 found

<normal make stuff snipped>

===> 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.0700
Creating package /usr/pkgsrc/devel/p5-Devel-Symdump/work/p5-Devel-Symdump-2.0700
Registering depends: perl>=5.8.7.
Registering conflicts:.
=> 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'
===> Installing for p5-Devel-Symdump-2.0700
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
=> 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.
=> Removing unsafe_depends tag.
=> Dropping ``root'' privileges.
-> cat /var/db/pkg/p5-Devel-Symdump-2.0700/+REQUIRED_BY
cat: /var/db/pkg/p5-Devel-Symdump-2.0700/+REQUIRED_BY: No such file or directory