[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70169] [PATCH v2 11/12] maint: Reset CreationDate metadata on gener
From: |
Janneke Nieuwenhuizen |
Subject: |
[bug#70169] [PATCH v2 11/12] maint: Reset CreationDate metadata on generated PDFs. |
Date: |
Sun, 07 Apr 2024 19:38:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
pelzflorian (Florian Pelz) writes:
Hi!
> Janneke Nieuwenhuizen <janneke@gnu.org> writes:
>> diff --git a/doc/local.mk b/doc/local.mk
>> index a0d94614d3..25741a5c88 100644
>> --- a/doc/local.mk
>> +++ b/doc/local.mk
>> @@ -148,7 +148,11 @@ DOT_OPTIONS = \
>> $(AM_V_at)mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
>>
>> .dot.pdf:
>> - $(AM_V_DOT)$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"
>> + export TZ=UTC0;
>> \
>> + $(AM_V_DOT)$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"
>
> I see a non-fatal message here that
>
> @echo " DOT " doc/images/bootstrap-graph.pdf;/bin/sh
> '/home/florian/src/guix/test70169/build-aux/missing' dot -Tpdf
> -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 -Nfontsize=9 -Nheight=.1
> -Nwidth=.1 < "doc/images/bootstrap-graph.dot" >
> "./doc/images/bootstrap-graph.pdf.tmp"
> /bin/sh: line 2: @echo: command not found
>
> Perhaps AM_V_DOT cannot be used after export TZ=UTC0;?
Ah, that's not good. Apparently I ontly tested using V=2 in the end.
I believe this should fix it
diff --git a/doc/local.mk b/doc/local.mk
index fffba409dc..0cdad3e58c 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -148,8 +148,8 @@ DOT_OPTIONS = \
$(AM_V_at)mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
.dot.pdf:
- export TZ=UTC0;
\
- $(AM_V_DOT)$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"
+ $(AM_V_DOT)export TZ=UTC0; \
+ $(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"
$(AM_V_at)sed -ri \
-e 's,(/CreationDate \(D:).*\),\119700101000000,' \
"$(srcdir)/$@.tmp"
Greetings,
Janneke
--
Janneke Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com
- [bug#70169] [PATCH v2 10/12] maint: Avoid PNG and PDF generation to fail silently., (continued)
- [bug#70169] [PATCH v2 10/12] maint: Avoid PNG and PDF generation to fail silently., Janneke Nieuwenhuizen, 2024/04/06
- [bug#70169] [PATCH v2 03/12] maint: Generate 'doc/version.texi' reproducibly., Janneke Nieuwenhuizen, 2024/04/06
- [bug#70169] [PATCH v2 08/12] maint: Use reproducible Git timestamp for POT-Creation-Date., Janneke Nieuwenhuizen, 2024/04/06
- [bug#70169] [PATCH v2 05/12] maint: Generate AUTHORS and ChangeLog reproducibly., Janneke Nieuwenhuizen, 2024/04/06
- [bug#70169] [PATCH v2 07/12] maint: Use xgettext.scm wrapper to create .PO files reproducibly., Janneke Nieuwenhuizen, 2024/04/06
- [bug#70169] [PATCH v2 09/12] maint: Remove %%CreationDate from generated EPS files, Janneke Nieuwenhuizen, 2024/04/06
- [bug#70169] [PATCH v2 11/12] maint: Reset CreationDate metadata on generated PDFs., Janneke Nieuwenhuizen, 2024/04/06
[bug#70169] [PATCH v2 12/12] maint: Ensure generated file reproducibility for dist., Janneke Nieuwenhuizen, 2024/04/06
[bug#70169] [PATCH v2 13/12] doc: Use "dejavu sans" instead of "Helvetica" or "sans" in dot images., Janneke Nieuwenhuizen, 2024/04/07
[bug#70169] [PATCH v3 00/13] Reproducible `make dist' tarball in defiance of Autotools and Gettext, Janneke Nieuwenhuizen, 2024/04/08