Re: about beforeinstall target in /usr/share/mk/*.mk
On Tue, Jun 11, 2002 at 05:57:01PM +1000, Bruce Evans wrote: > 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). > I have a better idea, and will commit the fix after a preliminary testing. Cheers, -- Ruslan Ermilov Sysadmin and DBA, [EMAIL PROTECTED] Sunbay Software AG, [EMAIL PROTECTED] FreeBSD committer, +380.652.512.251Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age msg39997/pgp0.pgp Description: PGP signature
Re: about beforeinstall target in /usr/share/mk/*.mk
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 [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
about beforeinstall target in /usr/share/mk/*.mk
Hi. 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 bsd.cpu.mk bsd.dep.mk bsd.doc.mk bsd.files.mk bsd.info.mk bsd.incs.mk bsd.init.mk bsd.kern.mk bsd.kmod.mk bsd.lib.mk bsd.libnames.mk bsd.man.mk bsd.nls.mk bsd.obj.mk bsd.own.mk bsd.port.mk bsd.port.post.mk bsd.port.pre.mk bsd.port.subdir.mk bsd.prog.mk bsd.subdir.mk bsd.sys.mk sys.mk /usr/share/mk 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. :-) -- [EMAIL PROTECTED][EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message