Debian Bug report logs - #976080
pdfxup doesn't work anymore

version graph

Package: texlive-extra-utils; Maintainer for texlive-extra-utils is Debian TeX Task Force <debian-tex-maint@lists.debian.org>; Source for texlive-extra-utils is src:texlive-extra (PTS, buildd, popcon).

Reported by: Julien Puydt <julien.puydt@gmail.com>

Date: Sun, 29 Nov 2020 12:21:01 UTC

Severity: important

Tags: fixed-upstream

Found in version texlive-extra/2020.20200925-1

Fixed in version texlive-extra/2021.20210921-1

Done: Norbert Preining <norbert@preining.info>

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Task Force <debian-tex-maint@lists.debian.org>:
Bug#976080; Package texlive-extra-utils. (Sun, 29 Nov 2020 12:21:04 GMT) (full text, mbox, link).


Acknowledgement sent to Julien Puydt <julien.puydt@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian TeX Task Force <debian-tex-maint@lists.debian.org>. (Sun, 29 Nov 2020 12:21:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Julien Puydt <julien.puydt@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: pdfxup doesn't work anymore
Date: Sun, 29 Nov 2020 13:18:05 +0100
Package: texlive-extra-utils
Version: 2020.20200925-1
Severity: important

I tried to do something simple with pdfxup, but I don't manage to get
anything off it :

jpuydt@phaeris:/tmp$ LANG=C pdfxup -l 28-11-2020-attestation-de-
deplacement-derogatoire.pdf 28-11-2020-attestation-de-deplacement-
derogatoire.pdf -o attestation.pdf
/usr/bin/pdfxup: line 360: [: 9.53: integer expression expected
/usr/bin/pdfxup: line 361: [: 9.53: integer expression expected
-> processing options 
GPL Ghostscript 9.53.3: Unrecoverable error, exit code 1
/usr/bin/pdfxup: line 318: Error: /invalidfileaccess in --file--
Operand stack:
   (input-temp-pdfxup-1606651984.pdf)   (r)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --
nostringval--   2   %stopped_push   --nostringval--   --nostringval-- 
--nostringval--   false   1   %stopped_push   .runexec2   --
nostringval--   --nostringval--   --nostringval--   2   %stopped_push 
--nostringval--
Dictionary stack:
   --dict:727/1123(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--
Current allocation mode is local
Last OS error: Permission denied: syntax error in expression (error
token is ": /invalidfileaccess in --file--
Operand stack:
   (input-temp-pdfxup-1606651984.pdf)   (r)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --
nostringval--   2   %stopped_push   --nostringval--   --nostringval-- 
--nostringval--   false   1   %stopped_push   .runexec2   --
nostringval--   --nostringval--   --nostringval--   2   %stopped_push 
--nostringval--
Dictionary stack:
   --dict:727/1123(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--
Current allocation mode is local
Last OS error: Permission denied")
-> computing bounding box
 * empty bounding box; keeping original margins
-> producing final file 
-> cleaning 


Cheers,

JP




Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Task Force <debian-tex-maint@lists.debian.org>:
Bug#976080; Package texlive-extra-utils. (Sun, 29 Nov 2020 19:42:05 GMT) (full text, mbox, link).


Acknowledgement sent to Hilmar Preuße <hille42@web.de>:
Extra info received and forwarded to list. Copy sent to Debian TeX Task Force <debian-tex-maint@lists.debian.org>. (Sun, 29 Nov 2020 19:42:05 GMT) (full text, mbox, link).


Message #10 received at 976080@bugs.debian.org (full text, mbox, reply):

From: Hilmar Preuße <hille42@web.de>
To: Julien Puydt <julien.puydt@gmail.com>
Cc: 976080@bugs.debian.org
Subject: Re: Bug#976080: pdfxup doesn't work anymore
Date: Sun, 29 Nov 2020 20:38:27 +0100
[Message part 1 (text/plain, inline)]
Am 29.11.2020 um 13:18 teilte Julien Puydt mit:

> Package: texlive-extra-utils
> Version: 2020.20200925-1
> Severity: important
> 
> I tried to do something simple with pdfxup, but I don't manage to get
> anything off it :
> 

It looks like the usual incompatible change in gs. Could you load the 
latest version of pdfxup from CTAN and check if that solves your issue?

Hilmar
-- 
sigfault


[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Task Force <debian-tex-maint@lists.debian.org>:
Bug#976080; Package texlive-extra-utils. (Tue, 01 Dec 2020 07:03:02 GMT) (full text, mbox, link).


Acknowledgement sent to Julien Puydt <julien.puydt@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian TeX Task Force <debian-tex-maint@lists.debian.org>. (Tue, 01 Dec 2020 07:03:02 GMT) (full text, mbox, link).


Message #15 received at 976080@bugs.debian.org (full text, mbox, reply):

From: Julien Puydt <julien.puydt@gmail.com>
To: Hilmar Preuße <hille42@web.de>
Cc: 976080@bugs.debian.org
Subject: Re: Bug#976080: pdfxup doesn't work anymore
Date: Tue, 01 Dec 2020 08:01:06 +0100
Le dimanche 29 novembre 2020 à 20:38 +0100, Hilmar Preuße a écrit :
> 
> It looks like the usual incompatible change in gs. Could you load the
> latest version of pdfxup from CTAN and check if that solves your
> issue?

It doesn't. Not the same line numbers, but same errors.

Cheers,

JP




Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Task Force <debian-tex-maint@lists.debian.org>:
Bug#976080; Package texlive-extra-utils. (Tue, 12 Jan 2021 07:09:02 GMT) (full text, mbox, link).


Acknowledgement sent to Michael A Gilchrist <mikeg@utk.edu>:
Extra info received and forwarded to list. Copy sent to Debian TeX Task Force <debian-tex-maint@lists.debian.org>. (Tue, 12 Jan 2021 07:09:02 GMT) (full text, mbox, link).


Message #20 received at 976080@bugs.debian.org (full text, mbox, reply):

From: Michael A Gilchrist <mikeg@utk.edu>
To: 976080@bugs.debian.org
Subject: Re: Bug#976080: pdfxup doesn't work anymore
Date: Tue, 12 Jan 2021 01:27:46 -0500 (EST)
[Message part 1 (text/plain, inline)]
On Tue, 01 Dec 2020 08:01:06 +0100 Julien Puydt <julien.puydt@gmail.com> 
wrote:
> Le dimanche 29 novembre 2020 à 20:38 +0100, Hilmar Preuße a écrit :
> >
> > It looks like the usual incompatible change in gs. Could you load 
the
> > latest version of pdfxup from CTAN and check if that solves your
> > issue?
>
> It doesn't. Not the same line numbers, but same errors.
>
> Cheers,
>
> JP
>
>
>

I'm having the same problem. I tried replacing -dSAFER with -dNOSAFER in 
the script (per https://github.com/bmjcode/tkDocViewer/issues/1) , but 
that didn't solve it for me.  I'd love a work around besides using 
another program, such as briss.  I use pdfxup a lot.


Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Task Force <debian-tex-maint@lists.debian.org>:
Bug#976080; Package texlive-extra-utils. (Wed, 13 Jan 2021 19:39:02 GMT) (full text, mbox, link).


Acknowledgement sent to Michael A Gilchrist <mikeg@utk.edu>:
Extra info received and forwarded to list. Copy sent to Debian TeX Task Force <debian-tex-maint@lists.debian.org>. (Wed, 13 Jan 2021 19:39:03 GMT) (full text, mbox, link).


Message #25 received at 976080@bugs.debian.org (full text, mbox, reply):

From: Michael A Gilchrist <mikeg@utk.edu>
To: 976080@bugs.debian.org
Subject: Re: Bug#976080: Info received (Bug#976080: pdfxup doesn't work anymore)
Date: Wed, 13 Jan 2021 14:36:05 -0500 (EST)
I found a simple work around: Move the file to /tmp before running 
pdfxup on it.

Whew.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Task Force <debian-tex-maint@lists.debian.org>:
Bug#976080; Package texlive-extra-utils. (Mon, 08 Mar 2021 09:12:02 GMT) (full text, mbox, link).


Acknowledgement sent to Nicolas Markey <pdfxup@markey.fr>:
Extra info received and forwarded to list. Copy sent to Debian TeX Task Force <debian-tex-maint@lists.debian.org>. (Mon, 08 Mar 2021 09:12:02 GMT) (full text, mbox, link).


Message #30 received at 976080@bugs.debian.org (full text, mbox, reply):

From: Nicolas Markey <pdfxup@markey.fr>
To: 976080@bugs.debian.org
Subject: Re: pdfxup doesn't work anymore
Date: Mon, 8 Mar 2021 10:01:36 +0100
Hi,


> I tried to do something simple with pdfxup, but I don't manage to get
> anything off it :
> 
> jpuydt@phaeris:/tmp$ LANG=C pdfxup -l 28-11-2020-attestation-de-
> deplacement-derogatoire.pdf 28-11-2020-attestation-de-deplacement-
> derogatoire.pdf -o attestation.pdf
> /usr/bin/pdfxup: line 360: [: 9.53: integer expression expected
> /usr/bin/pdfxup: line 361: [: 9.53: integer expression expected

Sorry for my late answer. Two comments on this problem:

1) currently pdfxup does not handle several input files. Everything
after the first PDf file is omitted. So the command above would work,
but would be equivalent to

$ pdfxup -l 28-11-2020-attestation-de-deplacement-derogatoire.pdf


2) I cannot reproduce the bug. Apparently, it occurred with v1.60 (lines
360-361 test the version number of ghostscript). It seems that your bash
does not correctly interpret "${GSVERSION%.*}", which should return "9".
Could you try (in bash)

$ GSVERSION=9.53; echo "${GSVERSION%.*}"



Best,

-- 
Nico



Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Task Force <debian-tex-maint@lists.debian.org>:
Bug#976080; Package texlive-extra-utils. (Sun, 25 Apr 2021 14:42:03 GMT) (full text, mbox, link).


Acknowledgement sent to Nicolas Markey <nicolas.markey@irisa.fr>:
Extra info received and forwarded to list. Copy sent to Debian TeX Task Force <debian-tex-maint@lists.debian.org>. (Sun, 25 Apr 2021 14:42:03 GMT) (full text, mbox, link).


Message #35 received at 976080@bugs.debian.org (full text, mbox, reply):

From: Nicolas Markey <nicolas.markey@irisa.fr>
To: 976080@bugs.debian.org
Subject: Re: pdfxup doesn't work anymore
Date: Sun, 25 Apr 2021 16:31:24 +0200
> 2) I cannot reproduce the bug. Apparently, it occurred with v1.60 (lines
> 360-361 test the version number of ghostscript). It seems that your bash
> does not correctly interpret "${GSVERSION%.*}", which should return "9".
> Could you try (in bash)
> 
> $ GSVERSION=9.53; echo "${GSVERSION%.*}"

I could figure out where the problem comes from: ghostscript added a
patch level in their version numbers. A way of fixing this is to replace
line 456 of pdfxup v2.00 (or line 363 of pdfxup v1.61, or line 354 of
v1.60), which currently reads

GSVERSION=`$GS --version 2>/dev/null`;

with

GSVERSION=`$GS --version 2>/dev/null|sed -e "s/\(.\.[^\.]*\)\..*/\\1/"`;


Sorry for this. This will be corrected in the next version of pdfxup.

Best wishes,

-- 
Nico



Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Task Force <debian-tex-maint@lists.debian.org>:
Bug#976080; Package texlive-extra-utils. (Sun, 02 May 2021 12:03:04 GMT) (full text, mbox, link).


Acknowledgement sent to Hilmar Preuße <hille42@web.de>:
Extra info received and forwarded to list. Copy sent to Debian TeX Task Force <debian-tex-maint@lists.debian.org>. (Sun, 02 May 2021 12:03:04 GMT) (full text, mbox, link).


Message #40 received at 976080@bugs.debian.org (full text, mbox, reply):

From: Hilmar Preuße <hille42@web.de>
To: Nicolas Markey <nicolas.markey@irisa.fr>
Cc: 976080@bugs.debian.org
Subject: Re: Bug#976080: pdfxup doesn't work anymore
Date: Sun, 2 May 2021 14:01:14 +0200
[Message part 1 (text/plain, inline)]
Control tags -1 + fixed-upstream

Am 25.04.2021 um 16:31 teilte Nicolas Markey mit:

Hi Nicolas,

> I could figure out where the problem comes from: ghostscript added a
> patch level in their version numbers. A way of fixing this is to replace
> line 456 of pdfxup v2.00 (or line 363 of pdfxup v1.61, or line 354 of
> v1.60), which currently reads
> 
> GSVERSION=`$GS --version 2>/dev/null`;
> 
> with
> 
> GSVERSION=`$GS --version 2>/dev/null|sed -e "s/\(.\.[^\.]*\)\..*/\\1/"`;
> 
> 
> Sorry for this. This will be corrected in the next version of pdfxup.
> 
I noticed that your fix is already on CTAN, hence I mark this issue as 
fixed in upstream. Many thanks for work!

Hilmar
-- 
sigfault


[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian TeX Task Force <debian-tex-maint@lists.debian.org>:
Bug#976080; Package texlive-extra-utils. (Sun, 02 May 2021 12:15:03 GMT) (full text, mbox, link).


Acknowledgement sent to Hilmar Preuße <hille42@web.de>:
Extra info received and forwarded to list. Copy sent to Debian TeX Task Force <debian-tex-maint@lists.debian.org>. (Sun, 02 May 2021 12:15:03 GMT) (full text, mbox, link).


Message #45 received at 976080@bugs.debian.org (full text, mbox, reply):

From: Hilmar Preuße <hille42@web.de>
To: 976080@bugs.debian.org
Subject: Re: Bug#976080: pdfxup doesn't work anymore
Date: Sun, 2 May 2021 14:13:18 +0200
[Message part 1 (text/plain, inline)]
Control: tags -1 + fixed-upstream

[OpenPGP_signature (application/pgp-signature, attachment)]

Added tag(s) fixed-upstream. Request was from Hilmar Preuße <hille42@web.de> to 976080-submit@bugs.debian.org. (Sun, 02 May 2021 12:15:03 GMT) (full text, mbox, link).


Reply sent to Norbert Preining <norbert@preining.info>:
You have taken responsibility. (Tue, 21 Sep 2021 06:27:05 GMT) (full text, mbox, link).


Notification sent to Julien Puydt <julien.puydt@gmail.com>:
Bug acknowledged by developer. (Tue, 21 Sep 2021 06:27:05 GMT) (full text, mbox, link).


Message #52 received at 976080-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 976080-close@bugs.debian.org
Subject: Bug#976080: fixed in texlive-extra 2021.20210921-1
Date: Tue, 21 Sep 2021 06:23:27 +0000
Source: texlive-extra
Source-Version: 2021.20210921-1
Done: Norbert Preining <norbert@preining.info>

We believe that the bug you reported is fixed in the latest version of
texlive-extra, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 976080@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Norbert Preining <norbert@preining.info> (supplier of updated texlive-extra package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 21 Sep 2021 11:32:40 +0900
Source: texlive-extra
Architecture: source
Version: 2021.20210921-1
Distribution: unstable
Urgency: medium
Maintainer: Debian TeX Task Force <debian-tex-maint@lists.debian.org>
Changed-By: Norbert Preining <norbert@preining.info>
Closes: 976080
Changes:
 texlive-extra (2021.20210921-1) unstable; urgency=medium
 .
   * Include upstream patch for pdxup suuport for gs versions (Closes: #976080)
   * TeX Live 2021
Checksums-Sha1:
 d9abde7d64b6f96ea7ff046f56d95714c7dbf430 3478 texlive-extra_2021.20210921-1.dsc
 80548f86990eb1ee5de50f3b20e5a5f2d02ef73f 19036 texlive-extra_2021.20210921.orig-tex4ht.tar.xz
 6b6ed09bbc337dcac75c19e4dd8005e10751c9d2 2078184788 texlive-extra_2021.20210921.orig.tar.xz
 9cb6b901e2f3934491df2ca9603eb15ccef416a7 186176 texlive-extra_2021.20210921-1.debian.tar.xz
 e301944a9b2f39c92edeed655038b6f691daf527 5961 texlive-extra_2021.20210921-1_source.buildinfo
Checksums-Sha256:
 628257c1ae12ccb03fb5e3dbc088c420d50cd2557117564a961699ecdfadde34 3478 texlive-extra_2021.20210921-1.dsc
 ea131661fef91d161d365837bf4b89085ab59fdc64bc16a4df6b6b51b92109f0 19036 texlive-extra_2021.20210921.orig-tex4ht.tar.xz
 2495bc51a9f79040c675ac9650ac190992d01324bb059bc9a920065a192997a6 2078184788 texlive-extra_2021.20210921.orig.tar.xz
 24887f1eedc85501fa3023e094e4bf9cd297551ee1439af00d7dd47a2341685f 186176 texlive-extra_2021.20210921-1.debian.tar.xz
 218a1bfddc70e3d916ac92a141c5e10a5749f990aafc2292172299e64d0ade22 5961 texlive-extra_2021.20210921-1_source.buildinfo
Files:
 085a7bd8776188f0ca993e697479ec47 3478 tex optional texlive-extra_2021.20210921-1.dsc
 8a5943ff12c9572088cecbb115daa178 19036 tex optional texlive-extra_2021.20210921.orig-tex4ht.tar.xz
 879e6affacd26fe43b20412d4ca0bf0b 2078184788 tex optional texlive-extra_2021.20210921.orig.tar.xz
 ed44c7332d81cb7197a28bed1ecbcfe0 186176 tex optional texlive-extra_2021.20210921-1.debian.tar.xz
 910fee692bbb659bacef71b49d6244a1 5961 tex optional texlive-extra_2021.20210921-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEE68ws0vrA2voQX53I2A4JsIcUAGYFAmFJcDsACgkQ2A4JsIcU
AGaBrQf/UJFKgSEuqXmVrAlt1cY/WN7qg5646eGAQ5icsZEVjrToVwANURAub7gh
YcdwwEebK7b1zOKDjwws1sn0F6rNRoUpl2VHaEFMVRaHPumdeoEkaDJuE8vPZ6et
6ZM3FTTR0QoF0ghgGOLAcDciy9+aH/6kiUpgFUWOb3H6lNUj5XDxf0btrMzTub6/
FIJYoTnP9kvJGH5Ji4TTnv+dc4UvP7PHB1kGQHkoWnNiKyr4+ZGP3voZSJZzCUC1
HABK0m5tTJBlD+ddPDOLUs9dc8fF+JV+K4QjNdcf4K0IL9ymwtBnpsyAMbK7VNU/
Woe92noYkx8L7yt2F3LQaLkYhu7SUw==
=6bX9
-----END PGP SIGNATURE-----




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Oct 19 16:58:53 2021; 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.