Debian Bug report logs -
#1021516
ssocr: reproducible-builds: date in ssocr manpage
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Gürkan Myczko <tar@debian.org>:
Bug#1021516; Package src:ssocr.
(Sun, 09 Oct 2022 23:21:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Gürkan Myczko <tar@debian.org>.
(Sun, 09 Oct 2022 23:21:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: ssocr
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
The date is embedded in /usr/share/man/man1/ssocr.1.gz:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/ssocr.html
TH·ssocr·1·"2023-11-10"·"2.22.1"·"OCR·for·seven·segment·displays"
vs.
TH·ssocr·1·"2022-10-09"·"2.22.1"·"OCR·for·seven·segment·displays"
The attached patch to the upstream Makefile fixes this by using
SOURCE_DATE_EPOCH to determine the date to embed in the manpage.
According to my local tests, with this patch applied, and the patch
applied to fix build paths from #1021514, ssocr should build
reproducibly on tests.reproducible-builds.org!
Thanks for maintaining ssocr!
live well,
vagrant
[0001-Makefile-Use-SOURCE_DATE_EPOCH-for-the-date-embedded.patch (text/x-diff, inline)]
From 72522a777380147442bb9108fbcad2422b7acc32 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 9 Oct 2022 23:10:05 +0000
Subject: [PATCH 1/2] Makefile: Use SOURCE_DATE_EPOCH for the date embedded in
manpage.
https://reproducible-builds.org/docs/source-date-epoch/
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 556bbde..1ca185f 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ charset.o: charset.c charset.h defines.h help.h Makefile
ssocr.1: ssocr.1.in Makefile defines.h
sed -e 's/@VERSION@/$(VERSION)/' \
- -e "s/@DATE@/$(shell date +%Y-%m-%d)/" \
+ -e "s/@DATE@/$(shell date --utc --date=@(SOURCE_DATE_EPOCH) +%Y-%m-%d)/" \
-e 's/@CRYEARS@/$(CRYEARS)/' <$< >$@
ssocr-manpage.html: ssocr.1
--
2.37.2
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Gürkan Myczko <tar@debian.org>:
Bug#1021516; Package src:ssocr.
(Mon, 08 May 2023 12:57:09 GMT) (full text, mbox, link).
Acknowledgement sent
to Erik Auerswald <auerswal@unix-ag.uni-kl.de>:
Extra info received and forwarded to list. Copy sent to Gürkan Myczko <tar@debian.org>.
(Mon, 08 May 2023 12:57:09 GMT) (full text, mbox, link).
Message #12 received at 1021516@bugs.debian.org (full text, mbox, reply):
Hi,
this is the ssocr upstream developer.
I am looking into replacing the build timestamp in the man page by
something more useful, i.e., a date pertaining to the man page contents,
not the build.
But as an interim measurei for the Debian package, if wanted, I would
like to suggest to remove the date from the man page instead of adding
a useless fake date that looks like a mistake. Please see the attached
patch.
Thanks,
Erik
--
Thinking doesn't guarantee that we won't make mistakes. But not thinking
guarantees that we will.
-- Leslie Lamport
Information forwarded
to debian-bugs-dist@lists.debian.org, Gürkan Myczko <tar@debian.org>:
Bug#1021516; Package src:ssocr.
(Mon, 08 May 2023 13:00:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Erik Auerswald <auerswal@unix-ag.uni-kl.de>:
Extra info received and forwarded to list. Copy sent to Gürkan Myczko <tar@debian.org>.
(Mon, 08 May 2023 13:00:03 GMT) (full text, mbox, link).
Message #17 received at 1021516@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi,
I forgot to attach the patch, here it is.
Best regards,
Erik
--
Thinking doesn't guarantee that we won't make mistakes. But not thinking
guarantees that we will.
-- Leslie Lamport
[ssocr-no_man_page_date.patch (text/x-diff, attachment)]
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed May 17 12:42:52 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.