librdf_rasqal: remove pcre

Upstream declared the fallback to `regex.h` sufficient for functionality [1].

Fedora also disabled pcre for rasqal back in 2023 [2].

[1] https://github.com/dajobe/rasqal/issues/12#issuecomment-1713075496
[2] https://src.fedoraproject.org/rpms/rasqal/c/89316c895ce79ce3441686eb45f9a8b3943b0933?branch=rawhide
This commit is contained in:
Grimmauld
2025-05-11 13:14:10 +02:00
parent e30007f5a6
commit 759e3dfeb0
+16 -5
View File
@@ -5,17 +5,17 @@
librdf_raptor2,
gmp,
pkg-config,
pcre,
libxml2,
perl,
testers,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "rasqal";
version = "0.9.33";
src = fetchurl {
url = "http://download.librdf.org/source/rasqal-${version}.tar.gz";
url = "http://download.librdf.org/source/rasqal-${finalAttrs.version}.tar.gz";
sha256 = "0z6rrwn4jsagvarg8d5zf0j352kjgi33py39jqd29gbhcnncj939";
};
@@ -23,18 +23,28 @@ stdenv.mkDerivation rec {
buildInputs = [
gmp
pcre
libxml2
];
propagatedBuildInputs = [ librdf_raptor2 ];
confiugureFlags = [
# uses 'regex.h' as a fallback, which is preferrable
"--disable-pcre"
];
postInstall = "rm -rvf $out/share/gtk-doc";
nativeCheckInputs = [ perl ];
doCheck = false; # fails with "No testsuite plan file sparql-query-plan.ttl could be created in build/..."
doInstallCheck = false; # fails with "rasqal-config does not support (--help|--version)"
passthru.tests = {
# rasqal-config --version just checks the pkg-config module.
# That check is broken, checking the pkg-config ourselves is a good replacement.
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
};
meta = {
description = "Library that handles Resource Description Framework (RDF)";
homepage = "https://librdf.org/rasqal";
@@ -44,5 +54,6 @@ stdenv.mkDerivation rec {
];
maintainers = with lib.maintainers; [ marcweber ];
platforms = lib.platforms.unix;
pkgConfigModules = [ "rasqal" ];
};
}
})