[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27563: [PATCH v4 2/3] gnu: ghostscript: Make XMP UUID headers option
From: |
Ludovic Courtès |
Subject: |
bug#27563: [PATCH v4 2/3] gnu: ghostscript: Make XMP UUID headers optional, depending on environment variable. |
Date: |
Mon, 10 Jul 2017 17:23:20 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Danny Milosavljevic <address@hidden> skribis:
> * gnu/packages/patches/ghostscript-no-header-uuid.patch: New file.
> * gnu/local.mk (dist_patch_DATA): Add it.
> * gnu/packages/ghostscript.scm (ghostscript): Use it.
[...]
> --- /dev/null
> +++ b/gnu/packages/patches/ghostscript-no-header-uuid.patch
> @@ -0,0 +1,43 @@
> +This patch makes the UUIDs in the XMP header optional, depending on the
> +setting of the environment variable GS_GENERATE_UUIDS.
> +
> +diff -ur orig/gnu-ghostscript-9.14.0/devices/vector/gdevpdfe.c
> aa/gnu-ghostscript-9.14.0/devices/vector/gdevpdfe.
Does this also apply to ‘core-updates’?
> +--- orig/gnu-ghostscript-9.14.0/devices/vector/gdevpdfe.c 2017-07-09
> 23:30:28.960479189 +0200
> ++++ gnu-ghostscript-9.14.0/devices/vector/gdevpdfe.c 2017-07-10
> 01:04:12.252478276 +0200
> +@@ -617,7 +617,7 @@
> + return code;
> +
> + /* PDF/A XMP reference recommends setting UUID to empty. If not empty
> must be a URI */
> +- if (pdev->PDFA != 0)
> ++ if (pdev->PDFA != 0 || (getenv("GS_GENERATE_UUIDS") &&
> (strcmp(getenv("GS_GENERATE_UUIDS"), "0") == 0 ||
> strcmp(getenv("GS_GENERATE_UUIDS"), "no") == 0)))
Rather ‘strcasecmp’ for the last one.
If the resulting ps2pdf works, OK for ‘core-updates’!
Ludo’.
- bug#27563: [PATCH v3 0/2] Make ghostscript reproducible., (continued)
- bug#27563: [PATCH v3 0/2] Make ghostscript reproducible., Ludovic Courtès, 2017/07/07
- bug#27563: [PATCH v3 0/2] Make ghostscript reproducible., Danny Milosavljevic, 2017/07/07
- bug#27563: [PATCH v3 0/2] Make ghostscript reproducible., Ludovic Courtès, 2017/07/07
- bug#27563: [PATCH v3 0/2] Make ghostscript reproducible., Danny Milosavljevic, 2017/07/07
- bug#27563: [PATCH v3 0/2] Make ghostscript reproducible., Ludovic Courtès, 2017/07/08
- bug#27563: [PATCH v4 0/3] Make ghostscript reproducible., Danny Milosavljevic, 2017/07/09
- bug#27563: [PATCH v4 1/3] gnu: ghostscript: Make "/ID" optional, depending on environment variable., Danny Milosavljevic, 2017/07/09
- bug#27563: [PATCH v4 3/3] gnu: ghostscript: Make "/CreationDate", "/ModDate" optoinal, depending on environment variable., Danny Milosavljevic, 2017/07/09
- bug#27563: [PATCH v4 3/3] gnu: ghostscript: Make "/CreationDate", "/ModDate" optoinal, depending on environment variable., Ludovic Courtès, 2017/07/10
- bug#27563: [PATCH v4 2/3] gnu: ghostscript: Make XMP UUID headers optional, depending on environment variable., Danny Milosavljevic, 2017/07/09
- bug#27563: [PATCH v4 2/3] gnu: ghostscript: Make XMP UUID headers optional, depending on environment variable.,
Ludovic Courtès <=
- bug#27563: [PATCH v4 1/3] gnu: ghostscript: Make "/ID" optional, depending on environment variable., Ludovic Courtès, 2017/07/10
- bug#27563: [PATCH v4 0/3] Make ghostscript reproducible., Danny Milosavljevic, 2017/07/10
- bug#27563: [PATCH v3 0/2] Make ghostscript reproducible., Danny Milosavljevic, 2017/07/07
- bug#27563: [PATCH v3 0/2] Make ghostscript reproducible., Ludovic Courtès, 2017/07/07
bug#27563: ghostscript-with-cups is not reproducible, Danny Milosavljevic, 2017/07/06