[SCM] faad2/master: Remove '__DATE__' CPP macro for reproducible builds

fabian-guest at users.alioth.debian.org fabian-guest at users.alioth.debian.org
Mon May 11 12:00:51 UTC 2015


The following commit has been merged in the master branch:
commit 4d980680ea95d49d21c504dea7f82add5dc797c5
Author: Fabian Greffrath <fabian+debian at greffrath.com>
Date:   Mon May 11 14:00:47 2015 +0200

    Remove '__DATE__' CPP macro for reproducible builds

diff --git a/debian/changelog b/debian/changelog
index c0a7369..bad2db4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,8 +20,9 @@ faad2 (2.8.0~cvs20150510-1) unstable; urgency=medium
     + libfaad-drm.patch: Applied upstream.
   * Ship upstream's own frontend and API documentation manpages.
   * Update Debian packaging copyright years.
+  * Remove '__DATE__' CPP macro for reproducible builds.
 
- -- Fabian Greffrath <fabian+debian at greffrath.com>  Mon, 11 May 2015 12:10:02 +0200
+ -- Fabian Greffrath <fabian+debian at greffrath.com>  Mon, 11 May 2015 13:59:49 +0200
 
 faad2 (2.7-9) unstable; urgency=medium
 
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..1f67806
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,16 @@
+Description: Remove timestamps from CPP macros
+ The C pre-processor macros '__DATE__' and '__TIME__' capture the current time
+ and thus will obviously make a build unreproducible. Usage of these macros
+ must simply be removed in order to make builds reproducible.
+Author: Fabian Greffrath <fabian+debian at greffrath.com>
+
+--- a/frontend/main.c
++++ b/frontend/main.c
+@@ -1274,7 +1274,6 @@ int main(int argc, char *argv[])
+ 
+ 
+     faad_fprintf(stderr, " *********** Ahead Software MPEG-4 AAC Decoder V%s ******************\n\n", FAAD2_VERSION);
+-    faad_fprintf(stderr, " Build: %s\n", __DATE__);
+     faad_fprintf(stderr, " Copyright 2002-2004: Ahead Software AG\n");
+     faad_fprintf(stderr, " http://www.audiocoding.com\n");
+     if (cap & FIXED_POINT_CAP)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..55077d0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+reproducible-build.patch

-- 
faad2 packaging



More information about the pkg-multimedia-commits mailing list