commit:     c9a77e1ab93d5af9968d3e449569832aff61c2df
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 13 03:23:40 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Oct 13 03:24:01 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9a77e1a

dev-libs/glib: fix builds w/newer bionic versions

 dev-libs/glib/files/glib-2.44.1-bionic-nameser.patch | 15 +++++++++++++++
 dev-libs/glib/glib-2.44.1-r1.ebuild                  |  2 ++
 2 files changed, 17 insertions(+)

diff --git a/dev-libs/glib/files/glib-2.44.1-bionic-nameser.patch 
b/dev-libs/glib/files/glib-2.44.1-bionic-nameser.patch
new file mode 100644
index 0000000..259b572
--- /dev/null
+++ b/dev-libs/glib/files/glib-2.44.1-bionic-nameser.patch
@@ -0,0 +1,15 @@
+https://bugzilla.gnome.org/756477
+
+fix build w/newer releases of bionic (android)
+
+--- a/gio/gthreadedresolver.c
++++ b/gio/gthreadedresolver.c
+@@ -263,7 +263,7 @@ lookup_by_address_finish (GResolver     *resolver,
+ 
+ #if defined(G_OS_UNIX)
+ 
+-#ifdef __BIONIC__
++#if defined __BIONIC__ && !defined BIND_4_COMPAT
+ /* Copy from bionic/libc/private/arpa_nameser_compat.h
+  * and bionic/libc/private/arpa_nameser.h */
+ typedef struct {

diff --git a/dev-libs/glib/glib-2.44.1-r1.ebuild 
b/dev-libs/glib/glib-2.44.1-r1.ebuild
index d5302bc..25be870 100644
--- a/dev-libs/glib/glib-2.44.1-r1.ebuild
+++ b/dev-libs/glib/glib-2.44.1-r1.ebuild
@@ -151,6 +151,8 @@ src_prepare() {
        # gdbus-codegen is a separate package
        epatch "${FILESDIR}/${PN}-2.40.0-external-gdbus-codegen.patch"
 
+       epatch "${FILESDIR}/${PN}-2.44.1-bionic-nameser.patch"
+
        # leave python shebang alone
        sed -e '/${PYTHON}/d' \
                -i glib/Makefile.{am,in} || die

Reply via email to