dev-libs/librepo: add 1.17.2

Closes: https://bugs.gentoo.org/928159
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono 2024-06-23 14:31:15 +09:00
parent 11bf4a4c02
commit c95cd3e4c0
No known key found for this signature in database
GPG Key ID: 91CA2604719DDA61
3 changed files with 71 additions and 0 deletions

View File

@ -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

View File

@ -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);

View File

@ -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
}