Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411519 - media-libs/openjpeg-1.5.0 missing from gentoo_prefix
Summary: media-libs/openjpeg-1.5.0 missing from gentoo_prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-10 21:02 UTC by Palmer Dabbelt
Modified: 2012-04-11 15:17 UTC (History)
0 users

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


Attachments
Fixes a compile warning (openjpeg-1.5.0-tcd_math.patch,479 bytes, text/plain)
2012-04-10 21:02 UTC, Palmer Dabbelt
Details
Fixes lrintf warning (lrintf.patch,813 bytes, patch)
2012-04-11 04:26 UTC, Palmer Dabbelt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Palmer Dabbelt 2012-04-10 21:02:30 UTC
Created attachment 308453 [details]
Fixes a compile warning

I noticed that openjpeg 1.5.0 is missing from my gentoo prefix (the highest availiable is 1.3.0).  I tried copying the ebuild from non-prefix portage and it seems to work well enough to build mupdf (the only thing I have that depends on it).  This is all on ~amd64-linux.

There was a single compilation warning, I've attached a patch to make it go away.  This warning may just be because I'm on a RedHat 5 host, so it's possibly not critical that this patch is applied for everyone.

Here's some relevant bugs.  Note that mupdf-1.0_rc1 is ~amd64-linux now, so as it is it won't even build at all (that's how I noticed the old openjpeg library).

https://bugs.gentoo.org/show_bug.cgi?id=411373
https://bugs.gentoo.org/show_bug.cgi?id=409203
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-04-10 21:09:15 UTC
I'm sure that the Gentoo maintainer will request that you file the compile warning upstream http://code.google.com/p/openjpeg/issues/list

However, there is a significant diff getween gx86 tree and prefix tree for non-linux. That will need to get resolved.
Comment 2 Palmer Dabbelt 2012-04-10 22:10:57 UTC
(In reply to comment #1)
> I'm sure that the Gentoo maintainer will request that you file the compile
> warning upstream http://code.google.com/p/openjpeg/issues/list

I was going to a soon as I managed to make git-svn work so I could verify the problem is still in upstream (I suppose I could just use svn proper... but it's more fun to fix things :)).

> However, there is a significant diff getween gx86 tree and prefix tree for
> non-linux. That will need to get resolved.

Ah, sorry, I didn't have a 1.3 ebuild in my local portage copy so I just assumed all the prefix 1.3 diffs with non-prefix 1.4 were from the update.

Looking at the patches:
* I don't think ${P}-Makefile.patch is necessary anymore, I checked the library created and it's called "libopenjpeg.so.1.5.0" instead of "libopenjpeg-1.5.0.so".  They seem to have switched to cmake instead of just using a Makefile, that's probably why it got fixed.
* I don't think ${P}-freebsd.patch is necessary anymore, as the linked patch on from FreeBSD's upstream doesn't seem to have been updated either.
* I don't think ${P}-darwin.patch is necessary anymore: cmake should take care of the .so vs .dynlib issue (I think?  I've never actually used it on Apple) and the header file diff is obselete because the FreeBSD patch isn't necessary anymore.

I don't think the HAVE_STDBOOL_H sed is necessary.  It seems to have come from bug 305333 and as that bug isn't prefix-specific and it's no longer I think that means it's obselete?

Hopefully that was helpful?  Unfortunately I don't have any of those platforms so I don't think I can verify any of that speculation above, sorry!
Comment 3 Palmer Dabbelt 2012-04-11 04:26:24 UTC
Created attachment 308481 [details, diff]
Fixes lrintf warning

I filed an upstream bug with a cleaner patch that's also attached here.

http://code.google.com/p/openjpeg/issues/detail?id=144&thanks=144&ts=1334118044
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-04-11 15:17:00 UTC
Ok, I agree with your assessment in comment #2 - thanks for the research. Also, big thanks for participating upstream.

We are now pulling openjpeg from gx86 directly.