Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411373 - app-text/mupdf-1.0_rc1 needs >=media-libs/openjpeg-1.5
Summary: app-text/mupdf-1.0_rc1 needs >=media-libs/openjpeg-1.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-09 18:08 UTC by Palmer Dabbelt
Modified: 2012-04-12 23:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Reverts the bugfix that added the OpenJPEG >= 1.5 dependency (mupdf.patch,1.04 KB, text/plain)
2012-04-09 18:08 UTC, Palmer Dabbelt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Palmer Dabbelt 2012-04-09 18:08:48 UTC
Created attachment 308323 [details]
Reverts the bugfix that added the OpenJPEG >= 1.5 dependency

According to the mupdf git, this dependency was added on March 19

commit d11a38dbd783b746d7a35f03fecfb3cbca65527e
Author: Robin Watts <robin.watts@artifex.com>
Date:   Mon Mar 19 15:19:17 2012 +0000

    Bug 692746; avoid 'double palettes' on jpx images.
    
    It seems that JPX images can be supplied in indexed format, with
    both a palette internal to the jpx stream, and a palette in the
    PDF. Googling seems to suggest that the internal palette should
    be ignored in this case, and the external palette applied.
    
    Fortunately, since OpenJPEG-1.5 there is a flag that can be used
    to tell OpenJPEG not to decode palettes. We update the code here
    to spot that there is an external palette, and to set this flag.

I've attached a patch that disables this bugfix if an old OpenJPEG library is detected (ie, if OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG isn't defined).
Comment 1 Michael Weber (RETIRED) gentoo-dev 2012-04-09 21:13:29 UTC
Hi, 
openjpeg-1.5 is stabled due bug 409203, so i would prefer just adding the >=1.5 dependency in the ebuild.

Objections?

Thanks for reporting the problem.
Comment 2 Michael Weber (RETIRED) gentoo-dev 2012-04-09 21:16:17 UTC
+  09 Apr 2012; Michael Weber <xmw@gentoo.org> mupdf-1.0_rc1.ebuild,
+  mupdf-9999.ebuild:
+  Fix openjpeg dependency (thanks Palmer Dabbelt, bug 411373)
+

Index: mupdf-1.0_rc1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-1.0_rc1.ebuild,v
retrieving revision 1.3
diff -u -B -r1.3 mupdf-1.0_rc1.ebuild
--- mupdf-1.0_rc1.ebuild        8 Apr 2012 07:10:24 -0000       1.3
+++ mupdf-1.0_rc1.ebuild        9 Apr 2012 21:15:59 -0000
@@ -18,8 +18,8 @@
 
 RDEPEND="media-libs/freetype:2
        media-libs/jbig2dec
+       >=media-libs/openjpeg-1.5
        virtual/jpeg
-       media-libs/openjpeg
        X? ( x11-libs/libX11
                x11-libs/libXext )"
 DEPEND="${RDEPEND}
Index: mupdf-9999.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-text/mupdf/mupdf-9999.ebuild,v
retrieving revision 1.16
diff -u -B -r1.16 mupdf-9999.ebuild
--- mupdf-9999.ebuild   8 Apr 2012 07:10:24 -0000       1.16
+++ mupdf-9999.ebuild   9 Apr 2012 21:15:59 -0000
@@ -18,8 +18,8 @@
 
 RDEPEND="media-libs/freetype:2
        media-libs/jbig2dec
+       >=media-libs/openjpeg-1.5
        virtual/jpeg
-       media-libs/openjpeg
        X? ( x11-libs/libX11
                x11-libs/libXext )"
Comment 3 Palmer Dabbelt 2012-04-11 17:17:25 UTC
(In reply to comment #1)
> Hi, 
> openjpeg-1.5 is stabled due bug 409203, so i would prefer just adding the
> >=1.5 dependency in the ebuild.
> 
> Objections?

It turns out prefix's openjpeg package was lagging behind (see bug 411519).  It's been updated, so I think this is the best solution.