sys-apps/util-linux: Make tests honor MAKEOPTS; Fix uuidd test
authorThomas Deutschmann <whissi@gentoo.org>
Wed, 7 Mar 2018 02:54:55 +0000 (03:54 +0100)
committerThomas Deutschmann <whissi@gentoo.org>
Wed, 7 Mar 2018 02:55:18 +0000 (03:55 +0100)
Closes: https://bugs.gentoo.org/593304
Closes: https://bugs.gentoo.org/649590
Package-Manager: Portage-2.3.24, Repoman-2.3.6

sys-apps/util-linux/util-linux-2.30.2.ebuild
sys-apps/util-linux/util-linux-2.31-r1.ebuild
sys-apps/util-linux/util-linux-2.31.1.ebuild
sys-apps/util-linux/util-linux-2.32_rc2.ebuild
sys-apps/util-linux/util-linux-9999.ebuild

index 80a2fbe2a628ba96950adbfff382d29ca319a032..09c71996e9029a43b968034bcb472e97488e5c3d 100644 (file)
@@ -6,7 +6,7 @@ EAPI=6
 PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
 
 inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 \
-       pam python-single-r1 multilib-minimal systemd
+       pam python-single-r1 multilib-minimal multiprocessing systemd
 
 MY_PV="${PV/_/-}"
 MY_P="${PN}-${MY_PV}"
