commit:     4284176d4423a366a93ba7b381384f5eae561565
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 15 21:50:53 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 15 21:50:59 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4284176d

dev-libs/OpenNI2: invert debugging hack

Bug: https://bugs.gentoo.org/716346
Fixes: a7713d3db8cfaf20ad059849f859785bb91e2584
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/OpenNI2/OpenNI2-2.2_beta2-r1.ebuild | 2 +-
 dev-libs/OpenNI2/OpenNI2-9999.ebuild         | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-libs/OpenNI2/OpenNI2-2.2_beta2-r1.ebuild 
b/dev-libs/OpenNI2/OpenNI2-2.2_beta2-r1.ebuild
index cb6ab6415daa..f6f44ab31fe4 100644
--- a/dev-libs/OpenNI2/OpenNI2-2.2_beta2-r1.ebuild
+++ b/dev-libs/OpenNI2/OpenNI2-2.2_beta2-r1.ebuild
@@ -54,7 +54,7 @@ src_prepare() {
 }
 
 src_compile() {
-       if use elibc_glibc ; then
+       if ! use elibc_glibc ; then
                # Build system doesn't respect CPPFLAGS.
                # bug #716346
                append-flags -DXN_PLATFORM_LINUX_NO_GLIBC 
-DXN_PLATFORM_HAS_NO_SCHED_PARAM

diff --git a/dev-libs/OpenNI2/OpenNI2-9999.ebuild 
b/dev-libs/OpenNI2/OpenNI2-9999.ebuild
index dafb9834ae95..2c75c2c95808 100644
--- a/dev-libs/OpenNI2/OpenNI2-9999.ebuild
+++ b/dev-libs/OpenNI2/OpenNI2-9999.ebuild
@@ -9,7 +9,7 @@ if [ "${PV#9999}" != "${PV}" ] ; then
        EGIT_REPO_URI="https://github.com/occipital/openni2";
 fi
 
-inherit ${SCM} toolchain-funcs java-pkg-opt-2
+inherit ${SCM} flag-o-matic toolchain-funcs java-pkg-opt-2
 
 if [ "${PV#9999}" != "${PV}" ] ; then
        SRC_URI=""
@@ -52,7 +52,7 @@ src_prepare() {
 }
 
 src_compile() {
-       if use elibc_glibc ; then
+       if ! use elibc_glibc ; then
                # Build system doesn't respect CPPFLAGS.
                # bug #716346
                append-flags -DXN_PLATFORM_LINUX_NO_GLIBC 
-DXN_PLATFORM_HAS_NO_SCHED_PARAM

Reply via email to