<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#ffffff">
I have packaged xneur, which on review [1] and its build fine on
Fedora 12 and 13. On Fedora 14 it is failed [2] with error:<br>
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; font-size: medium;">
<pre style="word-wrap: break-word; white-space: pre-wrap;">/usr/include/libnotify/notification.h:28:21: fatal error: gtk/gtk.h: No such file or directory
</pre>
</span>I try figure out what happened and go step by step add
includes in CFLAGS like:<br>
make %{?_smp_mflags} CFLAGS="%{optflags} -I%{_includedir}/gtk-2.0"<br>
after many attempts and googling I finally arrived to:<br>
make %{?_smp_mflags} CFLAGS="%{optflags} %( pkg-config --cflags
--libs gtk+-2.0 )"<br>
<br>
which work like a charm.<br>
<br>
But I can't understand why I should provide it manually and why it
does not required in previous releases?<br>
<br>
I slightly dig more and found it happened on linking with libnotify
library. And finaly result:<br>
On Fedora 13:<br>
$ pkg-config --cflags "libnotify >= 0.4.0"<br>
-pthread -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng12<br>
On Fedora 14 (<span class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family: 'Times New Roman';
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span" style="font-family: sans-serif;
font-size: 12px; line-height: 18px;">f14-test.scrye.com</span></span>):<br>
$ pkg-config --cflags "libnotify >= 0.4.0"<br>
-pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include<br
class="Apple-interchange-newline">
<br>
Should I fill bug on libnotify or it is the expected behavior?<br>
<br>
[1] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=623604">https://bugzilla.redhat.com/show_bug.cgi?id=623604</a><br>
[2] <a
href="http://koji.fedoraproject.org/koji/getfile?taskID=2482272&name=build.log">http://koji.fedoraproject.org/koji/getfile?taskID=2482272&name=build.log</a><br>
</body>
</html>