Subject: pkg/25282: make update UPDATE_TARGET=bin-install not working
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <email@example.com>
Date: 04/22/2004 17:00:20
>Synopsis: make update UPDATE_TARGET=bin-install not working
>Arrival-Date: Thu Apr 22 15:01:00 UTC 2004
>Originator: Jukka Salmi
>Release: NetBSD 2.0C
System: NetBSD himo.salmi.ch 2.0C NetBSD 2.0C (GENERIC) #0: Mon Apr 19 23:42:44 CEST 2004 firstname.lastname@example.org:/build/nbsdc/usr/src/sys/arch/i386/compile/GENERIC i386
When setting UPDATE_TARGET=bin-install, make update doesn't work. Given three
packages a, b and c where b depends on a, c depends on b. If a is updated
and UPDATE_TARGET is set to bin-install, the following happens:
- all packages are removed (pkg_delete -f)
- package a is rebuilt from source (or a binary packages is installed if
- packages b and c are not reinstalled because real-su-bin-install calls
'make clean' if 'make package' successfully returns (see line 4051 in
pkgsrc/mk/bsd.pkg.mk), and so a/work/.DDIR is also removed.
call 'make update UPDATE_TARGET=bin-install' for a package which has
dependencies. Those dependencies are not installed after the update.
Not sure, but real-su-bin-install should definitely not call 'make clean'
right after 'make package'.