From 8bde757d93e4ff66587564f1cdf7d59f34ae6207 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 16 Jun 2019 01:01:41 -0400 Subject: opkbuild: Set SOURCE_DATE_EPOCH --- diff --git a/src/opkbuild.sh b/src/opkbuild.sh index 4f3420e..dd2dfc2 100644 --- a/src/opkbuild.sh +++ b/src/opkbuild.sh @@ -35,6 +35,7 @@ export OPK_HOST_ARCH_CPU= export OPK_HOST_ARCH_KERNEL= export OPK_HOST_ARCH_LIBS= export OPK_HOST_PLAT= +export SOURCE_DATE_EPOCH= bindir= opt_build= @@ -235,6 +236,8 @@ setup_package() ob_parse_version -u 'OPK_SOURCE_VERSION_UPSTREAM' -- \ "${OPK_SOURCE_VERSION}" OPK_BINARY_VERSION="$(ob_get_source_parameter 'Version')" + SOURCE_DATE_EPOCH="$(ob_rfc822_mktime \ + "$(ob_get_source_parameter 'Date')")" return 0 } -- cgit v0.9.1