sys-apps/util-linux: Fixed cross-compilation
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 10 Jan 2020 11:21:32 +0000 (12:21 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Fri, 10 Jan 2020 11:21:49 +0000 (12:21 +0100)
Closes: https://bugs.gentoo.org/654034
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-apps/util-linux/util-linux-2.33.2.ebuild
sys-apps/util-linux/util-linux-2.34-r3.ebuild
sys-apps/util-linux/util-linux-2.35_rc2.ebuild
sys-apps/util-linux/util-linux-9999.ebuild

index 1a720970cc0e85d4236b7b99f5782bb9bf53acef..8e0e60b9c32c3fa2ce49675c92e9ac7982f86caf 100644 (file)
@@ -92,12 +92,6 @@ src_prepare() {
                eautoreconf
        fi
 
-       # Undo bad ncurses handling by upstream. #601530
-       sed -i -E \
-               -e '/NCURSES_/s:(ncursesw?)[56]-config:$PKG_CONFIG \1:' \
-               -e 's:(ncursesw?)[56]-config --version:$PKG_CONFIG --exists --print-errors \1:' \
-               configure || die
-
        elibtoolize
 }
 
@@ -143,6 +137,10 @@ multilib_src_configure() {
        export ac_cv_header_security_pam_misc_h=$(multilib_native_usex pam) #485486
        export ac_cv_header_security_pam_appl_h=$(multilib_native_usex pam) #545042
 
+       # Undo bad ncurses handling by upstream. Fall back to pkg-config. #601530
+       export NCURSES6_CONFIG=false NCURSES5_CONFIG=false
+       export NCURSESW6_CONFIG=false NCURSESW5_CONFIG=false
+
        local myeconfargs=(
                --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin"
                --with-bashcompletiondir="$(get_bashcompdir)"
index 69560039913995028cebcd4d8e5113b0b89fad96..18ce205106347d16fa9a8554b30e3edb6dfd16e8 100644 (file)
@@ -91,12 +91,6 @@ src_prepare() {
                eautoreconf
        fi
 
-       # Undo bad ncurses handling by upstream. #601530
-       sed -i -E \
-               -e '/NCURSES_/s:(ncursesw?)[56]-config:$PKG_CONFIG \1:' \
-               -e 's:(ncursesw?)[56]-config --version:$PKG_CONFIG --exists --print-errors \1:' \
-               configure || die
-
        elibtoolize
 }
 
@@ -143,6 +137,10 @@ multilib_src_configure() {
        export ac_cv_header_security_pam_misc_h=$(multilib_native_usex pam) #485486
        export ac_cv_header_security_pam_appl_h=$(multilib_native_usex pam) #545042
 
+       # Undo bad ncurses handling by upstream. Fall back to pkg-config. #601530
+       export NCURSES6_CONFIG=false NCURSES5_CONFIG=false
+       export NCURSESW6_CONFIG=false NCURSESW5_CONFIG=false
+
        # configure args shared by python and non-python builds
        local commonargs=(
                --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin"
index cfaef77232466710dd894ca17f936e533c1bfc2e..f1759d4eb6c309f8daaf49a7b9b293f6bae56cb3 100644 (file)
@@ -92,12 +92,6 @@ src_prepare() {
                eautoreconf
        fi
 
-       # Undo bad ncurses handling by upstream. #601530
-       sed -i -E \
-               -e '/NCURSES_/s:(ncursesw?)[56]-config:$PKG_CONFIG \1:' \
-               -e 's:(ncursesw?)[56]-config --version:$PKG_CONFIG --exists --print-errors \1:' \
-               configure || die
-
        elibtoolize
 }
 
@@ -144,6 +138,10 @@ multilib_src_configure() {
        export ac_cv_header_security_pam_misc_h=$(multilib_native_usex pam) #485486
        export ac_cv_header_security_pam_appl_h=$(multilib_native_usex pam) #545042
 
+       # Undo bad ncurses handling by upstream. Fall back to pkg-config. #601530
+       export NCURSES6_CONFIG=false NCURSES5_CONFIG=false
+       export NCURSESW6_CONFIG=false NCURSESW5_CONFIG=false
+
        # configure args shared by python and non-python builds
        local commonargs=(
                --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin"
index cfaef77232466710dd894ca17f936e533c1bfc2e..f1759d4eb6c309f8daaf49a7b9b293f6bae56cb3 100644 (file)
@@ -92,12 +92,6 @@ src_prepare() {
                eautoreconf
        fi
 
-       # Undo bad ncurses handling by upstream. #601530
-       sed -i -E \
-               -e '/NCURSES_/s:(ncursesw?)[56]-config:$PKG_CONFIG \1:' \
-               -e 's:(ncursesw?)[56]-config --version:$PKG_CONFIG --exists --print-errors \1:' \
-               configure || die
-
        elibtoolize
 }
 
@@ -144,6 +138,10 @@ multilib_src_configure() {
        export ac_cv_header_security_pam_misc_h=$(multilib_native_usex pam) #485486
        export ac_cv_header_security_pam_appl_h=$(multilib_native_usex pam) #545042
 
+       # Undo bad ncurses handling by upstream. Fall back to pkg-config. #601530
+       export NCURSES6_CONFIG=false NCURSES5_CONFIG=false
+       export NCURSESW6_CONFIG=false NCURSESW5_CONFIG=false
+
        # configure args shared by python and non-python builds
        local commonargs=(
                --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin"