Subject: date and maintainer in build info (was: CVS commit:
To: None <tech-pkg@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 05/07/2004 09:49:51
On Fri, 7 May 2004, Johnny C. Lam wrote:
> Import pkg_install-20040507 from src/usr.sbin/pkg_install:
>
> Add a new flag -Q (for "query") to pkg_info(1) to query the build
> information for the definitions of specific variables that were saved
> from build time, e.g.
>
> $ pkg_info -Q PKGPATH glib
> devel/glib
> $ pkg_info -Q PROVIDES glib
> /usr/pkg/lib/libglib.so.13
> /usr/pkg/lib/libgmodule.so.13
> /usr/pkg/lib/libgthread.so.13
This is great.
My bsd.pkg.mk has:
+.if !defined(THE_DATE)
+THE_DATE!= ${DATE}
+.endif
+
...
+ ${ECHO} "MAINTAINER=${MAINTAINER}" >> ${BUILD_INFO_FILE}
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ ${ECHO} "DATE=${THE_DATE}" >> ${BUILD_INFO_FILE}
+ ${_PKG_SILENT}${_PKG_DEBUG}
I mentioned adding those last fall. Does anyone care if I commit that? Or
any suggestions for this?
I also wanted to include the username and/or hostname of the builder too.
Should I?
Jeremy C. Reed
BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/