commit: cbb67e0be81716c147d845cec44e59be689b2ac2
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Tue May 31 01:30:30 2022 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Tue May 31 01:42:08 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbb67e0b
sys-boot/syslinux: set DATE and HEXDATE
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
sys-boot/syslinux/syslinux-6.04_pre3.ebuild | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/sys-boot/syslinux/syslinux-6.04_pre3.ebuild
b/sys-boot/syslinux/syslinux-6.04_pre3.ebuild
index 67929943e8d1..bf2d6923e02e 100644
--- a/sys-boot/syslinux/syslinux-6.04_pre3.ebuild
+++ b/sys-boot/syslinux/syslinux-6.04_pre3.ebuild
@@ -64,17 +64,21 @@ efimake() {
}
src_compile() {
+ local DATE=$(date -u -r NEWS +%Y%m%d)
+ local HEXDATE=$(printf '0x%08x' "${DATE}")
+
tc-export AR CC LD OBJCOPY RANLIB
unset LDFLAGS
+
if use bios; then
- emake bios
+ emake bios DATE="${DATE}" HEXDATE="${HEXDATE}"
fi
if use efi; then
if use abi_x86_32; then
- efimake x86 efi32
+ efimake x86 efi32 DATE="${DATE}" HEXDATE="${HEXDATE}"
fi
if use abi_x86_64; then
- efimake amd64 efi64
+ efimake amd64 efi64 DATE="${DATE}" HEXDATE="${HEXDATE}"
fi
fi
}