[Bug 171460] New: [PATCH] FindKipi, FindKdcraw, FindKexiv2 cmake modules ignore correct pkgconfig lib paths and return incorrect ones.

Matěj Laitl strohel at gmail.com
Mon Sep 22 17:08:55 CEST 2008


http://bugs.kde.org/show_bug.cgi?id=171460

           Summary: [PATCH] FindKipi, FindKdcraw, FindKexiv2 cmake modules
                    ignore correct pkgconfig lib paths and return incorrect
                    ones.
           Product: kdelibs
           Version: 4.1
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdelibs-bugs at kde.org
        ReportedBy: strohel at gmail.com


Version:            (using KDE 4.1.1)
OS:                Linux
Installed from:    I Don't Know

Steps to reproduce:
1. Install old (KDE3) versions of libkipi, libkexiv2, libkdcraw into /usr
2. Setup KDE 4.1.1 for example in /usr/kde/4.1/
3. Try to compile for example digiKam 0.10-betaX or gwenview 4.1.1, exporting
PKG_CONFIG_PATH=/usr/kde/4.1/lib/pkgconfig
4. pkg-config returns correct lib paths (/usr/kde/4.1/lib/libkipi.so) in
FindK{dcraw,ipi,exiv2}.cmake, but cmake calls like
"find_library(KIPI_LIBRARIES NAMES kipi PATHS ${KDE4_LIB_DIR} ${_KIPILinkDir})"
do search system default folders FIRST [1], resulting in incorrect libs
returned (/usr/libkipi.so).

The solution is to call find_* cmake commands with NO_DEFAULT_PATH first, and
fallback to system paths. [1]

Will attach patch, should be applied to both trunk and 4.1 branch.

Matěj Laitl.

[1] http://www.cmake.org/cmake/help/cmake-2.6.html#command:find_library


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kdelibs-bugs mailing list