Danny Milosavljevic <[email protected]> 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’.