Discussion:
Spurious Requires in gladeui-1.0.pc?
Debarshi Ray
2009-04-11 19:11:51 UTC
Permalink
gladeui-1.0.pc has:
Requires: gtk+-2.0 >= 2.10.0 libxml-2.0 >= 2.4.0

However none of the headers installed in /usr/include /libgladeui-1.0
have a dependency on libxml. Therefore an application using these
headers might not need libxml at all. So can this dependency be
removed from the pkgconfig file?

Cheers,
Debarshi
--
One reason that life is complex is that it has a real part and an
imaginary part.
-- Andrew Koenig
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
Debarshi Ray
2009-04-11 19:25:41 UTC
Permalink
Post by Debarshi Ray
Requires: gtk+-2.0 >= 2.10.0 libxml-2.0 >= 2.4.0
The configure.ac demands gtk+-2.0 >= 2.14.0, so would it not be a good
idea to update the pkgconfig file?

Cheerio,
Debarshi
--
One reason that life is complex is that it has a real part and an
imaginary part.
-- Andrew Koenig
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
Tristan Van Berkom
2009-04-12 04:40:34 UTC
Permalink
Glade needs libxml to link and run
so that needs to stay, regarding GTK
version; I don't know why that's not
updated at build time so I'll look into that...

Cheers,
-Tristan
Post by Debarshi Ray
Post by Debarshi Ray
Requires: gtk+-2.0 >= 2.10.0 libxml-2.0 >= 2.4.0
The configure.ac demands gtk+-2.0 >= 2.14.0, so would it not be a good
idea to update the pkgconfig file?
Cheerio,
Debarshi
--
One reason that life is complex is that it has a real part and an
imaginary part.
   -- Andrew Koenig
_______________________________________________
http://lists.ximian.com/mailman/listinfo/glade-devel
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
Debarshi Ray
2009-04-12 07:00:31 UTC
Permalink
Post by Tristan Van Berkom
Glade needs libxml to link and run
so that needs to stay
The pkgconfig file is not checked when Glade is run. As glade and
libgladeui links to libxml2.so.2, the glade3 and glade3-libgladeui
packages would have a runtime dependency on libxml2.

Now the *.pc files are a part of the -devel or -dev subpackages. If
libxml2 is mentioned in gladeui-1.0.pc, then glade3-libgladeui-devel
gets a runtime dependency on libxml2-devel, which does not seem
necessary.

Since the *.pc files are only consulted at build time, usually by the
configure script, it can not do much to enforce any runtime
requirements. It can only enforce compile time requirements. For
example, after successfully building and installing glade someone can
try to delete libxml2.so.2 and the only barrier would be a
distribution's package management system and not the gladeui-1.0.pc.

Cheers,
Debarshi
--
One reason that life is complex is that it has a real part and an
imaginary part.
-- Andrew Koenig
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
Tristan Van Berkom
2009-04-12 14:48:20 UTC
Permalink
Post by Debarshi Ray
Post by Tristan Van Berkom
Glade needs libxml to link and run
so that needs to stay
The pkgconfig file is not checked when Glade is run. As glade and
libgladeui links to libxml2.so.2, the glade3 and glade3-libgladeui
packages would have a runtime dependency on libxml2.
Now the *.pc files are a part of the -devel or -dev subpackages. If
libxml2 is mentioned in gladeui-1.0.pc, then glade3-libgladeui-devel
gets a runtime dependency on libxml2-devel, which does not seem
necessary.
Since the *.pc files are only consulted at build time, usually by the
configure script, it can not do much to enforce any runtime
requirements. It can only enforce compile time requirements. For
example, after successfully building and installing glade someone can
try to delete libxml2.so.2 and the only barrier would be a
distribution's package management system and not the gladeui-1.0.pc.
Sure, we can only do what we can, if you're developing with the Glade
headers you need a functional installation of the Glade core, which
means you need libxml2, whether you need to specify -lxml2 to link
against libgladeui I think is irrelevant here.

Cheers,
-Tristan
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel

Loading...