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 AA84715803E for ; Sun, 31 Dec 2023 02:45:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 65FCB2BC026; Sun, 31 Dec 2023 02:45:34 +0000 (UTC) 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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 441622BC026 for ; Sun, 31 Dec 2023 02:45:34 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 339B733D9AD for ; Sun, 31 Dec 2023 02:45:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9451B14BD for ; Sun, 31 Dec 2023 02:45:31 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1703990444.d539f9db1a52840e4c09c28386e865ada9f3e078.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/mtd-utils/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/mtd-utils/mtd-utils-2.1.6-r2.ebuild X-VCS-Directories: sys-fs/mtd-utils/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: d539f9db1a52840e4c09c28386e865ada9f3e078 X-VCS-Branch: master Date: Sun, 31 Dec 2023 02:45:31 +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: 2e9fed5e-6603-4f90-894b-c8b4c15be464 X-Archives-Hash: 9a721c0e9c74f252ab813e7f2e965b1e commit: d539f9db1a52840e4c09c28386e865ada9f3e078 Author: Michael Mair-Keimberger levelnine at> AuthorDate: Thu Dec 28 20:40:56 2023 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Dec 31 02:40:44 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d539f9db sys-fs/mtd-utils: fix calling ar directly, bug #913610 Signed-off-by: Michael Mair-Keimberger levelnine.at> Closes: https://bugs.gentoo.org/913610 Closes: https://github.com/gentoo/gentoo/pull/34525 Signed-off-by: Conrad Kostecki gentoo.org> sys-fs/mtd-utils/mtd-utils-2.1.6-r2.ebuild | 58 ++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/sys-fs/mtd-utils/mtd-utils-2.1.6-r2.ebuild b/sys-fs/mtd-utils/mtd-utils-2.1.6-r2.ebuild new file mode 100644 index 000000000000..b3cd6fa4e221 --- /dev/null +++ b/sys-fs/mtd-utils/mtd-utils-2.1.6-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="MTD userspace tools (NFTL, JFFS2, NAND, FTL, UBI)" +HOMEPAGE="https://git.infradead.org/?p=mtd-utils.git;a=summary" +SRC_URI="https://infraroot.at/pub/mtd/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="+lzo +ssl test xattr +zstd" +RESTRICT="!test? ( test )" + +DEPEND=" + sys-apps/util-linux:= + sys-libs/zlib:= + lzo? ( dev-libs/lzo:= ) + ssl? ( dev-libs/openssl:0= ) + xattr? ( sys-apps/acl ) + zstd? ( app-arch/zstd:= ) +" +RDEPEND="${DEPEND}" +BDEPEND="test? ( dev-util/cmocka )" + +DOCS=( jffsX-utils/device_table.txt ubifs-utils/mkfs.ubifs/README ) + +src_prepare() { + default + sed -i '/if test.*then/s: == : = :' configure || die +} + +src_configure() { + # --enable-tests is for test programs that are installed + local myeconfargs=( + --enable-tests + $(use_enable test unit-tests) + $(use_with lzo) + $(use_with ssl ubifs) + $(use_with xattr) + $(use_with zstd) + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + default + doman \ + jffsX-utils/mkfs.jffs2.1 \ + ubi-utils/ubinize.8 +}