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 416889 - Broken build, due to dependence on x11.pc
Broken build, due to dependence on x11.pc
Status: RESOLVED FIXED
Product: libgnomeui
Classification: Deprecated
Component: general
CVS HEAD
Other Linux
: Normal normal
: future
Assigned To: libgnomeui maintainers
libgnomeui maintainers
: 417718 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-03-10 19:59 UTC by Elijah Newren
Modified: 2007-03-14 09:18 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Fallback to old-style X11 detection (3.48 KB, patch)
2007-03-11 20:06 UTC, Loïc Minier
committed Details | Review
Close the pkg_check_modules test at the correct place (407 bytes, patch)
2007-03-13 15:33 UTC, Loïc Minier
none Details | Review

Description Elijah Newren 2007-03-10 19:59:41 UTC
The patch in bug 409278 broke the build for distros that do not have x11.pc.  Loic was incorrect in his claims in bug 409278 comment 3 about x11.pc coming with Xorg; as an example, xorg 6.8.2 (comes with Fedora 3/RHEL 4) does not have x11.pc.
Comment 1 Loïc Minier 2007-03-11 20:06:23 UTC
Created attachment 84397 [details] [review]
Fallback to old-style X11 detection

Hmm sorry, I meant 7.0 => x11.pc, and not Xorg => x11.pc, and this was indeed not very accurate in my original comment.

I forgot providing a version falling back on AC_PATH_XTRA like I did for gnome-panel, libgnomekbd, gail, and evolution, so I'm attaching this patch now which will try the pkg-config modules for x11 but also for sm + ice, and fall back to old-style AC_PATH_XTRA detection.

I added an AC_MSG_ERROR to keep failing in configure when X11 isn't found, but only for non-win32 builds.

I also added the libs to the libgnomeui.la object, not to LIBGNOMEUI_LIBS, as this seemed more flexible.

In general, I tried to match the existing SM tests.


I have tested this patch both with pkg-config modules and with old-style detection.

@Elijah, can you confirm this patch fixes the problem for you?
Comment 2 Elijah Newren 2007-03-12 22:00:13 UTC
Works for me, and it looks like Kjartan has already applied the patch.  Thanks for the quick response guys!
Comment 3 Sebastien Bacher 2007-03-13 15:01:27 UTC
Looks like that change is breaking gnome-session, with libgnomeui 2.18.0 tarball, from the config.h on Ubuntu (xorg 7.2): "/* #undef HAVE_LIBSM */", the required Build-Depends are installed
Comment 4 Loïc Minier 2007-03-13 15:33:12 UTC
Created attachment 84508 [details] [review]
Close the pkg_check_modules test at the correct place

Here's a patch closing the pkg_check_modules at the correct place.  Apologies for this stupid typo.
Comment 5 Kjartan Maraas 2007-03-13 23:53:14 UTC
Commited. Thanks for the patches.
Comment 6 Sebastien Bacher 2007-03-14 09:18:50 UTC
*** Bug 417718 has been marked as a duplicate of this bug. ***