From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id EFDC91388C0 for ; Mon, 29 Feb 2016 18:54:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 88D76E07DF; Mon, 29 Feb 2016 18:54:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C196DE07FA for ; Mon, 29 Feb 2016 18:54:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B267D3408DD for ; Mon, 29 Feb 2016 18:54:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8570216C4 for ; Mon, 29 Feb 2016 18:54:07 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1456772040.8e5c9b1561465e616b0e48200de7d6345d793b1c.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/toybox/files/, sys-apps/toybox/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/toybox/files/toybox-0.7.0-includes.patch sys-apps/toybox/files/toybox-0.7.0-parallel-build.patch sys-apps/toybox/files/toybox-0.7.0-sysmacros.patch sys-apps/toybox/toybox-0.7.0.ebuild X-VCS-Directories: sys-apps/toybox/files/ sys-apps/toybox/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 8e5c9b1561465e616b0e48200de7d6345d793b1c X-VCS-Branch: master Date: Mon, 29 Feb 2016 18:54:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0618bb10-7353-440a-9a1a-60ddcec51149 X-Archives-Hash: e34d3b229bb259e96eb081e2ec5e9c92 commit: 8e5c9b1561465e616b0e48200de7d6345d793b1c Author: Mike Frysinger gentoo org> AuthorDate: Mon Feb 29 18:38:34 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Feb 29 18:54:00 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e5c9b15 sys-apps/toybox: misc build fixes from upstream sys-apps/toybox/files/toybox-0.7.0-includes.patch | 24 +++++++++++++ .../toybox/files/toybox-0.7.0-parallel-build.patch | 40 ++++++++++++++++++++++ sys-apps/toybox/files/toybox-0.7.0-sysmacros.patch | 28 +++++++++++++++ sys-apps/toybox/toybox-0.7.0.ebuild | 3 ++ 4 files changed, 95 insertions(+) diff --git a/sys-apps/toybox/files/toybox-0.7.0-includes.patch b/sys-apps/toybox/files/toybox-0.7.0-includes.patch new file mode 100644 index 0000000..9a10e96 --- /dev/null +++ b/sys-apps/toybox/files/toybox-0.7.0-includes.patch @@ -0,0 +1,24 @@ +From 5e1c429eec977cd365f490137ca9dede0caef662 Mon Sep 17 00:00:00 2001 +From: Rob Landley +Date: Fri, 5 Feb 2016 15:13:24 -0600 +Subject: [PATCH] Debian unstable is even more pedantic than previous debian. + +--- + scripts/mktags.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/scripts/mktags.c b/scripts/mktags.c +index 3604260..9c23cf1 100644 +--- a/scripts/mktags.c ++++ b/scripts/mktags.c +@@ -3,6 +3,7 @@ + #include + #include + #include ++#include + + int main(int argc, char *argv[]) + { +-- +2.6.2 + diff --git a/sys-apps/toybox/files/toybox-0.7.0-parallel-build.patch b/sys-apps/toybox/files/toybox-0.7.0-parallel-build.patch new file mode 100644 index 0000000..ed0797c --- /dev/null +++ b/sys-apps/toybox/files/toybox-0.7.0-parallel-build.patch @@ -0,0 +1,40 @@ +fix from upstream for flaky parallel builds + +From e17fbf19c4b48d763041761052e98c2b4ee95487 Mon Sep 17 00:00:00 2001 +From: Rob Landley +Date: Fri, 26 Feb 2016 00:22:15 -0600 +Subject: [PATCH] Switch to $! for make.sh process enumeration. + +--- + scripts/make.sh | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/scripts/make.sh b/scripts/make.sh +index 84dda34..c73a03d 100755 +--- a/scripts/make.sh ++++ b/scripts/make.sh +@@ -264,17 +264,17 @@ do + LFILES="$LFILES $OUT" + [ "$OUT" -nt "$i" ] && continue + do_loudly $BUILD -c $i -o $OUT & ++ PENDING="$PENDING $!" + + # ratelimit to $CPUS many parallel jobs, detecting errors + + while true + do +- PENDING="$(echo $PENDING $(jobs -rp) | tr ' ' '\n' | sort -u)" +- [ $(echo -n "$PENDING" | wc -l) -lt "$CPUS" ] && break; ++ [ $(echo "$PENDING" | wc -w) -lt "$CPUS" ] && break; + +- wait $(echo "$PENDING" | head -n 1) ++ wait $(echo "$PENDING" | awk '{print $1}') + DONE=$(($DONE+$?)) +- PENDING="$(echo "$PENDING" | tail -n +2)" ++ PENDING="$(echo "$PENDING" | sed 's/^ *[0-9]*//')" + done + [ $DONE -ne 0 ] && break + done +-- +2.6.2 + diff --git a/sys-apps/toybox/files/toybox-0.7.0-sysmacros.patch b/sys-apps/toybox/files/toybox-0.7.0-sysmacros.patch new file mode 100644 index 0000000..245ad23 --- /dev/null +++ b/sys-apps/toybox/files/toybox-0.7.0-sysmacros.patch @@ -0,0 +1,28 @@ +From 99e5c17b5fe5a93066e81cc6fcc7ebf386cb6183 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Mon, 29 Feb 2016 13:35:05 -0500 +Subject: [PATCH] include sys/sysmacros.h + +The major/minor macros are defined in sys/sysmacros.h. This has +historically been pulled in implicitly by sys/types.h, but C libs +are moving away from that as they aren't in POSIX. Use the header +directly as defined by BSD systems. +--- + toys.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/toys.h b/toys.h +index 8a29730..5e640a1 100644 +--- a/toys.h ++++ b/toys.h +@@ -34,6 +34,7 @@ + #include + #include + #include ++#include + #include + #include + #include +-- +2.6.2 + diff --git a/sys-apps/toybox/toybox-0.7.0.ebuild b/sys-apps/toybox/toybox-0.7.0.ebuild index 71beeaa..92688c3 100644 --- a/sys-apps/toybox/toybox-0.7.0.ebuild +++ b/sys-apps/toybox/toybox-0.7.0.ebuild @@ -26,6 +26,9 @@ SLOT="0" IUSE="" src_prepare() { + epatch "${FILESDIR}"/${P}-parallel-build.patch + epatch "${FILESDIR}"/${P}-includes.patch + epatch "${FILESDIR}"/${P}-sysmacros.patch epatch_user restore_config .config }