Thanks a lot for looking into this, Jonathan!

On Fri, Jan 21, 2011 at 06:22:37PM -0600, Jonathan Nieder wrote:
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.

/usr/share/ghostscript are per-library versioned already, so that looks sane to me.

We can avoid the delay of ftpmaster approval for new package name if stuffing it into libgs8 itself, on the cost of archive size.

So something like this:

Targeted Squeeze:

  * Fix libgs8 broken when installed ghostscript is different version:
    + Move /usr/share/ghostscript from ghostscript to libgs8.
    + Have libgs8 depend on libgs8-common.
    + Have libgs8 conflict with older ghostscript.

Targeted Squeeze+1:

  * Fix libgs8 broken when installed ghostscript is different version:
    + Move /usr/share/ghostscript from ghostscript to new libgs9-common.
    + Have libgs9 depend on libgs9-common.
    + Have libgs9 conflict with older ghostscript.

That last libgs9 conflict would only be needed temporarily, as the clashing versions of ghostscript have only ever been released for experimental.

How does that sound?


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

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

The diff is smaller, yes, but I believe not the actual change: It poses additional burden on package management tools to resolve that hidden circular dependency properly (i.e. force upgrade ghostscript rather than force pull out libgs8!), so the net result for the distribution as a whole seems more complex/risky to me.


 - Jonas

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

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

Attachment: signature.asc
Description: Digital signature

Reply via email to