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

Attachment: signature.asc
Description: PGP signature

Reply via email to