[pve-devel] [PATCH 1/2] buildsys: set SOURCE_DATE_EPOCH and use actual git revision
Fabian Grünbichler
f.gruenbichler at proxmox.com
Fri Jan 19 12:42:21 CET 2018
On Fri, Jan 19, 2018 at 09:04:52AM +0100, Thomas Lamprecht wrote:
> Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
> ---
> Makefile | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index 70d1925..06a08ec 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -5,7 +5,9 @@ PKGREL=4
> SRCDIR=novnc
>
> ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
> -GITVERSION:=$(shell cat .git/refs/heads/master)
> +
> +GITVERSION:=$(shell git rev-parse HEAD)
> +export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp)
exporting SOURCE_DATE_EPOCH is not needed, dpkg-buildpackage already
takes care of that for us via /usr/share/dpkg/pkg-info.mk
>
> DEB=${PACKAGE}_${VER}-${PKGREL}_${ARCH}.deb
>
> --
> 2.14.2
>
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
More information about the pve-devel
mailing list