commit: bbc74550e02b3fe214e0e9293d03fbf0cfd12560 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Sat Feb 18 21:54:57 2023 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Sat Feb 18 21:54:57 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbc74550
dev-cpp/sdbus-c++: Really fix musl with __UAPI_DEF_ETHHDR Closes: https://bugs.gentoo.org/895284 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> dev-cpp/sdbus-c++/sdbus-c++-0.9.0-r5.ebuild | 5 ++++- dev-cpp/sdbus-c++/sdbus-c++-1.2.0-r1.ebuild | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dev-cpp/sdbus-c++/sdbus-c++-0.9.0-r5.ebuild b/dev-cpp/sdbus-c++/sdbus-c++-0.9.0-r5.ebuild index a51620da4851..4ad16b14b087 100644 --- a/dev-cpp/sdbus-c++/sdbus-c++-0.9.0-r5.ebuild +++ b/dev-cpp/sdbus-c++/sdbus-c++-0.9.0-r5.ebuild @@ -4,7 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) -inherit python-any-r1 meson cmake +inherit python-any-r1 meson cmake flag-o-matic SDP="systemd-stable-252.6" MUSL_PATCHSET="systemd-musl-patches-252.4" @@ -79,6 +79,9 @@ src_prepare() { src_configure() { if ! use systemd; then + # Avoid redefinition of struct ethhdr. + use elibc_musl && append-cppflags -D__UAPI_DEF_ETHHDR=0 + EMESON_SOURCE=${SDS} \ BUILD_DIR=${SDB} \ meson_src_configure \ diff --git a/dev-cpp/sdbus-c++/sdbus-c++-1.2.0-r1.ebuild b/dev-cpp/sdbus-c++/sdbus-c++-1.2.0-r1.ebuild index 14aec38d9337..56e8e1beb44e 100644 --- a/dev-cpp/sdbus-c++/sdbus-c++-1.2.0-r1.ebuild +++ b/dev-cpp/sdbus-c++/sdbus-c++-1.2.0-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) -inherit python-any-r1 meson cmake +inherit python-any-r1 meson cmake flag-o-matic SDP="systemd-stable-252.6" MUSL_PATCHSET="systemd-musl-patches-252.4" @@ -80,6 +80,9 @@ src_prepare() { src_configure() { if ! use systemd; then + # Avoid redefinition of struct ethhdr. + use elibc_musl && append-cppflags -D__UAPI_DEF_ETHHDR=0 + EMESON_SOURCE=${SDS} \ BUILD_DIR=${SDB} \ meson_src_configure \