• [gentoo-dev] [PATCH 1/2] distutils-r1.eclass: workaround cython bug for

    From Sam James@21:1/5 to All on Wed Dec 13 04:50:01 2023
    Pass -Wno-error=incompatible-pointer-types for now to avoid many dupes for
    the same cython bug.

    Bug: https://github.com/cython/cython/issues/2747
    Bug: https://bugs.gentoo.org/918983
    Bug: https://bugs.gentoo.org/919261
    Bug: https://bugs.gentoo.org/919277
    Signed-off-by: Sam James <sam@gentoo.org>
    ---
    eclass/distutils-r1.eclass | 5 +++++
    1 file changed, 5 insertions(+)

    diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
    index 0a7b18e4a1a4f..6d2640b295983 100644
    --- a/eclass/distutils-r1.eclass
    +++ b/eclass/distutils-r1.eclass
    @@ -1806,6 +1806,11 @@ distutils-r1_run_phase() {
    tc-export AR CC CPP CXX

    if [[ ${DISTUTILS_EXT} ]]; then
    + if [[ ${BDEPEND} == *dev-python/cython* ]] ; then
    + # Workaround for https://github.com/cython/cython/issues/2747 (bug #918983)
    + local -x CFLAGS="${CFLAGS} $(test-flags-CC -Wno-error=incompatible-pointer-types)"
    + fi
    +
    local -x CPPFLAGS="${CPPFLAGS} $(usex debug '-UNDEBUG' '-DNDEBUG')"
    # always generate .c files from .pyx files to ensure we get latest
    # bug fixes from Cython (this works only when setup.py is using --
    2.43.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sam James@21:1/5 to All on Wed Dec 13 04:50:01 2023
    We set DEPEND and IUSE based on it.

    Signed-off-by: Sam James <sam@gentoo.org>
    ---
    eclass/distutils-r1.eclass | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
    index 6d2640b295983..0a9815f2d4591 100644
    --- a/eclass/distutils-r1.eclass
    +++ b/eclass/distutils-r1.eclass
    @@ -50,6 +50,7 @@ case ${EAPI} in
    esac

    # @ECLASS_VARIABLE: DISTUTILS_EXT
    +# @PRE_INHERIT
    # @DEFAULT_UNSET
    # @DESCRIPTION:
    # Set this variable to a non-null value if the package (possibly
    --
    2.43.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)