https://bugzilla.novell.com/show_bug.cgi?id=758354 https://bugzilla.novell.com/show_bug.cgi?id=758354#c0 Summary: include flags for swipl not returned by pkg-config Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: openSUSE 12.1 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: myrosia@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=487295) --> (http://bugzilla.novell.com/attachment.cgi?id=487295) The patch that fixes the problem when added to the swipl RPM User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 The include files needed by a C interface to SWI Prolog are SWI-Prolog.h and SWI-Stream.h. They are installed as part of swipl package into/usr/lib64/swipl-VERSION/include (or /usr/lib on 32-bit systems). For programs that depend on those files to compile correctly, pkg-config --cflags swipl should return this directory. It works this way on Fedora and Red Hat Enterprise Linux. On OpenSuse nothing is returned. This breaks compilation of software that use pkg-config to discover prolog include directories. The problem is the incorrect specification of includedir in swipl.pc, which is created from src/swipl.pc.in in the source package. The current line says includedir=@includedir@, which defaults to standard include directories. It should be instead includedir=${libdir}/@PL@-@PLVERSION@/include Reproducible: Always Steps to Reproduce: pkg-config --cflags swipl Actual Results: Empty line (nothing returned) Expected Results: -I/usr/lib64/swipl-5.10.2/include I verified that this fixes the problem on my system by adding the patch and re-building the RPM. When the patched RPM is installed, the pkg-config command returns the correct directory. The patch is attached. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.