Bug#910303: Xdvi stoped showing emedded EPS figures after updating ghostscript

2018-10-04 Thread Serguei DACHIAN



I just made the test and can confirm that removing "/flushpage" from the 
line


/.devicename /.doneshowpage /flushpage /.getbitsrect /.getdevice 
/.getdefaultdevice /.getdeviceparams /.gethardwareparams


(line number 2176) of the 
"/usr/share/ghostscript/9.20/Resource/Init/gs_init.ps" (provided by the 
package "libgs9-common", version 9.20~dfsg-3.2+deb9u5) solves the problem.


Apparently, xdvi also uses flushpage to display EPS files.  This can 
perhaps be changed on the xdvi side, but since the upstream seem to have 
decided to restore flushpage anyway, there is probably no need for that.


S. Dachian



[bts-link] source package src:ghostscript

2018-10-04 Thread debian-bts-link
#
# bts-link upstream status pull for source package src:ghostscript
# see http://lists.debian.org/debian-devel-announce/2006/05/msg1.html
# https://bts-link-team.pages.debian.net/bts-link/
#

user debian-bts-l...@lists.debian.org

# remote status report for #909929 (http://bugs.debian.org/909929)
# Bug title: Regression: Error: /nocurrentpoint in --currentpoint--
#  * https://bugs.ghostscript.com/show_bug.cgi?id=699832
#  * remote status changed: (?) -> UNCONFIRMED
usertags 909929 + status-UNCONFIRMED

thanks



Processed: foo2zjs hard codes location of stdio.h

2018-10-04 Thread Debian Bug Tracking System
Processing control commands:

> block 798955 by -1
Bug #798955 [src:glibc] Moving glibc headers from /usr/include to 
/usr/include/$(DEB_HOST_MULTIARCH)
798955 was blocked by: 910055 910235 910299 909967 857535 910097 910127 909964 
857708 909966 909969 909965
798955 was not blocking any bugs.
Added blocking bug(s) of 798955: 910322

-- 
798955: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798955
910322: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910322
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#910322: foo2zjs hard codes location of stdio.h

2018-10-04 Thread Helmut Grohne
Source: foo2zjs
Version: 20171202dfsg0-1
Tags: patch upstream
Control: block 798955 by -1

foo2zjs's Makefile hard codes the location of stdio.h. That breaks with
non-glibc libcs and with a glibc that fixes #798955 as it will move
stdlib.h to /usr/include//stdio.h. The attached patch removes
the broken check and doing so is sufficient to make foo2zjs build again.
Please consider applying the patch.

Helmut
--- foo2zjs-20171202dfsg0.orig/Makefile
+++ foo2zjs-20171202dfsg0/Makefile
@@ -399,15 +399,6 @@
 	echo "  ***"; \
 	exit 1; \
 	fi
-	@if ! test -f /usr/include/stdio.h; then \
-	echo "  ***"; \
-	echo "  *** Error: /usr/include/stdio.h is not installed!"; \
-	echo "  ***"; \
-	echo "  *** Install Software Development (gcc) package"; \
-	echo "  *** for Ubuntu: sudo apt-get install build-essential"; \
-	echo "  ***"; \
-	exit 1; \
-	fi
 	@if ! type gs >/dev/null 2>&1; then \
 	echo "  ***"; \
 	echo "  *** Error: gs is not installed!"; \


Bug#909250: marked as done (HPLIP - scanner HP_LaserJet_M1120n_MFP)

2018-10-04 Thread Debian Bug Tracking System
Your message dated Thu, 4 Oct 2018 19:07:19 +0100
with message-id <02102018225544.5154febbf...@desktop.copernicus.org.uk>
and subject line Re: Bug#909250: HPLIP - scanner HP_LaserJet_M1120n_MFP
has caused the Debian Bug report #909250,
regarding HPLIP - scanner HP_LaserJet_M1120n_MFP
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
909250: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=909250
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: hplip
Version: 3.16.11+repack0-3

I can not scan an image from a HP LaserJet M1120n MFP.
I am using the hplip package provided by debian( HP Linux Imaging and
Printing System (ver. 3.16.11))

