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 7E8DC1581B9 for ; Fri, 03 Oct 2025 22:09:47 +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) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 635FA341EB6 for ; Fri, 03 Oct 2025 22:09:47 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 5C08E1103E2; Fri, 03 Oct 2025 22:09:46 +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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 51BF61103E2 for ; Fri, 03 Oct 2025 22:09:46 +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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 02CBF340D69 for ; Fri, 03 Oct 2025 22:09:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8DAB739B8 for ; Fri, 03 Oct 2025 22:09:44 +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: <1759529253.40eecb02f8258e170a1696db09e1b43d1255baa2.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/createrepo_c/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-arch/createrepo_c/Manifest app-arch/createrepo_c/createrepo_c-1.2.1-r2.ebuild X-VCS-Directories: app-arch/createrepo_c/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 40eecb02f8258e170a1696db09e1b43d1255baa2 X-VCS-Branch: master Date: Fri, 03 Oct 2025 22:09:44 +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: dee8feab-5f33-453b-aa82-f5aed0164a22 X-Archives-Hash: ecf66d88d1840e7d1e1bafe0895a667d commit: 40eecb02f8258e170a1696db09e1b43d1255baa2 Author: Jaco Kroon uls co za> AuthorDate: Tue Sep 16 15:04:02 2025 +0000 Commit: Sam James gentoo org> CommitDate: Fri Oct 3 22:07:33 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40eecb02 app-arch/createrepo_c: 1.2.1-r2 Fixes cmake4 compatibility. Allows for compiling against>=app-arch/rpm-6* Adds USE=doc (doc-c docs). python-docs requires the python shim, and I don't believe that adding that at this point is worth the effort unless someone needs it. Closes: https://bugs.gentoo.org/955466 Closes: https://bugs.gentoo.org/962948 Signed-off-by: Jaco Kroon uls.co.za> Part-of: https://github.com/gentoo/gentoo/pull/43813 Closes: https://github.com/gentoo/gentoo/pull/43813 Signed-off-by: Sam James gentoo.org> app-arch/createrepo_c/Manifest | 2 + app-arch/createrepo_c/createrepo_c-1.2.1-r2.ebuild | 87 ++++++++++++++++++++++ 2 files changed, 89 insertions(+) diff --git a/app-arch/createrepo_c/Manifest b/app-arch/createrepo_c/Manifest index bb395d76402b..5d8d3f517a37 100644 --- a/app-arch/createrepo_c/Manifest +++ b/app-arch/createrepo_c/Manifest @@ -1,2 +1,4 @@ DIST createrepo_c-1.2.0.tar.gz 639118 BLAKE2B 35c9617ebab793a6eb7ad7b03ff074ef4a82739ccb602f07387099df1216f7453dd2710002e8e8383ec0253546eaa19e383895204972732ff877e74eacee0a6f SHA512 e399b635ea008ff833385107f28c6ac8514427c8be4cf45fdb2ed5cca601852c8429730e4160975ba8370ad8a74ee628dc91d1dd7629ed6d5b6fe60008d275ef +DIST createrepo_c-1.2.1-r2-cmake4.patch 10607 BLAKE2B 366ba9be95eb0a2c5057e999638ab17d2f805a34cc5d0e454e7f9d61369183a54b1670fd6374ca0f2449b665086d48115c64b47e3616adf270cd437474b840cd SHA512 3d61b175e1d70661b1971963ac6977f75c21355019aa78c3b6c6ff1f230078047d8b2d045017f640cefd88f6bc19f7da77b5e7c5350f8d5689c71e21a4878f00 +DIST createrepo_c-1.2.1-r2-rpm6compat.patch 1993 BLAKE2B 50d6b21c0129df913ea5740067dd901a3633a3dc10c025e163d0f0fd1dd3e941c13139d92a94908bb33abd61994ea6b8786d8bc1f1bfbc889846aa7ed173cc57 SHA512 cba117543a31a36ec0bae14e8e7c629e28e6081d13d2f7ec48c38dd1d9a0f570c5986c19d14f6cc4ca28dffc8cc3cbb5fcd63f7e5fe01a26c31091bf7fb8c1e6 DIST createrepo_c-1.2.1.tar.gz 639122 BLAKE2B 6705fd56f72934eef88b31fae725085c91b6b14a601d0f0908ed9307d72eabf17fd2258f13eeadeb7234b31d08a61eab2fc75c4b75bf8ea75ee69442715277bc SHA512 3acd54e5848ad3995d8b140b9d338fb8588c46d163e029b7203e49b3ff1a9984b55d403c3a5c590be23ebb5c5c74de369883eb51bba6fb51e8b247f9f10ab383 diff --git a/app-arch/createrepo_c/createrepo_c-1.2.1-r2.ebuild b/app-arch/createrepo_c/createrepo_c-1.2.1-r2.ebuild new file mode 100644 index 000000000000..40f2fc76220b --- /dev/null +++ b/app-arch/createrepo_c/createrepo_c-1.2.1-r2.ebuild @@ -0,0 +1,87 @@ +# Copyright 2020-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="C implementation of createrepo" +HOMEPAGE="https://github.com/rpm-software-management/createrepo_c" +if [[ ${PV} = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/rpm-software-management/createrepo_c.git" +else + SRC_URI=" + https://github.com/rpm-software-management/createrepo_c/archive/${PV}.tar.gz -> ${P}.tar.gz + https://github.com/rpm-software-management/createrepo_c/commit/4e37bc582b1673ff767dbd0b570ef1c8871d3e8c.patch + -> ${PN}-1.2.1-r2-rpm6compat.patch + https://github.com/rpm-software-management/createrepo_c/commit/89fa02828cdaf1c710c38bde5fcbcf59538a9cce.patch + -> ${PN}-1.2.1-r2-cmake4.patch + " + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" + +IUSE="doc legacy test zstd" +RESTRICT="!test? ( test )" + +BDEPEND="doc? ( + app-text/doxygen +)" + +DEPEND=" + app-arch/bzip2:= + app-arch/drpm + app-arch/rpm + app-arch/xz-utils + app-arch/zchunk + app-arch/zstd:= + >=dev-db/sqlite-3.6.18:3 + dev-libs/glib:2 + dev-libs/libxml2:= + dev-libs/openssl:= + net-misc/curl + sys-apps/file + sys-libs/libmodulemd + sys-libs/zlib:= +" + +RDEPEND="${DEPEND}" + +PATCHES=( + "${DISTDIR}/createrepo_c-1.2.1-r2-cmake4.patch" + "${DISTDIR}/createrepo_c-1.2.1-r2-rpm6compat.patch" +) + +src_configure() { + local mycmakeargs=( + -DENABLE_DRPM=ON + # As best I can tell, this enables distribution as a wheel. No need for this on gentoo! + -DENABLE_PYTHON=OFF + # Upstream enables some 'Legacy' stuff by default, let's put that behind a USE flag + -DENABLE_LEGACY_WEAKDEPS=$(usex legacy ON OFF) + -DWITH_LEGACY_HASHES=$(usex legacy ON OFF) + -DWITH_LIBMODULEMD=ON + -DWITH_ZCHUNK=ON + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + # Tests have a magic target! + use test && cmake_src_compile tests + use doc && cmake_src_compile doc-c +} + +src_test() { + "${S}"_build/tests/run_tests.sh || die "Failed to run C library tests" +} + +src_install() { + cmake_src_install + use doc && dodoc -r "${BUILD_DIR}/doc/html" +}