[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libgs8 has no ghostscript dependancy



# insufficient dependencies; shared library policy
severity 485621 serious
retitle 485621 libgs8: undeclared dependency on ghostscript (>> 8.71~), ghostscript (<= 8.71+)
affects 485621 + libspectre1
quit

Hi Jonas,

To the release team: I think a fix can wait for a point release.

Tom Parker wrote:

> tparker@shostakovich:[~/src/bounding] evince cdf.eps
> GPL Ghostscript 8.62: Can't find initialization file gs_init.ps.
> fatal internal error -100GPL Ghostscript 8.62: Can't find
> initialization file gs_init.ps.
> fatal internal error -100
> ** (evince:18685): WARNING **: Error rendering thumbnail

"apt-get install evince-gtk" does not result in a working postscript
viewer.  Workaround: install the ghostscript package, which has a
versioned dependency[1] to avoid mismatches with libgs.

libgs relies on the main ghostscript package for support files in the
"/usr/share/ghostscript/8.71" directory.  I ran into this because it
means that installing ghostscript 9 from experimental breaks
postscript support in evince and okular.

A proper fix would presumably be to move the /usr/share/ghostscript
files to libgs8 or a new libgs8-common package.  The relevant
dependencies would be

	ghostscript --- Depends: ${shlibs:Depends}
	libgs8 --- Depends: libgs8-common (= ${source:Version})

Very simple.

Here's a more ugly and targetted fix.  Thoughts?

-- 8< --
Subject: libgs8: Depends: ghostscript

libgs8 has an undeclared dependency on support files from
/usr/share/ghostscript/8.71 in the ghostscript package.

More precisely, current libgs8 requires ghostscript 8.71.  Rather than
hard-coding that (making it easy to forget to update the dependencies
in a later update), this patch relies on the current versioned
dependency Depends: libgs8 (= ${binary:Version}) that was added to
ghostscript a couple of years ago to address the same problem
(Bug#470253).

Yes, after this patch ghostscript would once again have a circular
dependency.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
Untested (testing with apt and aptitude of the upgrade path from
lenny would be especially welcome).

[1]
> I did have ghostscript installed, but only version 8.15-something.

http://bugs.debian.org/470253

 debian/changelog |    6 ++++++
 debian/control   |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5aea161..00af153 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ghostscript (8.71~dfsg2-6.1.1) local; urgency=low
+
+  * libgs8: Depends: ghostscript (closes: #485621, reopens: #519141).
+
+ -- Jonathan Nieder <jrnieder@gmail.com>  Fri, 21 Jan 2011 17:28:46 -0600
+
 ghostscript (8.71~dfsg2-6.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --git a/debian/control b/debian/control
index d2a0364..fa025fd 100644
--- a/debian/control
+++ b/debian/control
@@ -124,7 +124,7 @@ Description: The GPL Ghostscript PostScript/PDF interpreter - Documentation
 Package: libgs8
 Section: libs
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ghostscript (<< 9), ${shlibs:Depends}, ${misc:Depends}
 Description: The Ghostscript PostScript/PDF interpreter Library
  Ghostscript is used for PostScript/PDF preview and printing.  Usually as
  a back-end to a program such as ghostview, it can display PostScript and PDF
-- 
1.7.4.rc2


Reply to: