tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

make replace broken?



I don't know if it is my setup or if make replace is broken. This has been 
happening for me for a while:

Here is an example:

tx:cairo$ make replace
=> Bootstrap dependency digest>=20010302: found digest-20070803
=> Bootstrap dependency checkperms>=1.1: found checkperms-1.10
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/download-vulnerability-list'.
===> Replacing for cairo-1.5.12
WARNING: experimental target - DATA LOSS MAY OCCUR.
=> Becoming ``root'' to make su-replace (/usr/pkg/bin/sudo)
Creating binary package: cairo-1.4.10
Creating package /usr/pkgsrc/wip/cairo/work/cairo-1.4.10
Registering depends: libXft>=2.1.10 libXrender>=0.9.2 libX11>=1.1 
fontconfig>=2.4.2 freetype2>=2.1.10nb1 glitz>=0.5.1 png>=1.2.9nb2.
Registering conflicts:.
=> Preserving existing +INSTALLED_INFO file.
=> Preserving existing +REQUIRED_BY file.
===> Deinstalling for cairo-1.5.12
Running /usr/pkg/sbin/pkg_delete -K /var/db/pkg  cairo-1.4.10
=> Bootstrap dependency digest>=20010302: found digest-20070803
=> Bootstrap dependency checkperms>=1.1: found checkperms-1.10
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/download-vulnerability-list'.
=> Fixing @pkgdep entries in dependent packages.
mv: rename /usr/pkgsrc/wip/cairo/work/.replace-+REQUIRED_BY to 
/var/db/pkg/cairo-1.5.12/+REQUIRED_BY: No such file or directory
*** Error code 1

Run it again and new error:

tx:cairo$ make replace 
=> Bootstrap dependency digest>=20010302: found digest-20070803
=> Bootstrap dependency checkperms>=1.1: found checkperms-1.10
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/download-vulnerability-list'.
===> Replacing for cairo-1.5.12
WARNING: experimental target - DATA LOSS MAY OCCUR.
=> Becoming ``root'' to make su-replace (/usr/pkg/bin/sudo)
ERROR: No packages to tarup identified!
Usage: /usr/pkg/bin/pkg_tarup [-a] [-K pkg_dbdir] [-d pkgrepository] [-s 
pkg_sufx] installed_pkg|pattern [...]
The following environment variables are used:
 (unless overriden by command line parameters)
 PKGREPOSITORY - A destination directory for packages (/tmp)
 PKG_DBDIR     - The location of the package database directory
 PKG_SUFX      - The suffix to append to the package (.tgz)
ERROR: Could not pkg_tarup .
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wip/cairo


Of course, my package is gone:

tx:cairo$ ls -l /usr/pkg/lib/libcairo.so* 
ls: /usr/pkg/lib/libcairo.so*: No such file or directory
tx:cairo$ pkg_info cairo
pkg_info: can't find package `cairo'

But this works for me now:

tx:cairo$ make install



In another test, where there was no +REQUIRED_BY file, a "make replace" 
just ended with:

=> Preserving existing +REQUIRED_BY file.
===> Deinstalling for gethost-0.05
Running /usr/pkg/sbin/pkg_delete -K /var/db/pkg  gethost-0.04
=> Bootstrap dependency digest>=20010302: found digest-20070803
=> Bootstrap dependency checkperms>=1.1: found checkperms-1.10
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/download-vulnerability-list'.
=> Fixing @pkgdep entries in dependent packages.
=> Removing unsafe_depends and rebuild tags.
=> Dropping ``root'' privileges.


So it deinstalled a package but never installed again.


While it works for me on different system.

Broken NetBSD system has pkg_install 20080223 in /usr/sbin/pkg* from HEAD 
last week.

Working DragonFly system has pkg_install 20080204 built from my pkgsrc and 
in my path under my home

So I updated broken system to install 20080311 from pkgsrc. (Still has 
pkg_* tools in /usr/sbin too.) But bmake replace still broken for me.

Also I updated the working system to 20080311 and bmake replace continues 
to work.


Anyone else seen this?

Maybe a make problem?

  Jeremy C. Reed


Home | Main Index | Thread Index | Old Index