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 385132 - solaris gettext support fix
solaris gettext support fix
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: build
2.10.x
Other opensolaris
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2006-12-12 17:43 UTC by Laszlo (Laca) Peter
Modified: 2014-01-20 12:42 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
patch that adds AC_CANONICAL_HOST dep to GLIB_WITH_NLS (351 bytes, patch)
2006-12-12 17:44 UTC, Laszlo (Laca) Peter
rejected Details | Review

Description Laszlo (Laca) Peter 2006-12-12 17:43:29 UTC
Toshi fixes Bug 85217 back in 2003 but his fix had a small bug.
We've been carrying around a tiny patch in Sun's builds ever since.
I'd like to get it upstream.

The bug is that Toshi's fix tests if $host includes "solaris", but
$host is only defined if the AC_CANONICAL_HOST macro is used.
So this patch makes it a requirement of the GLIB_WITH_NLS
macro (which includes the test for solaris in $host)
Comment 1 Laszlo (Laca) Peter 2006-12-12 17:44:30 UTC
Created attachment 78218 [details] [review]
patch that adds AC_CANONICAL_HOST dep to GLIB_WITH_NLS
Comment 2 Matthias Clasen 2006-12-12 17:57:48 UTC
Looks fine, please commit to both branches, if you want.
Comment 3 Matthias Clasen 2006-12-13 20:12:43 UTC
2006-12-13  Matthias Clasen  <mclasen@redhat.com>

        * m4macros/glib-gettext.m4: Require AC_CANONICAL_HOST in
        GLIB_WITH_NLS.  (#385132, Laszlo Peter)

Comment 4 Fryderyk Dziarmagowski 2007-08-15 07:30:57 UTC
I think this patch is wrong. It forces configure to check for build system type, so building for example gnome-icon-theme as noarch is no longer possible.

trying to build gnome-icon-theme-2.19.90:
[...]
checking build system type... Invalid configuration `noarch-xxx-linux': machine `noarch-xxx' not recognized
configure: error: /bin/sh ./config.sub noarch-xxx-linux failed
[...]

Reverting this patch solves the problem.


Comment 5 Adam Williamson 2007-08-21 22:33:21 UTC
Agreed with Fryderyk. I have just run into this same problem trying to build Conduit as noarch. The Alt Linux guys have also run into it:

http://lists.altlinux.ru/pipermail/devel/2007-January/040369.html

as has PLD Linux:

http://lists.pld-linux.org/mailman/pipermail/pld-cvs-commit/Week-of-Mon-20070226/145259.html

I am adopting the PLD patch into Mandriva for now. Please revert this change and fix the original problem in a way that causes no regressions. Thanks.
Comment 6 Laszlo (Laca) Peter 2007-08-21 22:59:43 UTC
Hmmm... okay.

Since the use of AC_CANONICAL_HOST is solely for identifying Solaris,
we can replace it with something like checking if `uname -s` matches
SunOS.
Comment 7 Frederic Crozat 2007-11-15 12:57:32 UTC
reopening based on comments
Comment 8 Matthias Clasen 2008-01-27 23:02:33 UTC
I've removed the AC_CANONICAL_HOST for now. Waiting for a different fix.
Comment 9 Matthias Clasen 2014-01-20 12:42:55 UTC
different fix never appeared