@@ -68,15 +68,22 @@ pkg_setup() {
 src_prepare() {
        default
 
+       # Prevent uuidd test failure due to socket path limit. #593304
+       sed -i \
+               -e "s|UUIDD_SOCKET=\"\$(mktemp -u \"\${TS_OUTDIR}/uuiddXXXXXXXXXXXXX\")\"|UUIDD_SOCKET=\"\$(mktemp -u \"${T}/uuiddXXXXXXXXXXXXX.sock\")\"|g" \
+               tests/ts/uuid/uuidd || die "Failed to fix uuidd test"
+
        if [[ ${PV} == 9999 ]] ; then
                po/update-potfiles
                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
 }
 
@@ -156,7 +163,7 @@ multilib_src_compile() {
 }
 
 multilib_src_test() {
-       multilib_is_native_abi && emake check
+       multilib_is_native_abi && emake check TS_OPTS="--parallel=$(makeopts_jobs) --nonroot"
 }
 
 multilib_src_install() {
index 963e973d2779ca19941cb56de954ff5a19b29807..db7274a9a615e3f37ed9368a14bd1172c58070d0 100644 (file)
@@ -6,14 +6,14 @@ EAPI=6
 PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
 
 inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 \
-       pam python-single-r1 multilib-minimal systemd
+       pam python-single-r1 multilib-minimal multiprocessing systemd
 
 MY_PV="${PV/_/-}"
 MY_P="${PN}-${MY_PV}"
 
 if [[ ${PV} == 9999 ]] ; then
        inherit git-r3 autotools
-       EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
+       EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
 else
        [[ "${PV}" = *_rc* ]] || \
        KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
@@ -73,15 +73,22 @@ pkg_setup() {
 src_prepare() {
        default
 
+       # Prevent uuidd test failure due to socket path limit. #593304
+       sed -i \
+               -e "s|UUIDD_SOCKET=\"\$(mktemp -u \"\${TS_OUTDIR}/uuiddXXXXXXXXXXXXX\")\"|UUIDD_SOCKET=\"\$(mktemp -u \"${T}/uuiddXXXXXXXXXXXXX.sock\")\"|g" \
+               tests/ts/uuid/uuidd || die "Failed to fix uuidd test"
+
        if [[ ${PV} == 9999 ]] ; then
                po/update-potfiles
                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
 }
 
@@ -161,7 +168,7 @@ multilib_src_compile() {
 }
 
 multilib_src_test() {
-       multilib_is_native_abi && emake check
+       multilib_is_native_abi && emake check TS_OPTS="--parallel=$(makeopts_jobs) --nonroot"
 }
 
 multilib_src_install() {
index ee5b6efcc218f3110296aa5857a015109d533933..41dd4c18eec5dbc3663ebfd2000557cf352bd8e0 100644 (file)
@@ -6,14 +6,14 @@ EAPI=6
 PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
 
 inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 \
-       pam python-single-r1 multilib-minimal systemd
+       pam python-single-r1 multilib-minimal multiprocessing systemd
 
 MY_PV="${PV/_/-}"
 MY_P="${PN}-${MY_PV}"
 
 if [[ ${PV} == 9999 ]] ; then
        inherit git-r3 autotools
-       EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
+       EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
 else
        [[ "${PV}" = *_rc* ]] || \
        KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
@@ -69,15 +69,22 @@ pkg_setup() {
 src_prepare() {
        default
 
+       # Prevent uuidd test failure due to socket path limit. #593304
+       sed -i \
+               -e "s|UUIDD_SOCKET=\"\$(mktemp -u \"\${TS_OUTDIR}/uuiddXXXXXXXXXXXXX\")\"|UUIDD_SOCKET=\"\$(mktemp -u \"${T}/uuiddXXXXXXXXXXXXX.sock\")\"|g" \
+               tests/ts/uuid/uuidd || die "Failed to fix uuidd test"
+
        if [[ ${PV} == 9999 ]] ; then
                po/update-potfiles
                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
 }
 
@@ -157,7 +164,7 @@ multilib_src_compile() {
 }
 
 multilib_src_test() {
-       multilib_is_native_abi && emake check
+       multilib_is_native_abi && emake check TS_OPTS="--parallel=$(makeopts_jobs) --nonroot"
 }
 
 multilib_src_install() {
index 9b414fd08b9a8e81eb0ad4ccb1b5448e824a1463..a6b7310e742c970ff9e29378513bad5cc89b38c6 100644 (file)
@@ -6,7 +6,7 @@ EAPI=6
 PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
 
 inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 \
-       pam python-single-r1 multilib-minimal systemd
+       pam python-single-r1 multilib-minimal multiprocessing systemd
 
 MY_PV="${PV/_/-}"
 MY_P="${PN}-${MY_PV}"
@@ -69,15 +69,22 @@ pkg_setup() {
 src_prepare() {
        default
 
+       # Prevent uuidd test failure due to socket path limit. #593304
+       sed -i \
+               -e "s|UUIDD_SOCKET=\"\$(mktemp -u \"\${TS_OUTDIR}/uuiddXXXXXXXXXXXXX\")\"|UUIDD_SOCKET=\"\$(mktemp -u \"${T}/uuiddXXXXXXXXXXXXX.sock\")\"|g" \
+               tests/ts/uuid/uuidd || die "Failed to fix uuidd test"
+
        if [[ ${PV} == 9999 ]] ; then
                po/update-potfiles
                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
 }
 
@@ -157,7 +164,7 @@ multilib_src_compile() {
 }
 
 multilib_src_test() {
-       multilib_is_native_abi && emake check
+       multilib_is_native_abi && emake check TS_OPTS="--parallel=$(makeopts_jobs) --nonroot"
 }
 
 multilib_src_install() {
index fd77cb1a7723cba75d8693d9f74f4f51d961e323..6fcbc94b0787c0fedfdc47b1bfa4850ca57200d4 100644 (file)
@@ -6,7 +6,7 @@ EAPI=6
 PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
 
 inherit toolchain-funcs libtool flag-o-matic bash-completion-r1 \
-       pam python-single-r1 multilib-minimal systemd
+       pam python-single-r1 multilib-minimal multiprocessing systemd
 
 MY_PV="${PV/_/-}"
 MY_P="${PN}-${MY_PV}"
@@ -68,15 +68,22 @@ pkg_setup() {
 src_prepare() {
        default
 
+       # Prevent uuidd test failure due to socket path limit. #593304
+       sed -i \
+               -e "s|UUIDD_SOCKET=\"\$(mktemp -u \"\${TS_OUTDIR}/uuiddXXXXXXXXXXXXX\")\"|UUIDD_SOCKET=\"\$(mktemp -u \"${T}/uuiddXXXXXXXXXXXXX.sock\")\"|g" \
+               tests/ts/uuid/uuidd || die "Failed to fix uuidd test"
+
        if [[ ${PV} == 9999 ]] ; then
                po/update-potfiles
                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
 }
 
@@ -156,7 +163,7 @@ multilib_src_compile() {
 }
 
 multilib_src_test() {
-       multilib_is_native_abi && emake check
+       multilib_is_native_abi && emake check TS_OPTS="--parallel=$(makeopts_jobs) --nonroot"
 }
 
 multilib_src_install() {