Bug 966379 - pkg-config incorrectly adds libxfce4ui to -I
pkg-config incorrectly adds libxfce4ui to -I
Status: CLOSED INSUFFICIENT_DATA
Product: Fedora
Classification: Fedora
Component: libxfce4ui (Show other bugs)
18
x86_64 Linux
unspecified Severity high
: ---
: ---
Assigned To: Christoph Wickert
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-23 04:18 EDT by José Luis González
Modified: 2013-05-24 13:12 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-05-24 13:12:15 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Fix for the pkg-config file (318 bytes, patch)
2013-05-23 04:40 EDT, José Luis González
no flags Details | Diff

  None (edit)
Description José Luis González 2013-05-23 04:18:58 EDT
Description of problem:

pkg-config adds libxfce4ui at the end of the -I cflag, thus breaking the common practice of #including <libxfce4ui/someheader.h>. As an example, xfce4-timer-plugin version 1.5.0 doesn't compile because of this:

xfcetimer.c:41:35: error fatal: libxfce4ui/libxfce4ui.h: No existe el fichero o el directorio
compilación terminada.
make[2]: *** [xfce4_timer-xfcetimer.o] Error 1

Removing the libxfce4ui addy from libxfce4ui-1.pc makes it work.

Version-Release number of selected component (if applicable):

libxfce4ui-devel-4.10.0-4.fc18.x86_64

How reproducible:

$ pkg-config --cflags libxfce4ui-1
-pthread -I/usr/include/xfce4/libxfce4ui-1/libxfce4ui [...]

vs. for instance

$ pkg-config --cflags libxfce4panel-1.0
-pthread -I/usr/include/xfce4/libxfce4panel-1.0 [...]


Steps to Reproduce:

$ pkg-config --cflags libxfceui-1

or compile a plugin that uses it like xfce4-timer-plugin 1.5.0.

Expected results:

$ pkg-config --cflags libxfce4ui-1
-pthread -I/usr/include/xfce4/libxfce4ui-1 [...]
Comment 1 José Luis González 2013-05-23 04:40:41 EDT
Created attachment 752047 [details]
Fix for the pkg-config file
Comment 2 Kevin Fenzi 2013-05-23 16:40:02 EDT
I'm not seeing this here: 

[root@sheelba ~]# rpm -q libxfce4ui-devel
libxfce4ui-devel-4.10.0-4.fc18.x86_64
[root@sheelba ~]# pkg-config --cflags libxfce4ui-1
-pthread -I/usr/include/xfce4/libxfce4ui-1 ...

Can you do a 'rpm -V libxfce4ui-devel' and check and make sure you don't have any locally compiled versions in /usr/local ?
Comment 3 José Luis González 2013-05-24 03:16:43 EDT
My .pc file was modified to correct the cflags problem, so mtime is changed. Interestingly, the "fixed" size seems to be that of the package:

$ rpm -V libxfce4ui-devel
.......T.    /usr/lib64/pkgconfig/libxfce4ui-1.pc
$ rpm -V --nomtime libxfce4ui-devel

So I don't understand how the libfxfce4ui addy came to my file. I haven't compiled libs in this machine, only a couple of plugins:

$ ls /usr/local/include

And, to the best of my knowledge, never modified any .pc file, besides for fixing this. I had no need to. The whole system (fedora 18 + xfce) was installed from scratch this April, the 24th.
Comment 4 Kevin Fenzi 2013-05-24 11:56:17 EDT
Weird. well, from what I see the problem doesn't exist in the packaged version at all. 

You want to investigate some more? Or shall we close this out?
Comment 5 José Luis González 2013-05-24 13:12:15 EDT
No idea what else to investigate. I think it can be closed.

Note You need to log in before you can comment on or make changes to this bug.