Bug#1137336: xpenguins: please make the build reproducible

Chris Lamb lamby at debian.org
Fri May 22 19:08:20 BST 2026


Source: xpenguins
Version: 3.2.4-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
xpenguins could not be built reproducibly.

This is because the manual package is generated with the current date.
I've attached a patch that seeds this date from SOURCE_DATE_EPOCH, if
available.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible-build.patch	1969-12-31 16:00:00.000000000 -0800
--- b/debian/patches/reproducible-build.patch	2026-05-22 08:52:21.685326234 -0700
@@ -0,0 +1,18 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2026-05-22
+
+--- xpenguins-3.2.4.orig/Makefile.am
++++ xpenguins-3.2.4/Makefile.am
+@@ -24,8 +24,10 @@ EXTRA_DIST = lay-out-frames.scm resize-f
+ 	     
+ man_MANS = xpenguins.1
+ 
++BUILD_DATE = $(shell date --utc --date=@$(or $(SOURCE_DATE_EPOCH),$(shell date +%s)) "+%B %Y")
++
+ xpenguins.1: xpenguins.1.tmpl
+-	sed "s'SYSTEMTHEMES'$(datadir)/xpenguins/themes/*';s/VERSION/$(VERSION)/;s/DATE/`date +'%B %Y'`/" < $< > $@
++	sed "s'SYSTEMTHEMES'$(datadir)/xpenguins/themes/*';s/VERSION/$(VERSION)/;s/DATE/$(BUILD_DATE)/" < $< > $@
+ 
+ tarfile = $(top_builddir)/xroachng-$(VERSION).tar.gz
+ 
--- a/debian/patches/series	1969-12-31 16:00:00.000000000 -0800
--- b/debian/patches/series	2026-05-22 08:38:46.010022246 -0700
@@ -0,0 +1 @@
+reproducible-build.patch


More information about the Pkg-games-devel mailing list