Date: Wed, 26 Jun 2002 10:16:04 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: Bruce Evans <bde@zeta.org.au> Cc: Masahide -mac- NODA <mac@clave.gr.jp>, current@FreeBSD.org Subject: Re: about beforeinstall target in /usr/share/mk/*.mk Message-ID: <20020626071604.GB41813@sunbay.com> In-Reply-To: <20020611174927.H4349-100000@gamplex.bde.org> References: <20020610.224924.74752528.mac@clave.gr.jp> <20020611174927.H4349-100000@gamplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020626071604.GB41813>
