commit: d898cc0eff0b92fb6ab034dcfc0a9b50dee2d59d Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com> AuthorDate: Sat Sep 5 13:28:29 2020 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Sun Sep 6 05:55:17 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d898cc0e
dev-games/irrlicht: Add patch to remove sys/sysctl.h include Closes: https://bugs.gentoo.org/736342 Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/17426 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> .../files/irrlicht-1.8.4-remove-sys-sysctl.h.patch | 38 ++++++++++++++++++++++ dev-games/irrlicht/irrlicht-1.8.4-r1.ebuild | 1 + 2 files changed, 39 insertions(+) diff --git a/dev-games/irrlicht/files/irrlicht-1.8.4-remove-sys-sysctl.h.patch b/dev-games/irrlicht/files/irrlicht-1.8.4-remove-sys-sysctl.h.patch new file mode 100644 index 00000000000..2e5fc63e6f8 --- /dev/null +++ b/dev-games/irrlicht/files/irrlicht-1.8.4-remove-sys-sysctl.h.patch @@ -0,0 +1,38 @@ +From 5382142d37730f6758753b758c91e257ffd5892c Mon Sep 17 00:00:00 2001 +From: Romain Naour <romain.na...@gmail.com> +Date: Sun, 9 Apr 2017 22:20:19 +0200 +Subject: [PATCH] remove sys/sysctl.h + +With musl irrlicht doesn't build due to missing sys/sysctl.h + +fatal error: sys/sysctl.h: No such file or directory + +From [1] +"sysctl does not work, and NEVER worked. using it is bogus. +it was a bogus experimental syscall that was deprecated before +it was ever used (basically, a broken binary version of +/proc/sys, without any stability between kernel versions for +what the binary constants meant)." + +[1] https://devsonacid.wordpress.com/tag/musl/ + +Signed-off-by: Romain Naour <romain.na...@gmail.com> +--- + source/Irrlicht/COSOperator.cpp | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/source/Irrlicht/COSOperator.cpp b/source/Irrlicht/COSOperator.cpp +index 0899d1d..ccf5ef5 100644 +--- a/source/Irrlicht/COSOperator.cpp ++++ b/source/Irrlicht/COSOperator.cpp +@@ -13,7 +13,6 @@ + #include <unistd.h> + #ifndef _IRR_SOLARIS_PLATFORM_ + #include <sys/types.h> +-#include <sys/sysctl.h> + #endif + #endif + +-- +2.9.3 + diff --git a/dev-games/irrlicht/irrlicht-1.8.4-r1.ebuild b/dev-games/irrlicht/irrlicht-1.8.4-r1.ebuild index 938b141e5e0..8a74c20ddcf 100644 --- a/dev-games/irrlicht/irrlicht-1.8.4-r1.ebuild +++ b/dev-games/irrlicht/irrlicht-1.8.4-r1.ebuild @@ -33,6 +33,7 @@ PATCHES=( "${WORKDIR}"/${P}-patchset/${P}-demoMake.patch "${WORKDIR}"/${P}-patchset/${P}-mesa-10.x.patch "${WORKDIR}"/${P}-patchset/${P}-jpeg-9a.patch + "${FILESDIR}/${P}-remove-sys-sysctl.h.patch" ) DOCS=( changes.txt readme.txt )