Subject: pkg_rolling-replace calling 'make install'? was: Spurious space
To: Greg Troxel <gdt@ir.bbn.com>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: tech-pkg
Date: 08/18/2007 21:50:37
At 21:19 Uhr -0400 16.8.2007, Greg Troxel wrote:
>I just committed a change to pkg_rolling-replace (0.11) that should
>strip the leading spaces.

pkg_rolling-replace(8) is generally rolling along now for me - discounting
the fact that 'make replace' still seems to be broken if invoked by a
non-root user using su(1). But it apppears to occasionally invoke 'make
install' instead of the expected and promised 'make replace' for already
installed packages:

[...]

=> Unwrapping files-to-be-installed.
INFO: [subst.mk:unwrap] Nothing changed in ./gdk.pc.
INFO: [subst.mk:unwrap] Nothing changed in ./gtk+.pc.
INFO: [subst.mk:unwrap] Nothing changed in ./gtk-config.
===> Installing for gtk+-1.2.10nb9
ERROR: gtk+-1.2.10nb8 is already installed - perhaps an older version?
ERROR: If so, you may use either of:
ERROR:     - "pkg_delete gtk+-1.2.10nb8" and "/usr/bin/make reinstall"
ERROR:       to upgrade properly
ERROR:     - "/usr/bin/make update" to rebuild the package and all
ERROR:       of its dependencies
ERROR:     - "/usr/bin/make replace" to replace only the package without
ERROR:       re-linking dependencies, risking various problems.
*** Error code 1

Stop.
make: stopped in /usr/src/pkgsrc/x11/gtk
*** Error code 1

Stop.
make: stopped in /usr/src/pkgsrc/x11/gtk
*** Error code 1

Stop.
make: stopped in /usr/src/pkgsrc/x11/gtk
*** Error code 1

Stop.
make: stopped in /usr/src/pkgsrc/www/dillo
*** 'make replace' failed for package dillo.
*** Please read the errors listed above, fix the problem,
*** then re-run pkg_rolling-replace to continue.
[hauke@pizza] /<1>src/pkgsrc #

Should I take this as symptom of a messed-up pkg database, even though I've
seen it on two machines now that have very different history and installed
packages?

Or is this a quirk lurking in pkg_rolling-replace(8)?

	hauke


--
"It's never straight up and down"     (DEVO)