commit:     64a22966158c5c78b0a350ca573ff7386b6d687c
Author:     Z. Liu <zhixu.liu <AT> gmail <DOT> com>
AuthorDate: Tue Jan 28 09:10:37 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Jan 29 16:25:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64a22966

dev-libs/efl: fix build w/ musl

in file src/lib/eina/eina_file_posix.c
1. __USE_MISC is a glibc-specific macro, use of it has been removed in
   upstream (e.g for 1.28.0), defined here for simplicity.
2. ino64_t is available only if _LARGEFILE64_SOURCE is defined

Closes: https://bugs.gentoo.org/928586
Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40344
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-libs/efl/efl-1.27.0-r1.ebuild | 9 +++++++--
 dev-libs/efl/efl-1.28.0.ebuild    | 6 +++++-
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/dev-libs/efl/efl-1.27.0-r1.ebuild 
b/dev-libs/efl/efl-1.27.0-r1.ebuild
index 06352ba5d97a..649d1780fba0 100644
--- a/dev-libs/efl/efl-1.27.0-r1.ebuild
+++ b/dev-libs/efl/efl-1.27.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -8,7 +8,7 @@ LUA_COMPAT=( lua5-{1,2} luajit )
 
 PYTHON_COMPAT=( python3_{10..13} )
 
-inherit lua-single meson python-any-r1 xdg
+inherit flag-o-matic lua-single meson python-any-r1 xdg
 
 DESCRIPTION="Enlightenment Foundation Libraries all-in-one package"
 HOMEPAGE="https://www.enlightenment.org";
@@ -282,6 +282,11 @@ src_configure() {
                emesonargs+=( -D native-arch-optimization=false )
        fi
 
+       if use elibc_musl ; then
+               append-cflags -D__USE_MISC
+               append-cflags -D_LARGEFILE64_SOURCE
+       fi
+
        meson_src_configure
 }
 

diff --git a/dev-libs/efl/efl-1.28.0.ebuild b/dev-libs/efl/efl-1.28.0.ebuild
index 04c679ce28e5..3e837c98f669 100644
--- a/dev-libs/efl/efl-1.28.0.ebuild
+++ b/dev-libs/efl/efl-1.28.0.ebuild
@@ -8,7 +8,7 @@ LUA_COMPAT=( lua5-{1,2} luajit )
 
 PYTHON_COMPAT=( python3_{10..13} )
 
-inherit lua-single meson python-any-r1 xdg
+inherit flag-o-matic lua-single meson python-any-r1 xdg
 
 DESCRIPTION="Enlightenment Foundation Libraries all-in-one package"
 HOMEPAGE="https://www.enlightenment.org";
@@ -285,6 +285,10 @@ src_configure() {
                emesonargs+=( -D native-arch-optimization=false )
        fi
 
+       if use elibc_musl ; then
+               append-cflags -D_LARGEFILE64_SOURCE
+       fi
+
        meson_src_configure
 }
 

Reply via email to