[Reproducible-builds] Bug#787999: libwebcam: please make the build reproducible

Dhole dhole at openmailbox.org
Sun Jun 7 16:03:03 UTC 2015


Source: libwebcam
Version: 0.2.4-1.1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that libwebcam could not be built reproducibly.

The attached patch removes extra timestamps from the gzip files. Once
applied, libwebcam can be built reproducibly in our current experimental
framework.

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

-- 
Dhole
-------------- next part --------------
Description: Make libwebcam build reproducible
 The following patch makes the calls to gzip discard the timestamp of files
 when compressing, so no time metadata is stored. This way the build becomes
 reproducible.
 .
 libwebcam (0.2.4-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Removes timestamps from gzip
Author: Dhole <dhole at openmailbox.org>
Bug-Debian: https://bugs.debian.org/770982

---

--- libwebcam-0.2.4.orig/uvcdynctrl/CMakeLists.txt
+++ libwebcam-0.2.4/uvcdynctrl/CMakeLists.txt
@@ -58,7 +58,7 @@ add_definitions (-DHAVE_CONFIG_H)
 
 #create man pages
 execute_process (
-	COMMAND			sh -c "rm -f ${CMAKE_CURRENT_BINARY_DIR}/*.gz; cp ${CMAKE_CURRENT_SOURCE_DIR}/uvcdynctrl.1_ ${CMAKE_CURRENT_BINARY_DIR}/uvcdynctrl.1; cp ${CMAKE_CURRENT_SOURCE_DIR}/uvcdynctrl.1_ ${CMAKE_CURRENT_BINARY_DIR}/uvcdynctrl-${UVCDYNCTRL_VERSION}.1; gzip --best ${CMAKE_CURRENT_BINARY_DIR}/uvcdynctrl-${UVCDYNCTRL_VERSION}.1; gzip --best ${CMAKE_CURRENT_BINARY_DIR}/uvcdynctrl.1;"
+	COMMAND			sh -c "rm -f ${CMAKE_CURRENT_BINARY_DIR}/*.gz; cp ${CMAKE_CURRENT_SOURCE_DIR}/uvcdynctrl.1_ ${CMAKE_CURRENT_BINARY_DIR}/uvcdynctrl.1; cp ${CMAKE_CURRENT_SOURCE_DIR}/uvcdynctrl.1_ ${CMAKE_CURRENT_BINARY_DIR}/uvcdynctrl-${UVCDYNCTRL_VERSION}.1; gzip --best -n ${CMAKE_CURRENT_BINARY_DIR}/uvcdynctrl-${UVCDYNCTRL_VERSION}.1; gzip --best -n ${CMAKE_CURRENT_BINARY_DIR}/uvcdynctrl.1;"
 	RESULT_VARIABLE		MAN_BUILD_RESULT
 	
 )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150607/dc61a428/attachment.sig>


More information about the Reproducible-builds mailing list