Bug#1137336: xpenguins: please make the build reproducible
Vagrant Cascadian
vagrant at reproducible-builds.org
Fri May 22 19:50:39 BST 2026
On 2026-05-22, Chris Lamb wrote:
> 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.
...
> +--- 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
> +
Note that "date +'%B %Y'" is potentially locale sensitive:
%B locale's full month name (e.g., January)
It might be worth using +%F or +%Y-%m-%d instead.
live well,
vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-games-devel/attachments/20260522/8010cb7e/attachment.sig>
More information about the Pkg-games-devel
mailing list