From owner-freebsd-current Tue Jun 11 0:53: 7 2002 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id A560A37B400; Tue, 11 Jun 2002 00:53:03 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id RAA00694; Tue, 11 Jun 2002 17:52:43 +1000 Date: Tue, 11 Jun 2002 17:57:01 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Masahide -mac- NODA Cc: current@FreeBSD.ORG, Subject: Re: about beforeinstall target in /usr/share/mk/*.mk In-Reply-To: <20020610.224924.74752528.mac@clave.gr.jp> Message-ID: <20020611174927.H4349-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 10 Jun 2002, Masahide -mac- NODA wrote: > In /usr/share/mk/bsd.*.mk, 'beforeinstall' target execute after install > on current. > > You found it to doing below in current: > > % cd /usr/src/share/mk > % make install -n > install -c -o root -g wheel -m 444 bsd.README ... > date '+%Y%m%d' > /var/db/port.mkversion > % > > but, in makefile, > > beforeinstall: > date '+%Y%m%d' > ${DESTDIR}/var/db/port.mkversion > > > beforeinstall target execute after install. > > ### I found it at installing portupgrade from ports. :-) This bug seems to be mainly in bsd.file.mk. realinstall depends on both installfiles and beforeinstall, but there is no dependency of installfiles on beforeinstall. This can probably be fixed by adding the dependency (in bsd.files.mk). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message