Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148219 - dev-util/cmake-2.4.3 fails to build KDE3 apps
Summary: dev-util/cmake-2.4.3 fails to build KDE3 apps
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2006-09-19 10:10 UTC by Vladimir Pouzanov
Modified: 2006-11-29 10:38 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Pouzanov 2006-09-19 10:10:42 UTC
cmake doesn't know where to fine kde includes and libs in gentoo. Patch for /usr/share/cmake/Modules/FindKDE3.cmake follows:

--- FindKDE3.cmake      2006-09-19 17:06:41.000000000 +0000
+++ /home/farcaller/FindKDE3.cmake      2006-09-19 16:58:08.000000000 +0000
@@ -99,7 +99,7 @@
 #SET(CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings -avoid-version -Wl,--no-undefined -lc")

 #now try to find some kde stuff
-
+EXEC_PROGRAM(kde-config ARGS --prefix OUTPUT_VARIABLE KDE_CFG_PFX)
 #at first the KDE include direcory
 # kpassdlg.h comes from kdeui and doesn't exist in KDE4 anymore
 FIND_PATH(KDE3_INCLUDE_DIR kpassdlg.h
@@ -110,6 +110,7 @@
   /usr/include/
   /usr/include/kde
   /usr/local/include/kde
+  ${KDE_CFG_PFX}/include
 )

 #now the KDE library directory
@@ -120,6 +121,7 @@
   /opt/kde3/lib
   /usr/lib
   /usr/local/lib
+  ${KDE_CFG_PFX}/lib
 )

 GET_FILENAME_COMPONENT(KDE3_LIB_DIR ${KDE3_KDECORE_LIBRARY} PATH )
Comment 1 Daniel Black (RETIRED) gentoo-dev 2006-09-23 17:20:41 UTC
kde peoples - patch satisfactory?
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2006-09-29 08:31:20 UTC
The lib path can e.g. be lib64 or 32 Please use 

kde-config --expandvars --install lib

respective 

kde-config --expandvars --install include


Should probably go upstream and replace the ugly hardcoded paths.
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2006-11-29 10:38:24 UTC
yes, please get this upstream or reopen with a good patch