Created attachment 454588 [details, diff] Add the missing multilib dependency on libXmu. When compiled in my multilib-environment, libXmu is missing for the abi32 compile.
*** Bug 601070 has been marked as a duplicate of this bug. ***
Comment on attachment 454588 [details, diff] Add the missing multilib dependency on libXmu. Confirmed. Sorry for the earlier confusion.
(In reply to Jan-Matthias Braun from comment #0) > Created attachment 454588 [details, diff] [details, diff] > Add the missing multilib dependency on libXmu. > > When compiled in my multilib-environment, libXmu is missing for the abi32 > compile. Jan, thanks for the report. Does it happen only with USE opengl enabled or also with -opengl?
In build log you see where the dependency comes from: -- Found OpenGL: /usr/lib32/libGL.so -- Found GLUT: /usr/lib32/libglut.so -- Looking for include file GL/glut.h -- Looking for include file GL/glut.h - found GLUT library found: TRUE GLUT libraries: /usr/lib32/libglut.so;/usr/lib/libXmu.so;/usr/lib32/libXi.so GLUT include directory: /usr/include JAS_HAVE_GL_GLUT_H: 1
Created attachment 454708 [details] build.log
(In reply to Agostino Sarubbo from comment #3) > (In reply to Jan-Matthias Braun from comment #0) > > Created attachment 454588 [details, diff] [details, diff] [details, diff] > > Add the missing multilib dependency on libXmu. > > > > When compiled in my multilib-environment, libXmu is missing for the abi32 > > compile. > > Jan, thanks for the report. > > Does it happen only with USE opengl enabled or also with -opengl? Yes, it only happens with USE="opengl".
Hi! With the updated jasper-2.0.0.ebuild in portage, this can be closed, right? At least it works quite fine for me. Thanks a lot!
The following USE changes are necessary to proceed: (see "package.use" in the portage(5) man page for more details) # required by media-libs/jasper-2.0.0::gentoo[opengl] # required by media-gfx/gimp-2.9.4-r1::gentoo[jpeg2k] # required by @__auto_slot_operator_replace_installed__ (argument) >=x11-libs/libXmu-1.1.2 abi_x86_32 nice!
Sorry to jump in this late, but this fix isn't really proper, not for Gentoo at least. This is a case of "the problem lies elsewhere". Let's trace it back to the source... The error comes from FindGLUT macro, originating from cmake itself. Now, why the above "fix" is wrong ? It's actually pretty simple, this macro was written with original, *underlinked* GLUT in mind, not freeglut (which is what Gentoo uses). freeglut doesn't use libXmu, not according to ldd output nor its ebuild. The problem is of course a proper fix would involve patching the incorrect macro in cmake (well, a temporary fix could just ship a local version of fixed macro). Well, at least for the other packages, for jasper we could go with a simple hack: in toplevel CMakeLists.txt, there's that long-winded Fedora comment. I strongly suspect Fedora noticed this problem in cmake and patched it in some way (perhaps an incomplete one). I've only done a rough test, but it looks, that this whole section should simply be turned into unconditional 'set(GLUT_LIBRARIES "${GLUT_glut_LIBRARY}")'. Though, perhaps I'm not searching the sources correctly, cause it seems glut is only used by jiv executable, so glut dep should be only valid for native, whereas 32bit should simply built with opengl disabled.
...of course the last sentence was written from amd64 perspective, not really valid for x86.
...there's a catch though: it looks like jasper caches glut detection value in its config header. Though it seems, that this is simply from improper porting from previous build system, when somebody took "one size fits all" approach to all build conditionals. Perhaps those two values should simply be removed from the header template ?
OK, let's see if cmake maintainers will add something.
Created attachment 476530 [details, diff] patch for jasper sources Well, seeing as this is going nowhere on its own, following patches seem to make things work as they're supposed to.
Created attachment 476532 [details, diff] patch for the ebuild
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c70fe723dcfe0fabab75f3a76942207018e83e1f commit c70fe723dcfe0fabab75f3a76942207018e83e1f Author: David Seifert <soap@gentoo.org> AuthorDate: 2019-07-14 10:29:20 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2019-07-14 10:29:20 +0000 package.mask: Last rite media-libs/jasper Bug: https://bugs.gentoo.org/601068 Bug: https://bugs.gentoo.org/614028 Bug: https://bugs.gentoo.org/614032 Bug: https://bugs.gentoo.org/614566 Bug: https://bugs.gentoo.org/619120 Bug: https://bugs.gentoo.org/624988 Bug: https://bugs.gentoo.org/629286 Bug: https://bugs.gentoo.org/635552 Bug: https://bugs.gentoo.org/662160 Bug: https://bugs.gentoo.org/674154 Bug: https://bugs.gentoo.org/674214 Bug: https://bugs.gentoo.org/684826 Bug: https://bugs.gentoo.org/689784 Signed-off-by: David Seifert <soap@gentoo.org> profiles/base/package.use.mask | 23 +++++++++++++++++++++++ profiles/package.mask | 7 +++++++ 2 files changed, 30 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77aebdf0b31765b33831ca5b02ea3d98f13c46cd commit 77aebdf0b31765b33831ca5b02ea3d98f13c46cd Author: David Seifert <soap@gentoo.org> AuthorDate: 2019-08-27 09:07:01 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2019-08-27 09:07:01 +0000 media-libs/jasper: Remove from tree Bug: https://bugs.gentoo.org/674214 Closes: https://bugs.gentoo.org/601068 Closes: https://bugs.gentoo.org/614028 Closes: https://bugs.gentoo.org/614032 Closes: https://bugs.gentoo.org/614566 Closes: https://bugs.gentoo.org/619120 Closes: https://bugs.gentoo.org/624988 Closes: https://bugs.gentoo.org/629286 Closes: https://bugs.gentoo.org/635552 Closes: https://bugs.gentoo.org/662160 Closes: https://bugs.gentoo.org/674154 Closes: https://bugs.gentoo.org/684826 Closes: https://bugs.gentoo.org/689784 Package-Manager: Portage-2.3.72, Repoman-2.3.17 Signed-off-by: David Seifert <soap@gentoo.org> media-libs/jasper/Manifest | 2 - .../files/jasper-2.0.14-fix-test-suite.patch | 28 --------- media-libs/jasper/jasper-2.0.14.ebuild | 67 ---------------------- media-libs/jasper/jasper-2.0.16.ebuild | 65 --------------------- media-libs/jasper/jasper-9999.ebuild | 65 --------------------- media-libs/jasper/metadata.xml | 11 ---- 6 files changed, 238 deletions(-)