Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283119 - [kde-testing] app-office/scribus-1.3.5.1 fails to install lib2geom.so
Summary: [kde-testing] app-office/scribus-1.3.5.1 fails to install lib2geom.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on: 283151
Blocks: 267193
  Show dependency tree
 
Reported: 2009-08-29 13:43 UTC by Erik Zeek
Modified: 2010-01-06 19:34 UTC (History)
7 users (show)

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


Attachments
Scribus warning. (scribus.png,29.04 KB, image/png)
2009-08-29 13:43 UTC, Erik Zeek
Details
emerge --info (emerge_info.txt,9.96 KB, text/plain)
2009-08-29 13:44 UTC, Erik Zeek
Details
Build lib2geom -fPIC on x86_64 (scribus-1.3.5.1-lib2geom.patch,1.03 KB, patch)
2010-01-06 18:42 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Zeek 2009-08-29 13:43:04 UTC
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
Comment 1 Erik Zeek 2009-08-29 13:43:57 UTC
Created attachment 202609 [details]
Scribus warning.
Comment 2 Erik Zeek 2009-08-29 13:44:50 UTC
Created attachment 202611 [details]
emerge --info
Comment 3 Jacob Floyd 2009-11-19 06:19:51 UTC
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.
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2009-11-19 21:41:00 UTC
(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.
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2009-12-28 13:48:40 UTC
Perhaps we should exclude this to its own ebuild

http://lib2geom.sourceforge.net/
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-01-06 18:42:39 UTC
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.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-01-06 19:34:44 UTC
Should be fixed in Portage with 1.3.5.1 bump.