[Bug 758354] New: include flags for swipl not returned by pkg-config
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.
https://bugzilla.novell.com/show_bug.cgi?id=758354 https://bugzilla.novell.com/show_bug.cgi?id=758354#c1 kk zhang <kkzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkzhang@suse.com AssignedTo|bnc-team-screening@forge.pr |poletti.marco@gmail.com |ovo.novell.com | --- Comment #1 from kk zhang <kkzhang@suse.com> 2012-04-23 05:18:19 UTC --- HI,could you please help to have a look this?I am not sure whether it is right to assign it to you.Feel free to reassign it.Thank you. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=758354 https://bugzilla.novell.com/show_bug.cgi?id=758354#c2 Marco Poletti <poletti.marco@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Marco Poletti <poletti.marco@gmail.com> 2012-05-06 21:47:55 CEST --- I fixed it in the devel project, and I submitted the fix to Factory. In a few hours the RPM should be available for 12.1, too, in my home repository: http://download.opensuse.org/repositories/home:/poletti_marco/openSUSE_12.1_... -- 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.
participants (1)
-
bugzilla_noreply@novell.com