Subject: fixing update target
To: None <>
From: Jukka Salmi <>
List: tech-pkg
Date: 08/23/2004 18:13:30

there's a problem with the update target (see pkg/25282): if UPDATE_TARGET
is set to "bin-install", "make update" fails to reinstall dependent
packages after the package for which update was called is updated (i.e.
built and installed).

Is anybody seeing the same behaviour? Or am I just doing something
completely wrong? ;-)

Removing the last command ("${MAKE} ${MAKEFLAGS} clean") from the
real-su-bin-install target (in mk/ seems to fix the problem.
(AFAICT calling the clean target at this point is wrong because it
removes work/.DDIR, and therefore dependent packages are not reinstalled.
Furthermore "make clean" is called recursively after the package and its
dependencies are updated.)

However, if not running as root I get errors while the clean target is
called (after package and dependencies are updated). Aparently the build
process was running as root even though I called "make update" as my
build user (SU_CMD is set to "sudo sh -c"), and then "make clean" is
run as the build user again which doesn't have permission to delete
the files owned by root.

Any hints how to fix this problem?

TIA, Jukka

bashian roulette:
$ ((RANDOM%6)) || rm -rf ~