On 2026-10-31, Vagrant Cascadian wrote:
> 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.
>
> I can confirm that this fix is still needed, and it is also demonstrated
> for the loong64 build:
>
>   https://reproduce.debian.net/excuses.html?source_name=xpenguins
>   
>   
> https://reproduce.debian.net/loong64/api/v1/builds/59894/artifacts/123119/diffoscope
>
> │ │ ├── ./usr/share/man/man1/xpenguins.1.gz
> │ │ │ ├── xpenguins.1
> │ │ │ │ @@ -1,8 +1,8 @@
> │ │ │ │ -.TH XPenguins 1 "May 2026" "XPenguins 3.2.4"
> │ │ │ │ +.TH XPenguins 1 "September 2026" "XPenguins 3.2.4"
> │ │ │ │  .SH NAME
> │ │ │ │  xpenguins \- cute little penguins that walk along the tops of your 
> windows
> │ │ │ │  .SH SYNOPSIS
> │ │ │ │  .B xpenguins
> │ │ │ │  [-option ...]
> │ │ │ │  .SH DESCRIPTION
> │ │ │ │  .IR XPenguins
>
>
> I would like to perform an NMU fixing this in the coming weeks with the
> following proposed patch:

I have uploaded an NMU to DELAYED/10, debdiff attached.

I have also created a merge request with the changes, including a signed
tag:

  https://salsa.debian.org/games-team/xpenguins/-/merge_requests/6


live well,
  vagrant
diff -Nru xpenguins-3.2.4/debian/changelog xpenguins-3.2.4/debian/changelog
--- xpenguins-3.2.4/debian/changelog    2026-05-06 15:55:22.000000000 -0700
+++ xpenguins-3.2.4/debian/changelog    2026-11-27 15:31:27.000000000 -0800
@@ -1,3 +1,11 @@
+xpenguins (3.2.4-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * debian/patches: Add patch for reproducible dates in man pages.
+    (Closes: #1137336)
+
+ -- Vagrant Cascadian <[email protected]>  Fri, 27 Nov 2026 
15:31:27 -0800
+
 xpenguins (3.2.4-2) unstable; urgency=medium
 
   * Team upload.
diff -Nru 
xpenguins-3.2.4/debian/patches/0001-Makefile.am-Seed-date-from-SOURCE_DATE_EPOCH-for-man.patch
 
xpenguins-3.2.4/debian/patches/0001-Makefile.am-Seed-date-from-SOURCE_DATE_EPOCH-for-man.patch
--- 
xpenguins-3.2.4/debian/patches/0001-Makefile.am-Seed-date-from-SOURCE_DATE_EPOCH-for-man.patch
      1969-12-31 16:00:00.000000000 -0800
+++ 
xpenguins-3.2.4/debian/patches/0001-Makefile.am-Seed-date-from-SOURCE_DATE_EPOCH-for-man.patch
      2026-11-27 15:28:57.000000000 -0800
@@ -0,0 +1,30 @@
+From d688f4315a206cb7d5b3f05489b61880a65ae37c Mon Sep 17 00:00:00 2001
+From: Chris Lamb <[email protected]>
+Date: Fri, 22 May 2026 11:08:20 -0700
+Subject: [PATCH] Makefile.am: Seed date from SOURCE_DATE_EPOCH for manpage
+ generation. (Closes: #1137336)
+
+Adjusted-by: Vagrant Cascadian <[email protected]>
+---
+ Makefile.am | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 57749aa..54cbb37 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -24,8 +24,10 @@ EXTRA_DIST = lay-out-frames.scm resize-frames.scm \
+            
+ man_MANS = xpenguins.1
+ 
++BUILD_DATE = $(shell date --utc --date=@$(or $(SOURCE_DATE_EPOCH),$(shell 
date +%s)) "+%F")
++
+ 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
+ 
+-- 
+2.47.3
+
diff -Nru xpenguins-3.2.4/debian/patches/series 
xpenguins-3.2.4/debian/patches/series
--- xpenguins-3.2.4/debian/patches/series       1969-12-31 16:00:00.000000000 
-0800
+++ xpenguins-3.2.4/debian/patches/series       2026-11-27 15:29:06.000000000 
-0800
@@ -0,0 +1 @@
+0001-Makefile.am-Seed-date-from-SOURCE_DATE_EPOCH-for-man.patch

Attachment: signature.asc
Description: PGP signature

Reply via email to