From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5CF7015800F for ; Sun, 1 Jan 2023 21:10:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B6A4E08FB; Sun, 1 Jan 2023 21:10:03 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 93268E08CA for ; Sun, 1 Jan 2023 21:10:02 +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 B480F335C5D for ; Sun, 1 Jan 2023 21:10:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4D05562F for ; Sun, 1 Jan 2023 21:10:00 +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: <1672607314.cd3b6b4a0bb16351f76c857f6beb0b9b95dc6565.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-calculators/bc-gh/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-calculators/bc-gh/Manifest sci-calculators/bc-gh/bc-gh-6.2.2.ebuild sci-calculators/bc-gh/metadata.xml X-VCS-Directories: sci-calculators/bc-gh/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: cd3b6b4a0bb16351f76c857f6beb0b9b95dc6565 X-VCS-Branch: master Date: Sun, 1 Jan 2023 21:10:00 +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: 1cdd7b10-616f-4416-92d8-65b043f36f6a X-Archives-Hash: 454200133e180c2edd5a391368bd4b2d commit: cd3b6b4a0bb16351f76c857f6beb0b9b95dc6565 Author: Gavin Howard yzena com> AuthorDate: Sun Jan 1 05:05:20 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sun Jan 1 21:08:34 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd3b6b4a sci-calculators/bc-gh: update to 6.2.2 This commit does two more things besides just update: * The MissingRemoteId pkgcheck warning is resolved by adding the proper remote ID to metadata.xml. * The `readline` and `libedit` USE flags are added since this bc now supports both as options. * The src_test() function was added to avoid crashes found with the Arch package. There are also some style fixes, as requested. Signed-off-by: Gavin Howard yzena.com> Closes: https://github.com/gentoo/gentoo/pull/28910 Signed-off-by: Sam James gentoo.org> sci-calculators/bc-gh/Manifest | 1 + sci-calculators/bc-gh/bc-gh-6.2.2.ebuild | 75 ++++++++++++++++++++++++++++++++ sci-calculators/bc-gh/metadata.xml | 1 + 3 files changed, 77 insertions(+) diff --git a/sci-calculators/bc-gh/Manifest b/sci-calculators/bc-gh/Manifest index 3c55a944627a..3d0aae049524 100644 --- a/sci-calculators/bc-gh/Manifest +++ b/sci-calculators/bc-gh/Manifest @@ -1 +1,2 @@ DIST bc-6.1.1.tar.xz 455456 BLAKE2B 7945ac623740abd9cbd894c20b8a03006caf64d2ce9770ade930d912c52b4e29b107b524d4a95ebea99e31921b7940e39e1afdeec837b4a03d3ed4e11b9f517b SHA512 0e7fb4d4223ace8ba5c1961cc0d7eba475174f92b75529fde64446b5d80db5729f848fd95507570711d2b8928996c87e837e926d31028f32e3f97cad47567d39 +DIST bc-6.2.2.tar.xz 456672 BLAKE2B 02a6b9012f3b2d6b87be9112c6ccaea84bb121b1de4ebe1276b2151ff24ff445de0cf5a591c2802069e8c9a69c29ca4985a52117761cbb40bc129b70c6f98a49 SHA512 11389ebd522dddb4b255856452d4ff851915331e36682899e946a3eee46e6a3b7ac7d28a0be8b86fc79c230f8ea3d8f335a4722a0c49daa68c51b6c667e1d1fe diff --git a/sci-calculators/bc-gh/bc-gh-6.2.2.ebuild b/sci-calculators/bc-gh/bc-gh-6.2.2.ebuild new file mode 100644 index 000000000000..3296ff1b6942 --- /dev/null +++ b/sci-calculators/bc-gh/bc-gh-6.2.2.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_P="bc-${PV}" +DESCRIPTION="Implementation of POSIX bc with GNU extensions" +HOMEPAGE=" + https://git.yzena.com/gavin/bc/ + https://github.com/gavinhoward/bc/ +" +SRC_URI=" + https://github.com/gavinhoward/bc/releases/download/${PV}/${MY_P}.tar.xz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="libedit readline" + +DEPEND=" + !readline? ( + libedit? ( dev-libs/libedit:= ) + ) + readline? ( + sys-libs/readline:= + sys-libs/ncurses:= + ) +" +RDEPEND=" + ${DEPEND} +" + +src_configure() { + local myconf=( + # GNU and BSD bc's have slightly different behavior. This bc can act + # like both, changing at runtime with environment variables, but it + # needs defaults, which can be set at compile time. This option sets all + # of the defaults to match the GNU bc/dc since it's common on Linux. + -pGNU + # A lot of test results are generated first by a bc compatible with the + # GNU bc. If there is no GNU bc installed, then those tests should be + # skipped. That's what this option does. Without it, we would have a + # dependency cycle. Those tests are super long, anyway. + -G + # Disables the automatic stripping of binaries. + -T + # Enables installing all locales, which is important for packages. + -l + # Disables some "problematic" tests that need specific options on Linux + # to not trigger the OOM killer because malloc() lies. + -P + ) + if use readline ; then + myconf+=( -r ) + elif use libedit ; then + myconf+=( -e ) + fi + + local -x EXECSUFFIX="-gh" + local -x PREFIX="${EPREFIX}/usr" + ./configure.sh "${myconf[@]}" || die +} + +src_test() { + # This is to fix a bug encountered on Arch. It is to ensure we don't get + # segfaults on `make check` when the error messages change because the error + # messages are passed to printf(); they have format specifiers. With these + # env vars, the internal error messages are used, instead of the installed + # locales, which might be different since the new locale files are not + # installed yet. (It is impossible to use uninstalled locales because of the + # poor design of POSIX locales.) + env LANG=C LC_ALL=C make check +} diff --git a/sci-calculators/bc-gh/metadata.xml b/sci-calculators/bc-gh/metadata.xml index cf7960fcff59..b16dce8c90eb 100644 --- a/sci-calculators/bc-gh/metadata.xml +++ b/sci-calculators/bc-gh/metadata.xml @@ -16,6 +16,7 @@ https://git.yzena.com/gavin/bc https://git.yzena.com/gavin/bc/src/branch/master/manuals + gavinhoward/bc An implementation of POSIX bc and Unix dc with GNU extensions and some of