File: reproducible_build.patch

package info (click to toggle)
neon27 0.36.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 2,836 kB
  • sloc: ansic: 27,754; xml: 4,634; makefile: 629; sh: 328
file content (15 lines) | stat: -rw-r--r-- 525 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Make the build reproducible
Author: Chris Lamb <lamby@debian.org>
Last-Update: 2025-08-18

--- neon27-0.35.0.orig/autogen.sh
+++ neon27-0.35.0/autogen.sh
@@ -7,7 +7,7 @@ if test ! -f .version; then
    # Building from SVN rather than in a release
    echo 0.0.0-dev > .version
    # for the documentation:
-   date +"%e %B %Y" | tr -d '\n' > doc/date.xml
+   LC_ALL=C date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" "+%e %B %Y" | tr -d '\n' > doc/date.xml
    echo 0.0.0-dev > doc/version.xml
 fi
 set -e