Hi,
The default name for pkgbase packages contains the date and time when the build
was started, e.g:
...
FreeBSD-utilities-13.0.s20201228184847.txz
FreeBSD-utilities-dev-13.0.s20201228184847.txz
FreeBSD-vi-13.0.s20201228184847.txz
FreeBSD-wpa-13.0.s20201228184847.txz
...
I changed this, by redefining the PKG_VERSION in /etc/make.conf:
PKG_VERSION=${_REVISION}.r$$(eval svnliteversion ${SRCDIR})
this resulted in these pkg names;
...
FreeBSD-utilities-13.0.r368789.txz
FreeBSD-utilities-dev-13.0.r368789.txz
FreeBSD-vi-13.0.r368789.txz
FreeBSD-wpa-13.0.r368789.txz
...
After the switch to git, i tried to achieve something similar, but failed. I
tried this in /etc/make.conf:
PKG_VERSION=${_REVISION}.$$(git -C ${SRCDIR} rev-parse --short HEAD)
but the result was this:
...
FreeBSD-utilities-13.0..txz
FreeBSD-utilities-dev-13.0..txz
FreeBSD-vi-13.0..txz
FreeBSD-wpa-13.0..txz
...
directly in the shell the command "git -C /usr/src rev-parse --short HEAD"
gives the result: 098dbd7ff
But somehow, this does not get added to the PKG_VERSION variable. Did i miss
something?
How can i debug this?
And another question:
is there a way, to list all the make variables which are used during the build?
Like ${_REVISION} or PKG_VERSION from above.
--
Martin
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-pkgbase
To unsubscribe, send any mail to "[email protected]"