[MacPorts] #17044: evince wants old libopenjeg
MacPorts
noreply at macports.org
Wed Oct 29 18:44:09 PDT 2008
#17044: evince wants old libopenjeg
-----------------------------------+----------------------------------------
Reporter: frstan at bellsouth.net | Owner: devans at macports.org
Type: defect | Status: assigned
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Resolution: | Keywords: evince openjpeg lib
Port: evince |
-----------------------------------+----------------------------------------
Comment(by devans at macports.org):
Ok, after poking around a bit here is what I found:
1) Evince depends on poppler
2) Although poppler and/or evince don't explictly name openjpeg as a
dependency in their port files,
if openjpeg is present, poppler will link it in. For instance poppler
provides
{{{
/opt/local/lib/libpoppler-glib.4.0.0.dylib
}}}
and on my system libpoppler-glib.4.0.0.dylib is linked against it
{{{
otool -L /opt/local/lib/libpoppler-glib.4.0.0.dylib
/opt/local/lib/libpoppler-glib.4.0.0.dylib:
/opt/local/lib/libpoppler-glib.4.dylib (compatibility version
5.0.0, current version 5.0.0)
/opt/local/lib/libopenjpeg-2.1.2.0.dylib (compatibility version
2.0.0, current version 2.1.2)
.....
}}}
/opt/local/lib/libopenjpeg-2.1.2.0.dylib was produced by openjpeg-1.3_1
but the current version
openjpeg-1.3_2 produces
{{{
port contents openjpeg
Port openjpeg contains:
/opt/local/include/openjpeg.h
/opt/local/lib/libopenjpeg-2.1.3.0.dylib <----
/opt/local/lib/libopenjpeg.a
/opt/local/lib/libopenjpeg.dylib
}}}
Hence evince loads /opt/local/lib/libpoppler-glib.4.0.0.dylib which wants
to load /opt/local/lib/libopenjpeg-2.1.2.0.dylib but
only /opt/local/lib/libopenjpeg-2.1.3.0.dylib is available and it fails.
There some things that can be done in these ports to straighten this out
but for a
quick fix since libopenjpeg-2.1.2.0.dylib and
/opt/local/lib/libopenjpeg-2.1.3.0.dylib
are ABI compatible you can probably fix your problem by doing this:
{{{
cd /opt/local/lib
ln -s libopenjpeg-2.1.3.0.dylib libopenjpeg-2.1.2.0.dylib
}}}
if you can do this and confirm that your problem is solved for now, I will
pursue the
underlying dependency problems that this has revealed in evince, poppler
and openjpeg.
--
Ticket URL: <http://trac.macports.org/ticket/17044#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list