Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399599 - skanlite 0.7 needs method toQImageSilent to be present in libksane
Summary: skanlite 0.7 needs method toQImageSilent to be present in libksane
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-21 11:29 UTC by Dirk Tilger
Modified: 2012-02-09 14:00 UTC (History)
0 users

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


Attachments
Patch against the skanlite ebuild to pull in KDE 4.6 base dependencies. (diff,467 bytes, text/plain)
2012-01-21 11:29 UTC, Dirk Tilger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Tilger 2012-01-21 11:29:45 UTC
Created attachment 299445 [details]
Patch against the skanlite ebuild to pull in KDE 4.6 base dependencies.

When compiling skanlite 0.7 against libksane 4.4.5 (that has apparently been present from before), the following error occured:

-----8<-----
Scanning dependencies of target skanlite                                                                                     
[ 42%] Built target skanlite-handbook                                                                                        
[ 50%] Built target skanlite-handbook                                                                                        
[ 57%] Built target doc-handbook                                                                                             
[ 64%] [ 71%] Building CXX object CMakeFiles/skanlite.dir/skanlite_automoc.o                                                 
[ 78%] [ 85%] Building CXX object CMakeFiles/skanlite.dir/main.o                                                             
[ 92%] Building CXX object CMakeFiles/skanlite.dir/skanlite.o                                                                
Building CXX object CMakeFiles/skanlite.dir/KSaneImageSaver.o                                                                
Building CXX object CMakeFiles/skanlite.dir/ImageViewer.o                                                                    
[100%] Building CXX object CMakeFiles/skanlite.dir/SaveLocation.o                                                            
/home/portage/portage/kde-misc/skanlite-0.7/work/skanlite-0.7/skanlite.cpp: In member function 'void Skanlite::imageReady(QByteArray&, int, int, int, int)':
/home/portage/portage/kde-misc/skanlite-0.7/work/skanlite-0.7/skanlite.cpp:283:27: error: 'class KSaneIface::KSaneWidget' has no member named 'toQImageSilent'
make[2]: *** [CMakeFiles/skanlite.dir/skanlite.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/skanlite.dir/all] Error 2
make: *** [all] Error 2
 * ERROR: kde-misc/skanlite-0.7 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =kde-misc/skanlite-0.7',
 * the complete build log and the output of 'emerge -pqv =kde-misc/skanlite-0.7'.
 * The complete build log is located at '/home/portage/portage/kde-misc/skanlite-0.7/temp/build.log'.
 * The ebuild environment file is located at '/home/portage/portage/kde-misc/skanlite-0.7/temp/environment'.
 * S: '/home/portage/portage/kde-misc/skanlite-0.7/work/skanlite-0.7'
-----8<-----

The reason for this is that the method toQImageSilent has been introduced with version 4.6 into libksane and my older 4.4.5 was not present. Users would only hit this issue when they have had KDE 4.4 on their system before and rarely run `emerge -NuD world`.
Comment 1 Johannes Huber (RETIRED) gentoo-dev 2012-01-21 12:09:29 UTC
KDE 4.4 is not in tree.
Comment 2 Dirk Tilger 2012-02-09 13:49:31 UTC
(In reply to comment #1)
> KDE 4.4 is not in tree.

Umm. Exactly. But it was and people could righteously use it. 

The "current KDE" dependency is set for kde-base/* automagically, but not for kde-misc/*. That's why skanlite should be modified explicitly to pull in at least 4.6 and not any KDE as it does now.

And all you have to do is to apply that patch on the ebuild.
Comment 3 Johannes Huber (RETIRED) gentoo-dev 2012-02-09 14:00:04 UTC
+  09 Feb 2012; Johannes Huber <johu@gentoo.org> skanlite-0.7.ebuild,
+  skanlite-0.8.ebuild:
+  Set KDE_MINIMAL 4.6, fixes bug #399599.