Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434770 - dev-libs/glib-2.32.4: fix cross-compiling with alignof configure checks
Summary: dev-libs/glib-2.32.4: fix cross-compiling with alignof configure checks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-11 22:21 UTC by SpanKY
Modified: 2012-09-12 04:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2012-09-11 22:21:03 UTC
autoconf has a bug which glib has been bitten by.  upstream has added a workaround in the mean time.  can we add this to current 2.32.4 ebuilds ?

http://git.gnome.org/browse/glib/commit/?id=ddfcfa66ae602c11ce9c4bfc426a79d668653278
(they only added it to master, not the branch, so it'll prob need work in backporting).

another possibility is to call AC_STDC_HEADERS right after AC_SYS_LARGEFILE in configure.ac.  that might be easier.
Comment 1 SpanKY gentoo-dev 2012-09-11 22:26:55 UTC
(In reply to comment #0)

btw, if you're ok with the one line tweak (calling AC_STDC_HEADERS) for 2.32.x, i can take care of committing that.
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-09-11 22:37:24 UTC
(In reply to comment #0)
> autoconf has a bug which glib has been bitten by.  upstream has added a
> workaround in the mean time.  can we add this to current 2.32.4 ebuilds ?
> 
> http://git.gnome.org/browse/glib/commit/
> ?id=ddfcfa66ae602c11ce9c4bfc426a79d668653278
> (they only added it to master, not the branch, so it'll prob need work in
> backporting).

I think that you meant http://git.gnome.org/browse/glib/commit/?id=e30823d93ff643c82d4037c2cf0f509e347f49de and http://git.gnome.org/browse/glib/commit/?id=54e31ab4f172bbb28434eafc34c9345a93c9ccf5

The ddfcfa66 commit shouldn't have any effect on cross-compiling.
Comment 3 SpanKY gentoo-dev 2012-09-11 22:43:28 UTC
(In reply to comment #2)

all three actually.  ideally, AS_IF shouldn't matter at all to cross-compiling, but in the glib case they do because of bugs in autoconf and the resulting implicit ordering of header checks.
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-09-12 04:55:46 UTC
I've backported a set of patches from 2.33.x that results in the equivalent usage of AS_IF to what exists in configure.ac in current glib git master. Please reopen if that's not sufficient for cross-compiling.

>  12 Sep 2012; Alexandre Rostovtsev <tetromino@gentoo.org> glib-2.32.4.ebuild:
>  Add AS_IF patches from 2.33.x to fix cross-compiling; bug #434770, thanks to
>  Mike Frysinger.