Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 539190

Summary: app-office/calligra-2.8.5 does not build postgres module despite all dependencies installed
Product: Gentoo Linux Reporter: Gabor Paradi <gabor.paradi>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info -v =app-office/calligra-2.8.5
build.log and CMake logs

Description Gabor Paradi 2015-02-07 06:57:09 UTC
Created attachment 395754 [details]
emerge --info -v =app-office/calligra-2.8.5

Trying to build kexi (only) and use database storage with PostgreSQL. dev-db/postgresql-9.3.5-r2 and dev-libs/libpqxx-4.0.1 installed, but emerge doesn't take 'postgres' use flag into account. As 'postgres' use flag is set system-wide, I would expect that kexi is build with PostgreSQL support.
Comment 1 Rafał Mużyło 2015-02-07 14:43:45 UTC
Attach full build log of that build (look at configure phase for hints).

We might also need cmake logs, getting those might require temporarily setting 'noclean' for portage, if the build completes.
Comment 2 Gabor Paradi 2015-02-07 21:26:22 UTC
Created attachment 395844 [details]
build.log and CMake logs
Comment 3 Rafał Mużyło 2015-02-08 14:55:41 UTC
...well, in that log 'postgres' useflag obviously *isn't* set, so, what's the problem ?
Comment 4 Gabor Paradi 2015-02-08 20:09:43 UTC
The 'postgres' is in the make.conf file. That is the global USE flag.

$ equery h postgres
 * Searching for USE flag postgres ... 
[IP-] [  ] app-office/akonadi-server-1.13.0:0
[IP-] [  ] app-office/calligra-2.8.5:4
[IP-] [  ] dev-db/libdbi-drivers-0.9.0:0
[IP-] [  ] dev-lang/php-5.5.21:5.5
[IP-] [  ] dev-libs/cyrus-sasl-2.1.26-r9:2
[IP-] [  ] dev-libs/redland-1.0.16:0
[IP-] [  ] dev-qt/qtsql-4.8.5:4
Comment 5 Gabor Paradi 2015-02-08 20:29:02 UTC
Also:

$ emerge -vp calligra

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] app-office/calligra-2.8.5:4  USE="crypt eigen exif fontconfig glew glib gsf handbook jpeg kdcraw kde kdepim lcms okular opengl pdf threads tiff truetype xml (-aqua) -attica -fftw -freetds -gsl -import-filter -jpeg2k -marble -mysql -nepomuk -openexr (-postgres) -spacenav (-sybase) {-test} -vc -xbase" CALLIGRA_FEATURES="kexi -author -braindump -flow -karbon -krita -plan -sheets -stage -words" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


Despite the 'postgres' is a global USE flag, calligra doesn't build the postgresql database plugin for some reason.
Comment 6 Rafał Mużyło 2015-02-08 22:57:39 UTC
...sigh...

USE="...(-postgres)..."

The flag is usemasked on the package. Please read for example 'man portage' how to deal with that. Though usually, there's a good reason behind such masking.
Comment 7 Gabor Paradi 2015-02-09 08:34:48 UTC
Ok, thanks for your time dealing with it ;)