After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 536430 - Libs and Cflags paths in gail-uninstalled.pc.in are out of date
Libs and Cflags paths in gail-uninstalled.pc.in are out of date
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Accessibility
2.13.x
Other Solaris
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-06-03 13:36 UTC by Damien Carbery
Modified: 2008-07-03 08:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Correct paths in gail-uninstalled.pc.in file. (502 bytes, patch)
2008-06-03 13:37 UTC, Damien Carbery
committed Details | Review
Point to correct gail .la file. (490 bytes, patch)
2008-06-24 09:31 UTC, Damien Carbery
none Details | Review
patch (581 bytes, patch)
2008-07-03 08:47 UTC, Li Yuan
committed Details | Review

Description Damien Carbery 2008-06-03 13:36:37 UTC
gail has been incorporated into gtk+.

On Solaris we group multiple modules into one installable package and make use of uninstalled.pc files.
libgnomecanvas uses the gail-uninstalled.pc.in file.

The current gail-uninstalled.pc.in file does not provide right paths to gail headers or libraries. Attached patch fixes.

-Libs: ${pc_top_builddir}/${pcfiledir}/gail/libgail.la
-Cflags: -I${pc_top_builddir}/${pcfiledir}
+Libs: ${pc_top_builddir}/${pcfiledir}/modules/other/gail/libgail.la
+Cflags: -I${pc_top_builddir}/${pcfiledir}/modules/other/gail
Comment 1 Damien Carbery 2008-06-03 13:37:40 UTC
Created attachment 112056 [details] [review]
Correct paths in gail-uninstalled.pc.in file.
Comment 2 Harry Lu 2008-06-03 14:59:10 UTC
Add Li to the CC list.
Comment 3 Damien Carbery 2008-06-24 09:30:55 UTC
Reopening this bug because the patch I supplied points to the wrong gail .la file. This had a knock-on effect on modules that used libgnomecanvas (which uses gail). See bug #456513.

New patch changes libgail.la to libgail-util/libgailutil.la.

Sorry for this error.
Comment 4 Damien Carbery 2008-06-24 09:31:41 UTC
Created attachment 113318 [details] [review]
Point to correct gail .la file.
Comment 5 Li Yuan 2008-06-24 10:12:51 UTC
So we don't need libgail.la in gail-uninstalled.pc.in?
Comment 6 Damien Carbery 2008-06-24 10:18:00 UTC
From my experiments I don't think that we do.
Maybe I should wait until tomorrow after I do a full nightly build with the new patch.
Comment 7 Li Yuan 2008-06-24 10:36:19 UTC
If there is no risk if we leave libgail.la in gail-uninstalled.pc.in, I'd prefer just add libgailutil.la. Maybe some modules that we don't know needs to link libgail.la. What's your opinion?
Comment 8 Damien Carbery 2008-06-24 10:48:38 UTC
Good point - I will check the nightly build log tomorrow (Wednesday). If there is a problem then I will add libgail.la back.
Comment 9 Damien Carbery 2008-06-25 13:20:15 UTC
The nightly build completed without errors last night.

$ cd /usr/lib
$ ls libgail*
libgailutil.so  libgailutil.so.18  libgailutil.so.18.0.1
$ ldd libgnomecanvas-2.so | grep gail
  libgailutil.so.18 =>     /usr/lib/libgailutil.so.18

So, IMO, there is only one gail library to link to and therefore the new patch is okay.
Comment 10 Li Yuan 2008-06-30 08:45:52 UTC
Just back from vacation.

I meant is it possible that someone writes a program which depends on libgail.la and wants to use gail-uninstalled.pc.in? I think maybe we need to leave libgail.la in gail-uninstalled.pc.in.
Comment 11 Damien Carbery 2008-06-30 09:09:54 UTC
The gail-uninstalled.pc(.in) file is only used when building against gail *before* gail is installed. When gail is installed then programs use gail.pc.
So, I do not think that we need to add libgail.la to gail-uninstalled.pc.in.
Comment 12 Li Yuan 2008-07-03 08:47:02 UTC
Created attachment 113896 [details] [review]
patch