Commit 4d4b1ccf authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Make a2ps reproducible by adhering to SOURCE_DATE_EPOCH.

parent af12c405
......@@ -2,7 +2,7 @@
pkgname=a2ps
pkgver=4.14
pkgrel=9
pkgrel=10
pkgdesc="An Any to PostScript filter"
arch=('x86_64')
url="https://www.gnu.org/software/a2ps/"
......@@ -17,7 +17,8 @@ source=(https://ftp.gnu.org/gnu/a2ps/${pkgname}-${pkgver}.tar.gz{,.sig}
a2ps-4.13-security.patch
CVE-2014-0466.patch
CVE-2015-8107.patch
a2ps-texinfo67.patch)
a2ps-texinfo67.patch
adhere-source-date-epoch.patch)
sha1sums=('365abbbe4b7128bf70dad16d06e23c5701874852'
'SKIP'
'8783952d3410d8d59ed953e1db45e2ef1a0b8f65'
......@@ -29,7 +30,8 @@ sha1sums=('365abbbe4b7128bf70dad16d06e23c5701874852'
'93a4db17edfaa99e3498c7d952c560dab49dbe42'
'0a04f4c145d3aef8f3c7537eb00cb4040c7209c9'
'08c51a9361eaefe76af61b70392fa5ac1c4356c7'
'f54b6b319a5c134e0ee9be8dc9c8f80a65dc98d6')
'f54b6b319a5c134e0ee9be8dc9c8f80a65dc98d6'
'd53042daa93db3969fbb5564c4f93ddc91ef6334')
validpgpkeys=('6EB39358D8328FE3CDC903A8CB6FA340E7075A54')
prepare() {
......@@ -48,6 +50,7 @@ prepare() {
patch -p1 -i "${srcdir}/CVE-2014-0466.patch"
patch -p1 -i "${srcdir}/CVE-2015-8107.patch"
patch -p1 -i "${srcdir}/a2ps-texinfo67.patch"
patch -p1 -i "${srcdir}/adhere-source-date-epoch.patch"
}
build() {
......
diff -aur a2ps-4.14.old/etc/Makefile.am a2ps-4.14/etc/Makefile.am
--- a2ps-4.14.old/etc/Makefile.am 2020-05-15 16:22:46.236954254 +0200
+++ a2ps-4.14/etc/Makefile.am 2020-05-15 16:58:42.382348094 +0200
@@ -44,5 +44,5 @@
# Building a time stamp to know the version.
README: README.in Makefile
- sed "s!@date@!`date`!g;s!@version@!$(VERSION)!g" \
+ sed "s!@date@!$(shell date --utc --date="${SOURCE_DATE_EPOCH:-$(date +%s)}")!g;s!@version@!$(VERSION)!g" \
$(srcdir)/README.in > README
diff -aur a2ps-4.14.old/etc/Makefile.in a2ps-4.14/etc/Makefile.in
--- a2ps-4.14.old/etc/Makefile.in 2020-05-15 16:22:46.236954254 +0200
+++ a2ps-4.14/etc/Makefile.in 2020-05-15 16:59:00.132720058 +0200
@@ -486,7 +486,7 @@
# Building a time stamp to know the version.
README: README.in Makefile
- sed "s!@date@!`date`!g;s!@version@!$(VERSION)!g" \
+ sed "s!@date@!$(shell date --utc --date="${SOURCE_DATE_EPOCH:-$(date +%s)}")!g;s!@version@!$(VERSION)!g" \
$(srcdir)/README.in > README
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment