Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 515110 - x11-libs/libxcb-1.9.3-r1 [Prefix]: Compiler error on ppc-aix due to incorrect order of include files
Summary: x11-libs/libxcb-1.9.3-r1 [Prefix]: Compiler error on ppc-aix due to incorrect...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All AIX
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords: PATCH, UPSTREAM
Depends on:
Blocks:
 
Reported: 2014-06-25 15:56 UTC by Michael Haubenwallner (RETIRED)
Modified: 2014-10-23 11:08 UTC (History)
1 user (show)

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


Attachments
upstream commit diff (libxcb-1.9.3-aix-reqevents.patch,1021 bytes, patch)
2014-06-25 15:56 UTC, Michael Haubenwallner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Haubenwallner (RETIRED) gentoo-dev 2014-06-25 15:56:09 UTC
Created attachment 379658 [details, diff]
upstream commit diff

AIX headers have more #define's than other platforms. Thus it is necessary to include system headers before local struct declarations to have consistent structure member names in both local header file and the source code.

Patch committed upstream already:
http://cgit.freedesktop.org/xcb/libxcb/commit/?id=125135452a554e89e49448e2c1ee6658324e1095

Thanks!

(proposed ebuild diff, failed to find a more compact way with xorg-2.eclass to apply patches)

--- libxcb-1.9.3-r1.ebuild      18 Jun 2014 21:05:38 -0000      1.2
+++ libxcb-1.9.3-r1.ebuild      25 Jun 2014 15:52:47 -0000
@@ -37,6 +37,11 @@
        python-any-r1_pkg_setup
 }
 
+src_prepare() {
+       epatch "${FILESDIR}"/${PN}-1.9.3-aix-reqevents.patch
+       xorg-2_src_prepare
+}
+
 src_configure() {
        XORG_CONFIGURE_OPTIONS=(
                $(use_enable doc build-docs)
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-10-23 11:08:18 UTC
Fixed in libxcb-1.11