From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) 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 Message-ID: <8760f048pj.fsf@gnu.org> References: <20170709234012.26064-1-dannym@scratchpost.org> <20170709234644.24682-1-dannym@scratchpost.org> <20170709234644.24682-2-dannym@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUaXf-00012h-3i for bug-guix@gnu.org; Mon, 10 Jul 2017 11:24:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUaXa-0003s7-56 for bug-guix@gnu.org; Mon, 10 Jul 2017 11:24:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58331) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUaXa-0003s0-11 for bug-guix@gnu.org; Mon, 10 Jul 2017 11:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dUaXZ-0002er-OK for bug-guix@gnu.org; Mon, 10 Jul 2017 11:24:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20170709234644.24682-2-dannym@scratchpost.org> (Danny Milosavljevic's message of "Mon, 10 Jul 2017 01:46:43 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Danny Milosavljevic Cc: 27563@debbugs.gnu.org Danny Milosavljevic 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-gh= ostscript-9.14.0/devices/vector/gdevpdfe. Does this also apply to =E2=80=98core-updates=E2=80=99? > +--- 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; > +=20 > + /* PDF/A XMP reference recommends setting UUID to empty. If not emp= ty must be a URI */ > +- if (pdev->PDFA !=3D 0) > ++ if (pdev->PDFA !=3D 0 || (getenv("GS_GENERATE_UUIDS") && (strcmp(ge= tenv("GS_GENERATE_UUIDS"), "0") =3D=3D 0 || strcmp(getenv("GS_GENERATE_UUID= S"), "no") =3D=3D 0))) Rather =E2=80=98strcasecmp=E2=80=99 for the last one. If the resulting ps2pdf works, OK for =E2=80=98core-updates=E2=80=99! Ludo=E2=80=99.