Re: [Reproducible-builds] Bug#834016: ddd: please make the build reproducible

2016-08-11 Thread Vagrant Cascadian
On 2016-08-11, Chris Lamb wrote:
> +--- ddd-3.3.12.orig/ddd/config-info
>  ddd-3.3.12/ddd/config-info
> +@@ -59,6 +59,10 @@ esac
> + month=`date '+%m'`
> + day=`date '+%d'`
> + date=${year}-${month}-${day}
> ++if [ -n "${SOURCE_DATE_EPOCH}" ]
> ++then
> ++date=`date --utc --date="@${SOURCE_DATE_EPOCH}" '+%Y-%m-%d'`
> ++fi
> + (
> + echo "@(#)Built $date by $userinfo"
> + if $features; then

Wouldn't this also require the "month" and "day" variables to be set
using SOURE_DATE_EPOCH?


live well,
  vagrant


signature.asc
Description: PGP signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

[Reproducible-builds] Bug#834016: ddd: please make the build reproducible

2016-08-11 Thread Chris Lamb
Source: ddd
Version: 1:3.3.12-5.1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed
that ddd could not be built reproducibly.

Patch attached.

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


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-
--- a/debian/patches/007_reproducible_build.diff1970-01-01 
01:00:00.0 +0100
--- b/debian/patches/007_reproducible_build.diff2016-08-11 
13:57:26.400420657 +0100
@@ -0,0 +1,17 @@
+Description: Make the build reproducible
+Author: Chris Lamb 
+Last-Update: 2016-08-11
+
+--- ddd-3.3.12.orig/ddd/config-info
 ddd-3.3.12/ddd/config-info
+@@ -59,6 +59,10 @@ esac
+ month=`date '+%m'`
+ day=`date '+%d'`
+ date=${year}-${month}-${day}
++if [ -n "${SOURCE_DATE_EPOCH}" ]
++then
++  date=`date --utc --date="@${SOURCE_DATE_EPOCH}" '+%Y-%m-%d'`
++fi
+ (
+ echo "@(#)Built $date by $userinfo"
+ if $features; then
--- a/debian/patches/series 2016-08-11 13:37:26.914722545 +0100
--- b/debian/patches/series 2016-08-11 13:57:24.500396161 +0100
@@ -7,3 +7,4 @@
 machine_code_window_fix.diff
 tinfo_support.diff
 remove_broken_ICE_MOTIF_DIALOGS_OWN_SELECTION_LIST.diff
+007_reproducible_build.diff
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds