From owner-freebsd-current Wed Jun 26 1:12: 2 2002 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id C783537B404 for ; Wed, 26 Jun 2002 01:11:14 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g5Q7G4L45598; Wed, 26 Jun 2002 10:16:04 +0300 (EEST) (envelope-from ru) Date: Wed, 26 Jun 2002 10:16:04 +0300 From: Ruslan Ermilov To: Bruce Evans Cc: Masahide -mac- NODA , current@FreeBSD.org Subject: Re: about beforeinstall target in /usr/share/mk/*.mk Message-ID: <20020626071604.GB41813@sunbay.com> References: <20020610.224924.74752528.mac@clave.gr.jp> <20020611174927.H4349-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="i0/AhcQY5QxfSsSZ" Content-Disposition: inline In-Reply-To: <20020611174927.H4349-100000@gamplex.bde.org> User-Agent: Mutt/1.3.99i 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 --i0/AhcQY5QxfSsSZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 11, 2002 at 05:57:01PM +1000, Bruce Evans wrote: > On Mon, 10 Jun 2002, Masahide -mac- NODA wrote: >=20 > > 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. :-) >=20 > 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). >=20 I have a better idea, and will commit the fix after a preliminary testing. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --i0/AhcQY5QxfSsSZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9GWo0Ukv4P6juNwoRAmbKAJ0dM81k1EhjWI5W8ImRHeA5Hq6ajwCfVY8e ijxiCHnv1vSFy+Qf27CkTlo= =IMLg -----END PGP SIGNATURE----- --i0/AhcQY5QxfSsSZ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message