Bug 293612 - Building koabstraction fails when building words is off
Summary: Building koabstraction fails when building words is off
Status: RESOLVED FIXED
Alias: None
Product: calligracommon
Classification: Applications
Component: general (show other bugs)
Version: 2.4-snapshots
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Jarosław Staniek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-08 08:59 UTC by Rafał Rzepecki
Modified: 2012-02-24 22:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Rzepecki 2012-02-08 08:59:44 UTC
Version:           2.4-snapshots (using KDE 4.7.4) 
OS:                Linux

I've tried to install just tables using the gentoo ebuild for 2.3.87 (USE: CALLIGRA_FEATURES: -* tables). 

All goes well until linking tools/koabstraction -- this fails:

/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lwordsprivate
collect2: ld returned 1 exit status
make[2]: *** [lib/libkoabstraction.so.9.0.0] Error 1
make[1]: *** [tools/koabstraction/CMakeFiles/koabstraction.dir/all] Error 2

I take it that libwordsprivate is some internal words library.

I guess the gentoo ebuild should turn off koabstraction when words is not being compiled (I'll report it downstream as soon as I verify that it fixes the problem), but I suspect that it should also be prevented at CMakeLists level.

Reproducible: Didn't try

Steps to Reproduce:
Try to build with BUILD_koabstraction=on and BUILD_words=off.

Actual Results:  
Linking koabstraction.so fails due to missing libwordsprivate.

Expected Results:  
It should either link successfully or prevent compiling koabstraction altogether when words compilation is turned off.
Comment 1 Rafał Rzepecki 2012-02-08 10:01:52 UTC
Reported downstream at https://bugs.gentoo.org/show_bug.cgi?id=402655
Comment 2 Jarosław Staniek 2012-02-24 22:24:00 UTC
Git commit 5506e45189b531b745321f94786f711cf1f85fa7 by Jaroslaw Staniek.
Committed on 24/02/2012 at 22:59.
Pushed by staniek into branch 'master'.

Skip koabstraction build when user excluded one or more depending apps

Thanks to dilfridge@gentoo.org.

CCMAIL:dilfridge@gentoo.org

M  +8    -2    CMakeLists.txt

http://commits.kde.org/calligra/5506e45189b531b745321f94786f711cf1f85fa7