From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 51CDF15807A for ; Thu, 05 Jun 2025 11:22:25 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 1C06B34317B for ; Thu, 05 Jun 2025 11:22:25 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id B50F7110480; Thu, 05 Jun 2025 11:22:16 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id AE93E110480 for ; Thu, 05 Jun 2025 11:22:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6A3DF343127 for ; Thu, 05 Jun 2025 11:22:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C415A2916 for ; Thu, 05 Jun 2025 11:22:13 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1749122525.4a2587ce1a5e93a1066a9d9d9dafbe3846424977.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/isolated-functions.sh X-VCS-Directories: bin/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4a2587ce1a5e93a1066a9d9d9dafbe3846424977 X-VCS-Branch: master Date: Thu, 05 Jun 2025 11:22:13 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f4e0ce55-7fc7-4de9-9557-a1d3ecd7b9af X-Archives-Hash: c4c8df23a5cfc48be93b7bc51a474d89 commit: 4a2587ce1a5e93a1066a9d9d9dafbe3846424977 Author: Kerin Millar plushkava net> AuthorDate: Mon Jun 2 10:17:30 2025 +0000 Commit: Sam James gentoo org> CommitDate: Thu Jun 5 11:22:05 2025 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=4a2587ce isolated-functions.sh: have ___makeopts_jobs() strip leading zeroes Ensure that leading zeroes are stripped from the value printed by the __makeopts_jobs() function, thus helping to avoid the 'August' problem. $ jobs=08 $ echo "$(( jobs + 1 ))" -bash: 08: value too great for base (error token is "08") Signed-off-by: Kerin Millar plushkava.net> Signed-off-by: Sam James gentoo.org> bin/isolated-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 35b0e1cd2c..7760ba717f 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -499,7 +499,7 @@ ___makeopts_jobs() { ere='.*[[:space:]](-[^j]*j[[:space:]]*|--jobs(=|[[:space:]]+))([0-9]+)[[:space:]]' if [[ " ${MAKEOPTS} " =~ $ere ]]; then - jobs=${BASH_REMATCH[3]} + jobs=$(( 10#${BASH_REMATCH[3]} )) elif jobs=$({ getconf _NPROCESSORS_ONLN || sysctl -n hw.ncpu; } 2>/dev/null); then : else