commit: a2215adc4210cb2677d0457bddfb7d0be5cc7494 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Sun Apr 24 20:26:56 2022 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Sun Apr 24 21:07:47 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2215adc
dev-util/mingw64-runtime: revert to old style cpp check May return different error codes despite working properly, cause unknown but ideally should look at doing this differently. For now just revert to old behavior. While here, add guard for headers-only. Not an issue per-se given lib options don't matter, but it still uses wrong cpp at that stage. Closes: https://bugs.gentoo.org/840662 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> dev-util/mingw64-runtime/mingw64-runtime-10.0.0.ebuild | 12 ++++++------ dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r2.ebuild | 12 ++++++------ dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r1.ebuild | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/dev-util/mingw64-runtime/mingw64-runtime-10.0.0.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-10.0.0.ebuild index cf08ceab0f13..077a2a52ccd6 100644 --- a/dev-util/mingw64-runtime/mingw64-runtime-10.0.0.ebuild +++ b/dev-util/mingw64-runtime/mingw64-runtime-10.0.0.ebuild @@ -88,12 +88,12 @@ src_configure() { $(crt-use_with libraries) $(crt-use_with tools) $( - $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - </dev/null | grep -q __MINGW64__ - case ${PIPESTATUS[*]} in - '0 0') echo --disable-lib32 --enable-lib64;; - '0 1') echo --enable-lib32 --disable-lib64;; - *) die "failed check for __MINGW64__";; - esac + if use !headers-only; then + # not checking cpp errors due to bug #840662 + $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - </dev/null | grep -q __MINGW64__ \ + && echo --disable-lib32 --enable-lib64 \ + || echo --enable-lib32 --disable-lib64 + fi ) ) diff --git a/dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r2.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r2.ebuild index 78376aa3bcb5..8b0afea5649a 100644 --- a/dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r2.ebuild +++ b/dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r2.ebuild @@ -90,12 +90,12 @@ src_configure() { $(crt-use_with libraries) $(crt-use_with tools) $( - $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - </dev/null | grep -q __MINGW64__ - case ${PIPESTATUS[*]} in - '0 0') echo --disable-lib32 --enable-lib64;; - '0 1') echo --enable-lib32 --disable-lib64;; - *) die "failed check for __MINGW64__";; - esac + if use !headers-only; then + # not checking cpp errors due to bug #840662 + $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - </dev/null | grep -q __MINGW64__ \ + && echo --disable-lib32 --enable-lib64 \ + || echo --enable-lib32 --disable-lib64 + fi ) ) diff --git a/dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r1.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r1.ebuild index cf08ceab0f13..077a2a52ccd6 100644 --- a/dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r1.ebuild +++ b/dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r1.ebuild @@ -88,12 +88,12 @@ src_configure() { $(crt-use_with libraries) $(crt-use_with tools) $( - $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - </dev/null | grep -q __MINGW64__ - case ${PIPESTATUS[*]} in - '0 0') echo --disable-lib32 --enable-lib64;; - '0 1') echo --enable-lib32 --disable-lib64;; - *) die "failed check for __MINGW64__";; - esac + if use !headers-only; then + # not checking cpp errors due to bug #840662 + $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - </dev/null | grep -q __MINGW64__ \ + && echo --disable-lib32 --enable-lib64 \ + || echo --enable-lib32 --disable-lib64 + fi ) )