Here is a transcript:
root@scanner:/# SANE_DEBUG_DLL=255 SANE_DEBUG_NET=128 hp-scan
...
[dll] load: searching backend `hpaio' in
`/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane'
[dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1'
[dll] load: dlopen()ing `/usr/lib/x86_64-linux-gnu/sane/libsane-hpaio.so.1'
[dll] init: initializing backend `hpaio'
[dll] init: backend `hpaio' is version 1.0.0
[dll] sane_get_devices: found 1 devices
Using device hpaio:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16
Opening connection to device...
[dll] sane_open: trying to open
`hpaio:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16'
error: SANE: Error during device I/O (code=9)
root@scanner:/# tail /var/log/syslog
Sep 20 13:49:20 scanner /hp-scan: hp-scan[260]: warning: hp-scan
should not be run as root/superuser.
Sep 20 13:49:29 scanner /hp-scan: io/hpmud/pp.c 627: unable to read
device-id ret=-1
Sep 20 13:49:30 scanner /hp-scan: hp-scan[260]: warning: No
destinations specified. Adding 'file' destination by default.
Sep 20 13:49:39 scanner /hp-scan: io/hpmud/pp.c 627: unable to read
device-id ret=-1
Sep 20 13:49:40 scanner /hp-scan: common/utils.c 188: unable to load
library libm.so: libm.so: cannot open shared object file: No such file
or directory
Sep 20 13:50:25 scanner /hp-scan: io/hpmud/jd.c 678: timeout
read_channel sec=45 hp:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16
Sep 20 13:50:25 scanner /hp-scan: bb_marvell.c 346: invalid get_msg
tmo=45 total=0 uri=hp:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16
Sep 20 13:50:25 scanner /hp-scan: hp-scan[260]: error: SANE: Error
during device I/O (code=9)
root@scanner:/# cat /etc/cups/printers.conf
# Printer configuration file for CUPS v2.2.1
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING

UUID urn:uuid:d564831f-ba4e-3759-6f2e-bd3405edf0bf
Info hol_s2
Location hol_s2
DeviceURI hp:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16
State Idle
StateTime 1501834936
ConfigTime 1501834936
Type 8388612
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job


 Can we add support for this? Or am I doing something wrong? The same
command worked for this other printer: hp:/net/HP_LaserJet_3052

Info about my computer:
root@scanner:/# cat /etc/debian_version
9.4
root@scanner:/# uname -a
Linux scanner.docker.paul.grozav.info 4.9.0-8-amd64 #1 SMP Debian
4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux

The machine runs inside docker:
pgrozav:~>docker version
Client:
 Version:   18.06.1-ce
 API version:   1.38
 Go version:go1.10.3
 Git commit:e68fc7a
 Built: Tue Aug 21 17:23:18 2018
 OS/Arch:   linux/amd64
 Experimental:  false

Server:
 Engine:
  Version:  18.06.1-ce
  API version:  1.38 (minimum version 1.12)
  Go version:   go1.10.3
  Git commit:   e68fc7a
  Built:Tue Aug 21 17:22:21 2018
  OS/Arch:  linux/amd64
  Experimental: false

I must say that the same problem occurs on the physical machine,
outside of docker. And I also have another container that is able to
scan from hp:/net/HP_LaserJet_3052 .
--- End Message ---
--- Begin Message ---
On Thu 20 Sep 2018 at 13:56:43 +0300, Tancredi-Paul Grozav wrote:

> read_channel sec=45 hp:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16
> Sep 20 13:50:25 scanner /hp-scan: bb_marvell.c 346: invalid get_msg
> tmo=45 total=0 uri=hp:/net/HP_LaserJet_M1120n_MFP?ip=192.168.200.16

This is a message which involves the plugin.

 root@sid8:~# strings /usr/share/hplip/scan/plugins/bb_marvell-x86_32.so | grep 
get_msg
 bb_marvell.c 346: invalid get_msg tmo=%d total=%d uri=%s

My view is: whatever interaction is taking place between libsane-hpaio
(free) and the plugin (non-free), it is not one which can be attended to
by Debian.

https://bugs.launchpad.net/hplip

is the place to go.

Hence closing the report. Thank yo

Processed: Re: Bug#910303: Xdvi stoped showing emedded EPS figures after updating ghostscript

2018-10-04 Thread Debian Bug Tracking System
Processing control commands:

> tag -1 patch
Bug #910303 [ghostscript] Xdvi stoped showing emedded EPS figures after 
updating ghostscript
Added tag(s) patch.
> forwarded -1 http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=19ebb5f
Bug #910303 [ghostscript] Xdvi stoped showing emedded EPS figures after 
updating ghostscript
Set Bug forwarded-to-address to 
'http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=19ebb5f'.

-- 
910303: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910303
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#910303: Xdvi stoped showing emedded EPS figures after updating ghostscript

2018-10-04 Thread Jonas Smedegaard
Control: tag -1 patch
Control: forwarded -1 
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=19ebb5f

Quoting Serguei DACHIAN (2018-10-04 19:30:46)
> I don't know how to make the problem appear directly with Ghostscript, 
> but here is a typycal output from xdvi:
[...]
> After googling a bit, I find out that exactly the same problem already 
> appeared (approximately at the same time, in September) in ubuntu and 
> the solutions are more or less known, cf. 
> https://bugs.launchpad.net/ubuntu/+source/ghostscript/+bug/1793742
> 
> Hope this helps, and thank you once more.

That looks helpful indeed.

@Moritz, it seems the stable update need the referenced patch.  Can you 
please include that?  And thanks a lot for handling those many CVEs!


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: signature


Bug#910303: Xdvi stoped showing emedded EPS figures after updating ghostscript

2018-10-04 Thread Jonas Smedegaard
Hi Serguei,

Quoting Serguei DACHIAN (2018-10-04 18:06:46)
> Xdvi stoped showing emedded EPS figures after updating ghostscript (as 
> well as ghostscript-x, libgs9 and libgs9-common) from 
> 9.20~dfsg-3.2+deb9u2 to 9.20~dfsg-3.2+deb9u4.  Subsequent upgrading to 
> 9.20~dfsg-3.2+deb9u5 did not solve the problem.  Reverting back to 
> 9.20~dfsg-3.2+deb9u2 makes everething work again.

Thanks for reporting!

I am not familiar with xdvi, so would appreciate some help isolating 
tests using Ghostscript directly.

Does it emit some warnings or errors?

It seems "xdvi -debug 32" provides valuable details.  Can you try 
isolate and share an example file directly passed to Ghostscript which 
renders wrongly, and the Ghostscript command that is being called?


Thanks,

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: signature


Bug#910303: Xdvi stoped showing emedded EPS figures after updating ghostscript

2018-10-04 Thread Serguei DACHIAN
Package: ghostscript
Version: 9.20~dfsg-3.2+deb9u2
Severity: important

Xdvi stoped showing emedded EPS figures after updating ghostscript (as well
as ghostscript-x, libgs9 and libgs9-common) from 9.20~dfsg-3.2+deb9u2
to 9.20~dfsg-3.2+deb9u4.  Subsequent upgrading to 9.20~dfsg-3.2+deb9u5
did not solve the problem.  Reverting back to 9.20~dfsg-3.2+deb9u2 makes
everething work again.



-- System Information:
Debian Release: 9.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ghostscript depends on:
ii  debconf [debconf-2.0]  1.5.61
ii  libc6  2.24-11+deb9u3
pn  libgs9 

Versions of packages ghostscript recommends:
ii  gsfonts  1:8.11+urwcyr1.0.7~pre44-4.3

Versions of packages ghostscript suggests:
pn  ghostscript-x  

-- no debconf information



Bug#910274: ghostscript: ps2pdf removes links from PDF files

2018-10-04 Thread Jonas Smedegaard
Quoting Vincent Lefevre (2018-10-04 14:44:08)
> On 2018-10-04 13:34:20 +0200, Jonas Smedegaard wrote:
> > Quoting Vincent Lefevre (2018-10-04 13:03:52)
> > > I could test that this bug is reproducible with upstream's 
> > > version.
> > 
> > Thanks for reporting, also upstream.
> > 
> > Upstream bugreport was closed with an explanation that it is 
> > intended behaviour i.e. that changed behaviour is progress, not a 
> > regression.
> 
> OK, but then, this was not the same bug. I've reopened my bug upstream 
> with the following comments:
> 
> In bug 699830, the user was using gs directly. Here, I'm using ps2pdf, 
> which is described as a conversion tool:
> 
>   Convert PostScript to PDF using ghostscript
> 
> (actually, the description is a bit incorrect since it can take PDF 
> files in input, not just PostScript files).
> 
> As a conversion tool, it should neither lose information, nor assume 
> anything about what will be done with the PDF file. Thus 
> -dPrinted=false should be passed to gs by the ps2pdfwr script.
> 
> If this is not intended to be a conversion tool, the description 
> should be fixed.

Ah, good point!

Let's see how upstream reacts to that.

Thanks again!

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: signature


Processed: Re: Bug#910274: ghostscript: ps2pdf removes links from PDF files

2018-10-04 Thread Debian Bug Tracking System
Processing control commands:

> reopen -1
Bug #910274 {Done: Jonas Smedegaard } [ghostscript] 
ghostscript: ps2pdf removes links from PDF files
Bug reopened
Ignoring request to alter fixed versions of bug #910274 to the same values 
previously set
> tags -1 - fixed-upstream
Bug #910274 [ghostscript] ghostscript: ps2pdf removes links from PDF files
Removed tag(s) fixed-upstream.
> forwarded -1 https://bugs.ghostscript.com/show_bug.cgi?id=699874
Bug #910274 [ghostscript] ghostscript: ps2pdf removes links from PDF files
Changed Bug forwarded-to-address to 
'https://bugs.ghostscript.com/show_bug.cgi?id=699874' from 
'https://bugs.ghostscript.com/show_bug.cgi?id=699830'.

-- 
910274: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910274
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#910274: ghostscript: ps2pdf removes links from PDF files

2018-10-04 Thread Vincent Lefevre
Control: reopen -1
Control: tags -1 - fixed-upstream
control: forwarded -1 https://bugs.ghostscript.com/show_bug.cgi?id=699874

On 2018-10-04 13:34:20 +0200, Jonas Smedegaard wrote:
> Quoting Vincent Lefevre (2018-10-04 13:03:52)
> > I could test that this bug is reproducible with upstream's version.
> 
> Thanks for reporting, also upstream.
> 
> Upstream bugreport was closed with an explanation that it is intended 
> behaviour i.e. that changed behaviour is progress, not a regression.

OK, but then, this was not the same bug. I've reopened my bug upstream
with the following comments:

In bug 699830, the user was using gs directly. Here, I'm using
ps2pdf, which is described as a conversion tool:

  Convert PostScript to PDF using ghostscript

(actually, the description is a bit incorrect since it can take
PDF files in input, not just PostScript files).

As a conversion tool, it should neither lose information, nor
assume anything about what will be done with the PDF file. Thus
-dPrinted=false should be passed to gs by the ps2pdfwr script.

If this is not intended to be a conversion tool, the description
should be fixed.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#910274: marked as done (ghostscript: ps2pdf removes links from PDF files)

2018-10-04 Thread Debian Bug Tracking System
Your message dated Thu, 04 Oct 2018 13:34:20 +0200
with message-id <153865286008.1793.11787596594949424...@auryn.jones.dk>
and subject line Re: Bug#910274: ghostscript: ps2pdf removes links from PDF 
files
has caused the Debian Bug report #910274,
regarding ghostscript: ps2pdf removes links from PDF files
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
910274: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910274
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: ghostscript
Version: 9.25~dfsg-2
Severity: important

ps2pdf removes links from PDF files. This is a regression.

See attached files: test.pdf is the original PDF file and out.pdf
the one produced by:

  ps2pdf test.pdf out.pdf

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ghostscript depends on:
ii  libc6   2.27-6
ii  libgs9  9.25~dfsg-2

Versions of packages ghostscript recommends:
ii  gsfonts  1:8.11+urwcyr1.0.7~pre44-4.4

Versions of packages ghostscript suggests:
ii  ghostscript-x  9.25~dfsg-2

-- no debconf information


test.pdf
Description: Adobe PDF document


out.pdf
Description: Adobe PDF document
--- End Message ---
--- Begin Message ---
Quoting Vincent Lefevre (2018-10-04 13:03:52)
> I could test that this bug is reproducible with upstream's version.

Thanks for reporting, also upstream.

Upstream bugreport was closed with an explanation that it is intended 
behaviour i.e. that changed behaviour is progress, not a regression.

Indeed, this produces a PDF with link:

  ps2pdf -dPrinted=false test.pdf out.pdf

Further info at https://bugs.ghostscript.com/show_bug.cgi?id=699830#c13

Closing accordingly.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: signature
--- End Message ---


Processed: Re: ghostscript: ps2pdf removes links from PDF files

2018-10-04 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> tags 910274 fixed-upstream
Bug #910274 [ghostscript] ghostscript: ps2pdf removes links from PDF files
Added tag(s) fixed-upstream.
> forwarded 910274 https://bugs.ghostscript.com/show_bug.cgi?id=699830
Bug #910274 [ghostscript] ghostscript: ps2pdf removes links from PDF files
Changed Bug forwarded-to-address to 
'https://bugs.ghostscript.com/show_bug.cgi?id=699830' from 
'https://bugs.ghostscript.com/show_bug.cgi?id=699874'.
>
End of message, stopping processing here.

Please contact me if you need assistance.
-- 
910274: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910274
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#910274: ghostscript: ps2pdf removes links from PDF files

2018-10-04 Thread Vincent Lefevre
Control: tags -1 upstream
Control: forwarded -1 https://bugs.ghostscript.com/show_bug.cgi?id=699874

I could test that this bug is reproducible with upstream's version.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Processed: Re: ghostscript: ps2pdf removes links from PDF files

2018-10-04 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 upstream
Bug #910274 [ghostscript] ghostscript: ps2pdf removes links from PDF files
Added tag(s) upstream.
> forwarded -1 https://bugs.ghostscript.com/show_bug.cgi?id=699874
Bug #910274 [ghostscript] ghostscript: ps2pdf removes links from PDF files
Set Bug forwarded-to-address to 
'https://bugs.ghostscript.com/show_bug.cgi?id=699874'.

-- 
910274: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910274
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#910274: ghostscript: ps2pdf removes links from PDF files

2018-10-04 Thread Vincent Lefevre


out.pdf
Description: Adobe PDF document