[SCM] jack-audio-connection-kit/master: Make build reproducible by forcing LC_ALL during manpage generation
jcowgill at users.alioth.debian.org
jcowgill at users.alioth.debian.org
Sat Dec 3 19:20:23 UTC 2016
The following commit has been merged in the master branch:
commit 5f0eb8d9c36271d9bbd37852015035af53ac88c5
Author: James Cowgill <jcowgill at debian.org>
Date: Sat Dec 3 17:50:09 2016 +0000
Make build reproducible by forcing LC_ALL during manpage generation
Closes: #792667
diff --git a/debian/patches/1001-Use-LC_ALL-C-to-generate-manpage-date.patch b/debian/patches/1001-Use-LC_ALL-C-to-generate-manpage-date.patch
new file mode 100644
index 0000000..1553a71
--- /dev/null
+++ b/debian/patches/1001-Use-LC_ALL-C-to-generate-manpage-date.patch
@@ -0,0 +1,25 @@
+From 1f544ff7ab906f2e77aaf2c6a32178c131774f97 Mon Sep 17 00:00:00 2001
+From: James Cowgill <james410 at cowgill.org.uk>
+Date: Sat, 3 Dec 2016 16:32:26 +0000
+Subject: [PATCH] Use LC_ALL=C to generate manpage date
+
+Without this, the user's locale may influence the content of the
+manpages (eg juin instead of June for a french locale).
+---
+ man/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/man/Makefile.am b/man/Makefile.am
+index f889434..3cb404a 100644
+--- a/man/Makefile.am
++++ b/man/Makefile.am
+@@ -1,5 +1,5 @@
+ .0.1:
+- @[ -z "$$SOURCE_DATE_EPOCH" ] || d=--date=@$$SOURCE_DATE_EPOCH ; sed -e "s/!VERSION!/@JACK_RELEASE@/g" -e "s/!DATE!/`date $$d '+%B %Y'`/g" < $*.0 > $@
++ @[ -z "$$SOURCE_DATE_EPOCH" ] || d=--date=@$$SOURCE_DATE_EPOCH ; sed -e "s/!VERSION!/@JACK_RELEASE@/g" -e "s/!DATE!/`LC_ALL=C date $$d '+%B %Y'`/g" < $*.0 > $@
+ @echo Built $*.1 from template
+
+ manpages = $(patsubst %.0,%.1,$(wildcard *.0))
+--
+2.10.2
+
diff --git a/debian/patches/series b/debian/patches/series
index 5e96c42..939398c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+1001-Use-LC_ALL-C-to-generate-manpage-date.patch
2001_debian_lib64.patch
--
Debian packaging for jack-audio-connection-kit
More information about the pkg-multimedia-commits
mailing list