In the overly, the app-office/scribus-1.3.5.1 ebuild fails to install the lib2geom.so library (used by two plugins). This causes revdep-rebuild and scribus to complain. emerge -pv app-office/scribus:0 These are the packages that would be merged, in order: Calculating dependencies ... done! [ebuild R ] app-office/scribus-1.3.5.1 USE="cairo cups podofo python spell -debug" 0 kB [1] Total: 1 package (1 reinstall), Size of downloads: 0 kB Portage tree and overlays: [0] /gentoo/portage [1] /gentoo/local/layman/kde-testing Revdep output. * Checking reverse dependencies * Packages containing binaries and libraries broken by a package update * will be emerged. * Collecting system binaries and libraries * Generated new 1_files.rr * Collecting complete LD_LIBRARY_PATH * Generated new 2_ldpath.rr * Checking dynamic linking consistency [ 92% ] * broken /usr/lib/scribus/plugins/libmeshdistortion.so (requires lib2geom.so) * broken /usr/lib/scribus/plugins/libpathalongpath.so (requires lib2geom.so) [ 100% ] * Generated new 3_broken.rr * Assigning files to packages * /usr/lib/scribus/plugins/libmeshdistortion.so -> app-office/scribus * /usr/lib/scribus/plugins/libpathalongpath.so -> app-office/scribus * Generated new 4_raw.rr and 4_owners.rr * Cleaning list of packages to rebuild * Generated new 4_pkgs.rr * Assigning packages to ebuilds * Generated new 4_ebuilds.rr * Evaluating package order * Generated new 5_order.rr * All prepared. Starting rebuild
Created attachment 202609 [details] Scribus warning.
Created attachment 202611 [details] emerge --info
I'm on x86 (not amd64) and I get the same error message. Also, when I start scribus from the console, I get: $ scribus Cannot find plugin: lib2geom.so: cannot open shared object file: No such file or directory Cannot find plugin: lib2geom.so: cannot open shared object file: No such file or directory Cannot find plugin: lib2geom.so: cannot open shared object file: No such file or directory Cannot find plugin: lib2geom.so: cannot open shared object file: No such file or directory In Bug#267193 (comment 7) It suggests that these lines in CMakeLists.txt are to blame because the lib is static instead of shared: OPTION(2GEOM_BUILD_SHARED "Build lib2geom and libtoy as shared libraries." OFF) SET(LIB_TYPE STATIC) Does it just need "SET(LIB_TYPE SHARED)"? I have not tested that, and I'm not very familiar with cmake.
(In reply to comment #3) > I'm on x86 (not amd64) and I get the same error message. > > Also, when I start scribus from the console, I get: > > $ scribus > Cannot find plugin: lib2geom.so: cannot open shared object file: No such file > or directory > Cannot find plugin: lib2geom.so: cannot open shared object file: No such file > or directory > Cannot find plugin: lib2geom.so: cannot open shared object file: No such file > or directory > Cannot find plugin: lib2geom.so: cannot open shared object file: No such file > or directory > > In Bug#267193 (comment 7) It suggests that these lines in CMakeLists.txt are to > blame because the lib is static instead of shared: > OPTION(2GEOM_BUILD_SHARED > "Build lib2geom and libtoy as shared libraries." > OFF) > SET(LIB_TYPE STATIC) > > Does it just need "SET(LIB_TYPE SHARED)"? I have not tested that, and I'm not > very familiar with cmake. > The problem is that ebuild regexp it to have LIB_TYPE SHARED and it still does not work.
Perhaps we should exclude this to its own ebuild http://lib2geom.sourceforge.net/
Created attachment 215420 [details, diff] Build lib2geom -fPIC on x86_64 This implies dropping dropping these from the ebuild, sed -i \ -e "s:LIB_TYPE STATIC:LIB_TYPE SHARED:g" \ scribus/plugins/tools/2geomtools/lib2geom/CMakeLists.txt \ || die "fixing static libs failed" And... -D2GEOM_BUILD_SHARED=ON The patch is from upstream trunk. It builds the archive -fPIC so it can be used, scribus shouldn't be installing lib2geom.so to system. If you want a shared lib out of it, you should create a separate ebuild for it, but that's a different story.
Should be fixed in Portage with 1.3.5.1 bump.