public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-libs/librepo/files/, dev-libs/librepo/
Date: Tue, 25 Jun 2024 09:52:05 +0000 (UTC)	[thread overview]
Message-ID: <1719120719.c95cd3e4c0ff2acb0f8d07e300a93600315e06d1.davidroman@gentoo> (raw)

commit:     c95cd3e4c0ff2acb0f8d07e300a93600315e06d1
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Sun Jun 23 05:31:15 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sun Jun 23 05:31:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c95cd3e4

dev-libs/librepo: add 1.17.2

Closes: https://bugs.gentoo.org/928159
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 dev-libs/librepo/Manifest                          |  1 +
 .../files/librepo-1.17.2-verbose-error.patch       | 13 +++++
 dev-libs/librepo/librepo-1.17.2.ebuild             | 57 ++++++++++++++++++++++
 3 files changed, 71 insertions(+)

diff --git a/dev-libs/librepo/Manifest b/dev-libs/librepo/Manifest
index 46ab6ffcf..44a8b3daf 100644
--- a/dev-libs/librepo/Manifest
+++ b/dev-libs/librepo/Manifest
@@ -1 +1,2 @@
 DIST librepo-1.17.1.tar.gz 840461 BLAKE2B 88dbe5fb77ed6aa6ca10342832642531d8c239c4c09248b01b0e83d1b7a9546d2d59f778f51527c9ca53a1c99c79fa518b3b741a8d220fee337e38479aa5e7d6 SHA512 f0b669ffaa4b110f2c8eb24138b8300224ef670a18965da6db31faad9de1185991d1a74eb60e9f86b57d9c3ec5df7f230bc49a4d5ce87553ba845e1ac3f1be7e
+DIST librepo-1.17.2.tar.gz 840645 BLAKE2B 89d7b222131a89177802a4ef9c6d22a65059c985a664871a8d2cbe2ab7c8edfee8e7489e2370a24935c57e41456211eb384ff4a063477ea1f9dc0eff15344441 SHA512 5b6197e7a3fc8b5b11405c6106116309960d108073c71eb04d894e122b1611b1b5c427a9b1daad852aaf3cbbd1811d9bf5e8f664bde18eacfd432b661be8f006

diff --git a/dev-libs/librepo/files/librepo-1.17.2-verbose-error.patch b/dev-libs/librepo/files/librepo-1.17.2-verbose-error.patch
new file mode 100644
index 000000000..bb968cbf4
--- /dev/null
+++ b/dev-libs/librepo/files/librepo-1.17.2-verbose-error.patch
@@ -0,0 +1,13 @@
+Make a test failure verbose.
+https://bugs.gentoo.org/928159
+--- a/tests/test_checksum.c
++++ b/tests/test_checksum.c
+@@ -141,7 +141,7 @@ START_TEST(test_cached_checksum_matches)
+             goto exit_label;
+         }
+         // Any other errno means fail
+-        ck_assert(attr_ret != -1);
++        ck_assert_msg(attr_ret == -1, "getxattr failed: %s", strerror(errno));
+     } else {
+         buf[attr_ret] = 0;
+         ck_assert_str_eq(buf, expected);

diff --git a/dev-libs/librepo/librepo-1.17.2.ebuild b/dev-libs/librepo/librepo-1.17.2.ebuild
new file mode 100644
index 000000000..d3a84b635
--- /dev/null
+++ b/dev-libs/librepo/librepo-1.17.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Repodata downloading library"
+HOMEPAGE="https://github.com/rpm-software-management/librepo"
+SRC_URI="https://github.com/rpm-software-management/librepo/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc gpgme test +zchunk"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	>=dev-libs/glib-2.66:2
+	dev-libs/libxml2
+	dev-libs/openssl:=
+	>=net-misc/curl-7.52.0
+	gpgme? ( app-crypt/gpgme:1= )
+	!gpgme? ( >=app-arch/rpm-4.18.0 )
+	zchunk? ( >=app-arch/zchunk-0.9.11 )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	virtual/pkgconfig
+	doc? ( app-text/doxygen )
+	test? ( dev-libs/check )
+"
+
+PATCHES=(
+	# make a test failure verbose, bug #928159
+	"${FILESDIR}/${P}-verbose-error.patch"
+)
+
+src_prepare() {
+	cmake_src_prepare
+
+	# respect temp directory during tests, bug #924463
+	sed -i "s|/tmp/|${T}/|" tests/testsys.h || die
+}
+
+src_configure() {
+	local mycmakeargs=(
+		-DENABLE_EXAMPLES=OFF
+		-DENABLE_PYTHON=OFF
+		-DENABLE_SELINUX=OFF
+		-DUSE_GPGME=$(usex gpgme)
+		-DENABLE_DOCS=$(usex doc)
+		-DENABLE_TESTS=$(usex test)
+		-DWITH_ZCHUNK=$(usex zchunk)
+	)
+	cmake_src_configure
+}


             reply	other threads:[~2024-06-25  9:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-25  9:52 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-05 16:07 [gentoo-commits] repo/proj/guru:master commit in: dev-libs/librepo/files/, dev-libs/librepo/ David Roman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1719120719.c95cd3e4c0ff2acb0f8d07e300a93600315e06d1.davidroman@gentoo \
    --to=davidroman96@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox