GNU bug report logs - #32861
[Fwd: [PATCH] fvwm reproducible]

Previous Next

Package: guix-patches;

Reported by: Nils Gillmann <ng0 <at> n0.is>

Date: Fri, 28 Sep 2018 15:01:02 UTC

Severity: normal

Tags: patch

Done: Nils Gillmann <ng0 <at> n0.is>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32861 in the body.
You can then email your comments to 32861 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#32861; Package guix-patches. (Fri, 28 Sep 2018 15:01:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nils Gillmann <ng0 <at> n0.is>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 28 Sep 2018 15:01:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nils Gillmann <ng0 <at> n0.is>
To: guix-patches <at> gnu.org
Subject: [Fwd: [PATCH] fvwm reproducible]
Date: Fri, 28 Sep 2018 15:00:19 +0000
Hi,

I can send the patches again if they get swallowed by
this forwarding. It is probably better to send them
to guix-patches then guix-devel these days it seems.

----- Forwarded message -----

> Hi,
> 
> appended is a patch I use on my side to build fvwm reproducible.
> It is an adjusted version taken from Xenocara (OpenBSD's X11 tree)
> recently commited. Upstream did like the idea but I guess from
> their reply that they focus on fvwm3 instead:
>   https://github.com/fvwmorg/fvwm/issues/67
> 
> Take it or leave it as it is, I don't have the time right now
> for QA. Patch attached alone + guix tree applying patch.
> 
> *DISCLAIMER*
> I have build this package in my trees, so I know the patch itself
> works.  Due to some issue with correctly building guix in my old
> checkout of it, I can not verify quickly if the guix tree patch I
> created builds. Important date upcoming, feel free to fix and add
> yourself as Co-Author if it doesn't apply.
> 
> 
> Happy hacking.

> From 6980b10ff3870ee87d836858583154b952f7c229 Mon Sep 17 00:00:00 2001
> From: Nils Gillmann <ng0 <at> n0.is>
> Date: Sun, 23 Sep 2018 17:57:55 +0000
> Subject: [PATCH] gnu: fvwm: Add patch to build it reproducible.
> 
> * gnu/packages/fvwm.scm (fvwm)[source]: Add patch.
> * gnu/packages/patches/fvwm-2.6.8-remove-all-compile-timestamps.patch: New file.
> * gnu/local.mk (dist_patch_DATA): Register patch.
> 
> Signed-off-by: Nils Gillmann <ng0 <at> n0.is>
> ---
>  gnu/local.mk                                  |  1 +
>  gnu/packages/fvwm.scm                         |  4 ++-
>  ...-2.6.8-remove-all-compile-timestamps.patch | 35 +++++++++++++++++++
>  3 files changed, 39 insertions(+), 1 deletion(-)
>  create mode 100644 gnu/packages/patches/fvwm-2.6.8-remove-all-compile-timestamps.patch
> 
> diff --git a/gnu/local.mk b/gnu/local.mk
> index fe2b573dd..18002080a 100644
> --- a/gnu/local.mk
> +++ b/gnu/local.mk
> @@ -693,6 +693,7 @@ dist_patch_DATA =						\
>    %D%/packages/patches/freeimage-unbundle.patch		\
>    %D%/packages/patches/freetype-CVE-2018-6942.patch		\
>    %D%/packages/patches/fuse-overlapping-headers.patch				\
> +  %D%/packages/patches/fvwm-2.6.8-remove-all-compile-timestamps.patch	\
>    %D%/packages/patches/gawk-shell.patch				\
>    %D%/packages/patches/gcc-arm-bug-71399.patch			\
>    %D%/packages/patches/gcc-arm-link-spec-fix.patch		\
> diff --git a/gnu/packages/fvwm.scm b/gnu/packages/fvwm.scm
> index 386edba59..c2a5010c8 100644
> --- a/gnu/packages/fvwm.scm
> +++ b/gnu/packages/fvwm.scm
> @@ -1,7 +1,7 @@
>  ;;; GNU Guix --- Functional package management for GNU
>  ;;; Copyright © 2015 Sou Bunnbu <iyzsong <at> gmail.com>
>  ;;; Copyright © 2016 Efraim Flashner <efraim <at> flashner.co.il>
> -;;; Copyright © 2017 Nils Gillmann <ng0 <at> n0.is>
> +;;; Copyright © 2017, 2018 Nils Gillmann <ng0 <at> n0.is>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -41,6 +41,8 @@
>                (uri (string-append
>                      "https://github.com/fvwmorg/fvwm/releases/download/"
>                      version "/" name "-" version ".tar.gz"))
> +              (patches
> +               (search-patch "fvwm-2.6.8-remove-all-compile-timestamps"))
>                (sha256
>                 (base32
>                  "0hgkkdzcqjnaabvv9cnh0bz90nnjskbhjg9qnzpi2x0mbliwjdpv"))))
> diff --git a/gnu/packages/patches/fvwm-2.6.8-remove-all-compile-timestamps.patch b/gnu/packages/patches/fvwm-2.6.8-remove-all-compile-timestamps.patch
> new file mode 100644
> index 000000000..a1f3189db
> --- /dev/null
> +++ b/gnu/packages/patches/fvwm-2.6.8-remove-all-compile-timestamps.patch
> @@ -0,0 +1,35 @@
> +From 90e0ab0a5d5eae066f670723cd4c20f113e664be Mon Sep 17 00:00:00 2001
> +From: Nils Gillmann <gillmann <at> infotropique.org>
> +Date: Mon, 17 Sep 2018 23:23:46 +0000
> +Subject: [PATCH] Remove compile time __DATE__ and __TIME__ variables from the
> + source.
> +
> +Commentary: it looks like upstream rejected the request for inclusion in
> +https://github.com/fvwmorg/fvwm/issues/67 and focuses on fvwm3 fixes.
> +Irritating, but we have tried.
> +This patch has been taken from a similar (but not applying as-is) patch
> +by robert <at> openbsd for openbsd's Xenocara FVWM version.
> +
> +Signed-off-by: Nils Gillmann <gillmann <at> infotropique.org>
> +---
> + fvwm/fvwm.c | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/fvwm/fvwm.c b/fvwm/fvwm.c
> +index f5317f2..3e0f183 100644
> +--- a/fvwm/fvwm.c
> ++++ b/fvwm/fvwm.c
> +@@ -1286,8 +1286,8 @@ static void setVersionInfo(void)
> + 	int support_len;
> + 
> + 	/* Set version information string */
> +-	sprintf(version_str, "fvwm %s%s compiled on %s at %s",
> +-		VERSION, VERSIONINFO, __DATE__, __TIME__);
> ++	sprintf(version_str, "fvwm %s%s\n",
> ++		VERSION, VERSIONINFO);
> + 	Fvwm_VersionInfo = safestrdup(version_str);
> + 
> + 	sprintf(license_str,
> +-- 
> +2.19.0
> +
> -- 
> 2.19.0
> 

> From 90e0ab0a5d5eae066f670723cd4c20f113e664be Mon Sep 17 00:00:00 2001
> From: Nils Gillmann <gillmann <at> infotropique.org>
> Date: Mon, 17 Sep 2018 23:23:46 +0000
> Subject: [PATCH] Remove compile time __DATE__ and __TIME__ variables from the
>  source.
> 
> Commentary: it looks like upstream rejected the request for inclusion in
> https://github.com/fvwmorg/fvwm/issues/67 and focuses on fvwm3 fixes.
> Irritating, but we have tried.
> This patch has been taken from a similar (but not applying as-is) patch
> by robert <at> openbsd for openbsd's Xenocara FVWM version.
> 
> Signed-off-by: Nils Gillmann <gillmann <at> infotropique.org>
> ---
>  fvwm/fvwm.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/fvwm/fvwm.c b/fvwm/fvwm.c
> index f5317f2..3e0f183 100644
> --- a/fvwm/fvwm.c
> +++ b/fvwm/fvwm.c
> @@ -1286,8 +1286,8 @@ static void setVersionInfo(void)
>  	int support_len;
>  
>  	/* Set version information string */
> -	sprintf(version_str, "fvwm %s%s compiled on %s at %s",
> -		VERSION, VERSIONINFO, __DATE__, __TIME__);
> +	sprintf(version_str, "fvwm %s%s\n",
> +		VERSION, VERSIONINFO);
>  	Fvwm_VersionInfo = safestrdup(version_str);
>  
>  	sprintf(license_str,
> -- 
> 2.19.0
> 




----- End forwarded message -----




Information forwarded to guix-patches <at> gnu.org:
bug#32861; Package guix-patches. (Fri, 28 Sep 2018 15:14:02 GMT) Full text and rfc822 format available.

Message #8 received at 32861 <at> debbugs.gnu.org (full text, mbox):

From: Nils Gillmann <ng0 <at> n0.is>
To: 32861 <at> debbugs.gnu.org
Subject: Re: [bug#32861] [Fwd: [PATCH] fvwm reproducible]
Date: Fri, 28 Sep 2018 15:14:19 +0000
[Message part 1 (text/plain, inline)]
Nils Gillmann transcribed 6.0K bytes:
> Hi,
> 
> I can send the patches again if they get swallowed by
> this forwarding. It is probably better to send them
> to guix-patches then guix-devel these days it seems.

Patches attached in this email.

> 
> ----- Forwarded message -----
> 
> > Hi,
> > 
> > appended is a patch I use on my side to build fvwm reproducible.
> > It is an adjusted version taken from Xenocara (OpenBSD's X11 tree)
> > recently commited. Upstream did like the idea but I guess from
> > their reply that they focus on fvwm3 instead:
> >   https://github.com/fvwmorg/fvwm/issues/67
> > 
> > Take it or leave it as it is, I don't have the time right now
> > for QA. Patch attached alone + guix tree applying patch.
> > 
> > *DISCLAIMER*
> > I have build this package in my trees, so I know the patch itself
> > works.  Due to some issue with correctly building guix in my old
> > checkout of it, I can not verify quickly if the guix tree patch I
> > created builds. Important date upcoming, feel free to fix and add
> > yourself as Co-Author if it doesn't apply.
> > 
> > 
> > Happy hacking.
> 
> > From 6980b10ff3870ee87d836858583154b952f7c229 Mon Sep 17 00:00:00 2001
> > From: Nils Gillmann <ng0 <at> n0.is>
> > Date: Sun, 23 Sep 2018 17:57:55 +0000
> > Subject: [PATCH] gnu: fvwm: Add patch to build it reproducible.
> > 
> > * gnu/packages/fvwm.scm (fvwm)[source]: Add patch.
> > * gnu/packages/patches/fvwm-2.6.8-remove-all-compile-timestamps.patch: New file.
> > * gnu/local.mk (dist_patch_DATA): Register patch.
> > 
> > Signed-off-by: Nils Gillmann <ng0 <at> n0.is>
> > ---
> >  gnu/local.mk                                  |  1 +
> >  gnu/packages/fvwm.scm                         |  4 ++-
> >  ...-2.6.8-remove-all-compile-timestamps.patch | 35 +++++++++++++++++++
> >  3 files changed, 39 insertions(+), 1 deletion(-)
> >  create mode 100644 gnu/packages/patches/fvwm-2.6.8-remove-all-compile-timestamps.patch
> > 
> > diff --git a/gnu/local.mk b/gnu/local.mk
> > index fe2b573dd..18002080a 100644
> > --- a/gnu/local.mk
> > +++ b/gnu/local.mk
> > @@ -693,6 +693,7 @@ dist_patch_DATA =						\
> >    %D%/packages/patches/freeimage-unbundle.patch		\
> >    %D%/packages/patches/freetype-CVE-2018-6942.patch		\
> >    %D%/packages/patches/fuse-overlapping-headers.patch				\
> > +  %D%/packages/patches/fvwm-2.6.8-remove-all-compile-timestamps.patch	\
> >    %D%/packages/patches/gawk-shell.patch				\
> >    %D%/packages/patches/gcc-arm-bug-71399.patch			\
> >    %D%/packages/patches/gcc-arm-link-spec-fix.patch		\
> > diff --git a/gnu/packages/fvwm.scm b/gnu/packages/fvwm.scm
> > index 386edba59..c2a5010c8 100644
> > --- a/gnu/packages/fvwm.scm
> > +++ b/gnu/packages/fvwm.scm
> > @@ -1,7 +1,7 @@
> >  ;;; GNU Guix --- Functional package management for GNU
> >  ;;; Copyright © 2015 Sou Bunnbu <iyzsong <at> gmail.com>
> >  ;;; Copyright © 2016 Efraim Flashner <efraim <at> flashner.co.il>
> > -;;; Copyright © 2017 Nils Gillmann <ng0 <at> n0.is>
> > +;;; Copyright © 2017, 2018 Nils Gillmann <ng0 <at> n0.is>
> >  ;;;
> >  ;;; This file is part of GNU Guix.
> >  ;;;
> > @@ -41,6 +41,8 @@
> >                (uri (string-append
> >                      "https://github.com/fvwmorg/fvwm/releases/download/"
> >                      version "/" name "-" version ".tar.gz"))
> > +              (patches
> > +               (search-patch "fvwm-2.6.8-remove-all-compile-timestamps"))
> >                (sha256
> >                 (base32
> >                  "0hgkkdzcqjnaabvv9cnh0bz90nnjskbhjg9qnzpi2x0mbliwjdpv"))))
> > diff --git a/gnu/packages/patches/fvwm-2.6.8-remove-all-compile-timestamps.patch b/gnu/packages/patches/fvwm-2.6.8-remove-all-compile-timestamps.patch
> > new file mode 100644
> > index 000000000..a1f3189db
> > --- /dev/null
> > +++ b/gnu/packages/patches/fvwm-2.6.8-remove-all-compile-timestamps.patch
> > @@ -0,0 +1,35 @@
> > +From 90e0ab0a5d5eae066f670723cd4c20f113e664be Mon Sep 17 00:00:00 2001
> > +From: Nils Gillmann <gillmann <at> infotropique.org>
> > +Date: Mon, 17 Sep 2018 23:23:46 +0000
> > +Subject: [PATCH] Remove compile time __DATE__ and __TIME__ variables from the
> > + source.
> > +
> > +Commentary: it looks like upstream rejected the request for inclusion in
> > +https://github.com/fvwmorg/fvwm/issues/67 and focuses on fvwm3 fixes.
> > +Irritating, but we have tried.
> > +This patch has been taken from a similar (but not applying as-is) patch
> > +by robert <at> openbsd for openbsd's Xenocara FVWM version.
> > +
> > +Signed-off-by: Nils Gillmann <gillmann <at> infotropique.org>
> > +---
> > + fvwm/fvwm.c | 4 ++--
> > + 1 file changed, 2 insertions(+), 2 deletions(-)
> > +
> > +diff --git a/fvwm/fvwm.c b/fvwm/fvwm.c
> > +index f5317f2..3e0f183 100644
> > +--- a/fvwm/fvwm.c
> > ++++ b/fvwm/fvwm.c
> > +@@ -1286,8 +1286,8 @@ static void setVersionInfo(void)
> > + 	int support_len;
> > + 
> > + 	/* Set version information string */
> > +-	sprintf(version_str, "fvwm %s%s compiled on %s at %s",
> > +-		VERSION, VERSIONINFO, __DATE__, __TIME__);
> > ++	sprintf(version_str, "fvwm %s%s\n",
> > ++		VERSION, VERSIONINFO);
> > + 	Fvwm_VersionInfo = safestrdup(version_str);
> > + 
> > + 	sprintf(license_str,
> > +-- 
> > +2.19.0
> > +
> > -- 
> > 2.19.0
> > 
> 
> > From 90e0ab0a5d5eae066f670723cd4c20f113e664be Mon Sep 17 00:00:00 2001
> > From: Nils Gillmann <gillmann <at> infotropique.org>
> > Date: Mon, 17 Sep 2018 23:23:46 +0000
> > Subject: [PATCH] Remove compile time __DATE__ and __TIME__ variables from the
> >  source.
> > 
> > Commentary: it looks like upstream rejected the request for inclusion in
> > https://github.com/fvwmorg/fvwm/issues/67 and focuses on fvwm3 fixes.
> > Irritating, but we have tried.
> > This patch has been taken from a similar (but not applying as-is) patch
> > by robert <at> openbsd for openbsd's Xenocara FVWM version.
> > 
> > Signed-off-by: Nils Gillmann <gillmann <at> infotropique.org>
> > ---
> >  fvwm/fvwm.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/fvwm/fvwm.c b/fvwm/fvwm.c
> > index f5317f2..3e0f183 100644
> > --- a/fvwm/fvwm.c
> > +++ b/fvwm/fvwm.c
> > @@ -1286,8 +1286,8 @@ static void setVersionInfo(void)
> >  	int support_len;
> >  
> >  	/* Set version information string */
> > -	sprintf(version_str, "fvwm %s%s compiled on %s at %s",
> > -		VERSION, VERSIONINFO, __DATE__, __TIME__);
> > +	sprintf(version_str, "fvwm %s%s\n",
> > +		VERSION, VERSIONINFO);
> >  	Fvwm_VersionInfo = safestrdup(version_str);
> >  
> >  	sprintf(license_str,
> > -- 
> > 2.19.0
> > 
> 
> 
> 
> 
> ----- End forwarded message -----
> 
> 
> 
[fvwm-2.6.8-remove-all-compile-timestamps.patch (text/plain, attachment)]
[0001-gnu-fvwm-Add-patch-to-build-it-reproducible.patch (text/plain, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#32861; Package guix-patches. (Fri, 28 Sep 2018 21:19:01 GMT) Full text and rfc822 format available.

Message #11 received at 32861 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Nils Gillmann <ng0 <at> n0.is>
Cc: 32861 <at> debbugs.gnu.org
Subject: Re: [bug#32861] [Fwd: [PATCH] fvwm reproducible]
Date: Fri, 28 Sep 2018 23:18:12 +0200
Hi Nils,

Nils Gillmann <ng0 <at> n0.is> skribis:

> +From 90e0ab0a5d5eae066f670723cd4c20f113e664be Mon Sep 17 00:00:00 2001
> +From: Nils Gillmann <gillmann <at> infotropique.org>
> +Date: Mon, 17 Sep 2018 23:23:46 +0000
> +Subject: [PATCH] Remove compile time __DATE__ and __TIME__ variables from the
> + source.

I’ve just tried “guix build fvwm --no-grafts --check”, which suggests
everything is fine.

Indeed, our GCC packages include SOURCE_DATE_EPOCH patches, which take
care of __DATE__ and __TIME__.

Can you confirm that fvwm is bit-reproducible for you without this
patch?

Thank you,
Ludo’.




Reply sent to Nils Gillmann <ng0 <at> n0.is>:
You have taken responsibility. (Fri, 28 Sep 2018 21:55:02 GMT) Full text and rfc822 format available.

Notification sent to Nils Gillmann <ng0 <at> n0.is>:
bug acknowledged by developer. (Fri, 28 Sep 2018 21:55:02 GMT) Full text and rfc822 format available.

Message #16 received at 32861-done <at> debbugs.gnu.org (full text, mbox):

From: Nils Gillmann <ng0 <at> n0.is>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 32861-done <at> debbugs.gnu.org, Nils Gillmann <ng0 <at> n0.is>
Subject: Re: [bug#32861] [Fwd: [PATCH] fvwm reproducible]
Date: Fri, 28 Sep 2018 21:54:54 +0000
Ludovic Courtès transcribed 629 bytes:
> Hi Nils,
> 
> Nils Gillmann <ng0 <at> n0.is> skribis:
> 
> > +From 90e0ab0a5d5eae066f670723cd4c20f113e664be Mon Sep 17 00:00:00 2001
> > +From: Nils Gillmann <gillmann <at> infotropique.org>
> > +Date: Mon, 17 Sep 2018 23:23:46 +0000
> > +Subject: [PATCH] Remove compile time __DATE__ and __TIME__ variables from the
> > + source.
> 
> I’ve just tried “guix build fvwm --no-grafts --check”, which suggests
> everything is fine.
> 
> Indeed, our GCC packages include SOURCE_DATE_EPOCH patches, which take
> care of __DATE__ and __TIME__.

So with this GCC 'SOURCE_DATE_EPOCH' all __DATE__ and __TIME__ should
be treated as per SOURCE_DATE_EPOCH specification. I did forget this
I think.

/gnu/store/jdlznqp43zyavbmm9kj5hcsrqrcxj6sr-fvwm-2.6.8/bin/fvwm -V
fvwm 2.6.8 compiled on Jan  1 1970 at 00:00:01

Where I assumed the patch was needed, it is not.

> Can you confirm that fvwm is bit-reproducible for you without this
> patch?

Yes, it is.

> Thank you,
> Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 27 Oct 2018 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 294 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.