Source: classified-ads
Version: 0.07-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that classified-ads could not be built reproducibly.
It embeds timestamps into PNG images, which are embedded into the binary.

The attached patch prevents this.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds

diff --git a/debian/patches/reproducible_build.patch b/debian/patches/reproducible_build.patch
new file mode 100644
index 0000000..c741f6d
--- /dev/null
+++ b/debian/patches/reproducible_build.patch
@@ -0,0 +1,20 @@
+Author: Reiner Herrmann <rei...@reiner-h.de>
+Description: Prevent embedding of timestamps in PNG files to make build reproducible
+
+Index: classified-ads-0.07/graphics-highres/Makefile
+===================================================================
+--- classified-ads-0.07.orig/graphics-highres/Makefile
++++ classified-ads-0.07/graphics-highres/Makefile
+@@ -28,10 +28,10 @@
+ all: ../ui/turt558.png ../ui/turt-transparent-128x128.png
+ 
+ ../ui/turt558.png: turt-transparent.xcf
+-	convert turt-transparent.xcf -resize 558 ../ui/turt558.png
++	convert turt-transparent.xcf -resize 558 +set date:create +set date:modify -define png:exclude-chunk=time ../ui/turt558.png
+ 
+ ../ui/turt-transparent-128x128.png: turt-transparent.xcf
+-	convert turt-transparent.xcf -resize 128x128\>   -gravity center -background none -extent 128x128 ../ui/turt-transparent-128x128.png
++	convert turt-transparent.xcf -resize 128x128\>   -gravity center -background none -extent 128x128 +set date:create +set date:modify -define png:exclude-chunk=time ../ui/turt-transparent-128x128.png
+ 
+ clean:
+ 	rm -f ../ui/turt558.png ../ui/turt-transparent-128x128.png
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b2026fe
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+reproducible_build.patch

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to