Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541062 - sci-geosciences/qgis-2.6.0 fails to compile against x11-libs/qwt-6.1.2-r1 - No rule to make target '/usr/lib64/libqwt6.so'
Summary: sci-geosciences/qgis-2.6.0 fails to compile against x11-libs/qwt-6.1.2-r1 - N...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-22 17:25 UTC by Martin von Gagern
Modified: 2015-12-28 20:07 UTC (History)
2 users (show)

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


Attachments
build log (gzip compressed) (sci-geosciences:qgis-2.6.0:20150222-161044.log.gz,94.72 KB, application/octet-stream)
2015-02-22 17:25 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2015-02-22 17:25:42 UTC
Created attachment 397250 [details]
build log (gzip compressed)

sci-geosciences/qgis-2.6.0 fails to compile against x11-libs/qwt-6.1.2-r1:

/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/sci-geosciences/qgis-2.
6.0/work/qgis-2.6.0_build/CMakeFiles 
make[2]: *** No rule to make target '/usr/lib64/libqwt6.so', needed by 'output/l
ib64/libqgis_gui.so.2.6.0'.  Stop.
make[2]: *** Waiting for unfinished jobs....

Here are the libqwt* files installed on my system:

$ ls -l /usr/lib64/libqwt* | awk '{print $9,$10,$11}'
/usr/lib64/libqwt6-qt4.so -> libqwt6-qt4.so.6.1.2
/usr/lib64/libqwt6-qt4.so.6 -> libqwt6-qt4.so.6.1.2
/usr/lib64/libqwt6-qt4.so.6.1 -> libqwt6-qt4.so.6.1.2
/usr/lib64/libqwt6-qt4.so.6.1.2  
/usr/lib64/libqwt6.so.6 -> libqwt6.so.6.1.2
/usr/lib64/libqwt6.so.6.1.2  
/usr/lib64/libqwtpolar.so -> libqwtpolar.so.1.1.1
/usr/lib64/libqwtpolar.so.1 -> libqwtpolar.so.1.1.1
/usr/lib64/libqwtpolar.so.1.1 -> libqwtpolar.so.1.1.1
/usr/lib64/libqwtpolar.so.1.1.1  
/usr/lib64/libqwt.so -> libqwt.so.5.2.3
/usr/lib64/libqwt.so.5 -> libqwt.so.5.2.3
/usr/lib64/libqwt.so.5.2 -> libqwt.so.5.2.3
/usr/lib64/libqwt.so.5.2.3
Comment 1 Egor Y. Egorov 2015-02-24 06:43:47 UTC
2.8.0 In rion overlay now. Please test.
Comment 2 Egor Y. Egorov 2015-02-24 09:43:25 UTC
Can you show full output of
qlist qwt && emerge -pv qwt:5 qwt:6
and full build.log
Comment 3 Egor Y. Egorov 2015-02-24 09:56:23 UTC
and emerge -pv x11-libs/qwtpolar
Comment 4 Martin von Gagern 2015-02-24 12:19:44 UTC
This appears to be due to portage preserving libs. I have libqwt6.so.6 preserved by portage, while libqwt6.so isn't preserved. Adding that symlink I was able to emerge qgis, but the new qgis version will still depend on the old library.

I realize that I'm using a qgis ebuild from my own overlay, probably imported from rion at some point. I do whish we'd get bug 485868 addressed, i.e. a recent qgis included in the main portage tree.

I'll need to rebuild layman with mercurial support before I can give the rion overlay a try. Will report back after that.
Comment 5 Martin von Gagern 2015-02-24 15:16:44 UTC
(In reply to Martin von Gagern from comment #4)
> … I can give the rion overlay a try. Will report back after that.

Same problem: No rule to make target '/usr/lib64/libqwt6.so', needed by 'output/lib64/libqgis_gui.so.2.8.0'.  Stop.

Perhaps gdal should be using pkg-config?
# pkg-config --libs qwt6
-L/usr/lib64/qt4 -lqwt6-qt4 -lQtSvg -lQtOpenGL -lQtGui -lQtCore 

The current search looks like this:
FIND_LIBRARY(QWT_LIBRARY NAMES qwt qwt5 qwt6 qwt-qt4 qwt5-qt4 PATHS
So it likely won't find qwt6-qt4 even if there is no qwt6 to distract it.
Comment 6 Egor Y. Egorov 2015-02-25 05:38:35 UTC
Ok. this is because >=qwt-6.1.2 have IUSE="qt4 qt5" and ebuild change name of this libs adding suffix -qt4 or -qt5 correspondingly.
Using pkg-config in this case look logically. But I do not know how this make perfectly. I pushed ebuild with workaround in rion-overlay. Now qgis must built fine with any qwt in portage. Please test.

@@ -2,6 +2,9 @@                                                                                                                                                                              
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2                                                                                                                       
 # $Header: $                                                                                                                                                                                
                                                                                                                                                                                             
+  25 Feb 2015; eegorov <egor.y.egorov@gmail.com> qgis-2.8.0.ebuild:                                                                                                                         
+  Fix #541062                                                                                                                                                                               
+
 *qgis-2.8.0 (24 Feb 2015)
Comment 7 Martin von Gagern 2015-02-25 07:51:10 UTC
(In reply to Egor Y. Egorov from comment #6)
> Please test.

Compiles and launches. Looks good to me.
Comment 8 Amy Liffey gentoo-dev 2015-12-28 20:07:20 UTC
Version is not in tree and I didn't even find it in rion-overlay

Amy