DevHeads.net

Help needed for FTBFS in rawhide because of libraries order

Hi,
I'm trying to debug a FTBFS in rawhide:

<a href="https://koji.fedoraproject.org/koji/taskinfo?taskID=32412101" title="https://koji.fedoraproject.org/koji/taskinfo?taskID=32412101">https://koji.fedoraproject.org/koji/taskinfo?taskID=32412101</a>

Apparently it fails because of library ordering, but it works in f29.
g_object_unref is defined in gobject-2.0 and it gets surely added by
the 'pkgconf --libs cairo pangocairo pango' command.

Did anything about gobject or glib change in rawhide recently?

Thank you for any help.

Guido

FAS account: tartina

Comments

Re: Help needed for FTBFS in rawhide because of libraries order

By TASAKA Mamoru at 02/04/2019 - 07:16

Guido Aulisi wrote on 2019/02/03 20:31:
F-29
$ rpm -q pango
pango-1.42.4-2.fc29.x86_64
$ pkgconf --libs pango
-lpango-1.0 -lgobject-2.0 -lglib-2.0

F-30
$ rpm -q pango
pango-1.43.0-1.fc30.x86_64
$ pkgconf --libs pango
-lpango-1.0

pango-1.43.0-1.fc30.x86_64 pango.pc shows:
I guess this is due to this commit:
<a href="https://gitlab.gnome.org/GNOME/pango/commit/86855b6a458fd9b82d246f723a7e3c9cdb37a8a0" title="https://gitlab.gnome.org/GNOME/pango/commit/86855b6a458fd9b82d246f723a7e3c9cdb37a8a0">https://gitlab.gnome.org/GNOME/pango/commit/86855b6a458fd9b82d246f723a7e...</a>
It seems to be doing some refactoring (with adding some fallback), and
"requires: gobject_dep," line is deleted.

Currently I am not sure if it is intentional or accidental.

Regards,
Mamoru

Re: Help needed for FTBFS in rawhide because of libraries order

By =?UTF-8?Q?Parag... at 02/04/2019 - 10:31

On Mon, Feb 4, 2019 at 5:44 PM Mamoru TASAKA < ... at fedoraproject dot org>
wrote:

I think this commit
<a href="https://gitlab.gnome.org/GNOME/pango/commit/d0cb6be7431d1a3c711bd45bcf05b34601604037" title="https://gitlab.gnome.org/GNOME/pango/commit/d0cb6be7431d1a3c711bd45bcf05b34601604037">https://gitlab.gnome.org/GNOME/pango/commit/d0cb6be7431d1a3c711bd45bcf05...</a>
will revert it back but we need to wait for next upstream pango release.

Parag

Re: Help needed for FTBFS in rawhide because of libraries order

By Peng Wu at 02/11/2019 - 01:12

Thanks for the investigation, I just back port the patch for Fedora rawhide
now.

Peng

Re: Help needed for FTBFS in rawhide because of libraries order

By TASAKA Mamoru at 02/11/2019 - 02:18

Peng Wu wrote on 2019/02/11 14:12:
Okay, thank you for applying the upstream patch. Actually this fixes at least
FTBFS issues for several packages.

Regards,
Mamoru

Re: Help needed for FTBFS in rawhide because of libraries order

By Guido Aulisi at 02/04/2019 - 09:23

Il giorno lun 4 feb 2019 alle ore 13:14 Mamoru TASAKA
< ... at fedoraproject dot org> ha scritto:
Ok, now I understand why it does not work in rawhide

Thank you very much

Ciao
Guido

Re: Help needed for FTBFS in rawhide because of libraries order

By TASAKA Mamoru at 02/04/2019 - 10:02

Guido Aulisi wrote on 2019/02/04 22:23:
... And actually the above change was reverted by the following commit:
<a href="https://gitlab.gnome.org/GNOME/pango/commit/d0cb6be7431d1a3c711bd45bcf05b34601604037" title="https://gitlab.gnome.org/GNOME/pango/commit/d0cb6be7431d1a3c711bd45bcf05b34601604037">https://gitlab.gnome.org/GNOME/pango/commit/d0cb6be7431d1a3c711bd45bcf05...</a>

i.e. gobject-2.0 got added again as Requires (non-private) for pango.pc , which will
appear in pango-1.43.1 .

Regards,
Mamoru

Re: Help needed for FTBFS in rawhide because of libraries order

By Kalev Lember at 02/03/2019 - 17:19

On 2/3/19 12:31, Guido Aulisi wrote:
Not sure what changed, but if you are using a symbol from a library, the
right thing to do is to list it in the 'pkgconf --libs' line so that you
can be sure that you are linking against it and not relying on another
library pulling it in.

Just add gobject-2.0 to the 'pkgconf --libs' line and that should fix
the issue you are seeing, hopefully.

Hope this helps,
Kalev

Re: Help needed for FTBFS in rawhide because of libraries order

By Guido Aulisi at 02/04/2019 - 04:48

Il giorno dom 3 feb 2019 alle ore 23:17 Kalev Lember
< ... at gmail dot com> ha scritto:
Thank you for your suggestion,
I added -lgobject-2.0 -lglib-2.0 to LDFLAGS and the build was ok.
I don't want to modify or patch upstream's Makefile...

Ciao
Guido

Re: Help needed for FTBFS in rawhide because of libraries order

By Vitaly Zaitsev at 02/04/2019 - 05:10

Hello, Guido Aulisi.

Why? Patching of Makefile/cmake manifests is fine.