Bug 4353 - рушит pkgconfig
Summary: рушит pkgconfig
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: libplanner (show other bugs)
Version: unstable
Hardware: all Linux
: P2 blocker
Assignee: Pavel Vainerman
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-14 03:16 MSD by Denis Ovsienko
Modified: 2005-07-13 15:46 MSD (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Ovsienko 2004-06-14 03:16:41 MSD
В состав libplanner входит libplanner.pc, в котором прописана зависимость на
libxml-2.0. В зависимостях библиотеки соответствующе порции нет, и pkgconfig при
натыкании на libplanner.pc не может нормально работать. Привожу кусок лога с IRC:

<Pilot> "undefined reference to `Gdk::Pixbuf::get_n_channels() const'". which
packages should i look for?
<danielk> that's in libgdkmm
<Pilot> i have gdk-pixbuf and gdk-pixbuf-devel
<danielk> but pkg-config --libs gtkmm-2.4 should do everything
* Pilot looks
<danielk> gdkmm is part of gtkmm
<Pilot> $ pkg-config --libs gtkmm-2.4
<Pilot> -lgtkmm-2.4
<Pilot> cool
<danielk> what???
<Pilot> exactly
<danielk> your system is fucking broken
<danielk> daniel@harry:~$ pkg-config --libs gtkmm-2.4
<danielk> -Wl,--export-dynamic -L/opt/gnome2/lib -lgtkmm-2.4 -lgdkmm-2.4
-latkmm-1.6 -lgtk-x11-2.0 -lpangomm-1.4 -lglibmm-2.4 -lsigc-2.0 -lgdk-x11-2.0
-latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
<Pilot> gtkmm-2.4.pc contains Requires: glibmm-2.4 gdkmm-2.4 pangomm-1.4
atkmm-1.6 gtk+-2.0
<Pilot> Libs: -lgtkmm-2.4
<danielk> weird
<Pilot> i can post a blocker bug
<Pilot> we are expecting a beta soon
<danielk> the Libs: part is right
<danielk> something is wrong with pkg-config on your box
<danielk> it should pull in the deps
<Pilot> pkgconfig-0.15.0
<danielk> same here
<Pilot> pkg-config --list-all shows only pango and pangoxft
<danielk> uh oh
<Pilot> i mean that's only packages which match *pango*
<Pilot> should there be pangomm*
<Pilot> ?
<danielk> yes
<danielk> daniel@harry:~$ pkg-config --modversion pangomm-1.4
<danielk> 2.4.2
<Pilot> there's no *atk* or *gtk*
<Pilot> should i file a bug?
<ska-fan_> is gtk2-devel installed?
* Pilot looks at x-chat "about" and sees: "Renderer: Pango"
<Pilot> libgtk+2-devel-2.4.1-alt1
<Pilot> libgtkmm2-devel-2.4.1-alt1
<ska-fan_> does it contain a .pkg file
<ska-fan_> err, .pc file
<Pilot> found!
<ska-fan_> where
<Pilot> all .pc files are present
<ska-fan_> 00:53 < Pilot> $ pkg-config --libs gtkmm-2.4
<ska-fan_> 00:53 < Pilot> -lgtkmm-2.4
<ska-fan_> is definately a bug.
<Pilot> pkgconfig --list-all prints two errors
<Pilot> i guess this is the reason
<Pilot> like:
<Pilot> Package libxml-2.0 was not found in the pkg-config search path.
<Pilot> Perhaps you should add the directory containing `libxml-2.0.pc'
<Pilot> may me, it stops pkgconfig from processing .pc files and breaks recursion
<Pilot> libplanner-1.pc:Requires: glib-2.0 gmodule-2.0 gobject-2.0 libxml-2.0
libgsf-1
<danielk> well
<danielk> gtkmm doesn't depend on libxml
<Pilot> libplanner-0.11-alt3
<danielk> dunno what that is :)
<Pilot> so it should be a broken dependency or wrong %package %files section
* Pilot files a bug
<Pilot> :)
Comment 1 Denis Ovsienko 2004-06-14 03:19:41 MSD
И вообще мне кажется, что файлы .pc должны входить в -devel пакеты.
Comment 2 Denis Ovsienko 2004-06-14 03:38:25 MSD
Это из rpm -q --changelog pkgconfig:
* Сбт Янв 03 2004 Yuri N. Sedunov <aris@altlinux.ru> 0.15.0-alt3

- disable recursion while output linker flags. New --recursive option
  restores former behavior.

Так что из вышеописанного актуальна только половина. Возможно, severity тоже
завышена.
Comment 3 Pavel Vainerman 2004-06-14 20:16:42 MSD
- pkgconfig вынесен в libplanner-devel
- для libplanner-devel добавлена зависимость на libxml2-devel
Comment 4 Denis Ovsienko 2004-06-18 16:27:37 MSD
Спасибо.