Source: libwebcam
Version: 0.2.4-1.1
Severity: wishlist
Tags: patch
User: reproducible-builds@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
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 <dh...@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
        
 )

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