From 00ae04adf84c74a2c0d7a68e8683879cd3119cbe Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Sun, 30 Apr 2023 15:44:21 -0700 Subject: [PATCH 1/4] man/fill_template: Use numeric year-month-date for manpage. The month may be rendered for the locale of the build environment. https://reproducible-builds.org/docs/locales/ --- man/fill_template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man/fill_template b/man/fill_template index 368cb1b0..d1df18d7 100644 --- a/man/fill_template +++ b/man/fill_template @@ -4,8 +4,8 @@ d="" if [ "$2" == "True" ]; then for i in *.0 ; do - sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%B %Y'`/g" < ${i} > ${i%%0}1 + sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%Y-%m-%d'`/g" < ${i} > ${i%%0}1 done else - sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%B %Y'`/g" < jackd.0 > jackd.1 + sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%Y-%m-%d'`/g" < jackd.0 > jackd.1 fi From 299797ed6c045286d565955cbf3ceaddff4a26c4 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Sun, 30 Apr 2023 15:52:22 -0700 Subject: [PATCH 2/4] man/fill_template: Use UTC date to avoid differences based on timezone. https://reproducible-builds.org/docs/timezones/ --- man/fill_template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/fill_template b/man/fill_template index d1df18d7..641cab81 100644 --- a/man/fill_template +++ b/man/fill_template @@ -1,6 +1,6 @@ #!/bin/sh d="" -[ -z "$SOURCE_DATE_EPOCH" ] || d=--date=@$SOURCE_DATE_EPOCH +[ -z "$SOURCE_DATE_EPOCH" ] || d="--utc --date=@$SOURCE_DATE_EPOCH" if [ "$2" == "True" ]; then for i in *.0 ; do From 7eac4777ef04cc0012f20b416014e3e9e6743dbc Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Sun, 30 Apr 2023 15:52:59 -0700 Subject: [PATCH 3/4] man/fill_template: Use POSIX compatible comparison. Bash supports == comparison, but other /bin/sh implementations may not. --- man/fill_template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/fill_template b/man/fill_template index 641cab81..63642a39 100644 --- a/man/fill_template +++ b/man/fill_template @@ -2,7 +2,7 @@ d="" [ -z "$SOURCE_DATE_EPOCH" ] || d="--utc --date=@$SOURCE_DATE_EPOCH" -if [ "$2" == "True" ]; then +if [ "$2" = "True" ]; then for i in *.0 ; do sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%Y-%m-%d'`/g" < ${i} > ${i%%0}1 done From 48d8cd1caf3448d43409b8bb0cfd88d4c375b017 Mon Sep 17 00:00:00 2001 From: Nicholas D Steeves Date: Tue, 4 Jul 2023 10:36:25 -0400 Subject: [PATCH 4/4] Use BSD-compatible arguments for date in man/fill_template --- man/fill_template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/fill_template b/man/fill_template index 63642a39..3e5efc4e 100644 --- a/man/fill_template +++ b/man/fill_template @@ -1,6 +1,6 @@ #!/bin/sh d="" -[ -z "$SOURCE_DATE_EPOCH" ] || d="--utc --date=@$SOURCE_DATE_EPOCH" +[ -z "$SOURCE_DATE_EPOCH" ] || d="-u --date=@$SOURCE_DATE_EPOCH" if [ "$2" = "True" ]; then for i in *.0 ; do