rdf4store: fix build with glibc 2.26

Tracking issue: #31696

+22 -5
+12
pkgs/servers/http/4store/4store-1.1.6-glibc-2.26.patch
··· 1 + diff --git a/src/frontend/filter-datatypes.c b/src/frontend/filter-datatypes.c 2 + index 8aae1dd..49ed358 100644 3 + --- a/src/frontend/filter-datatypes.c 4 + +++ b/src/frontend/filter-datatypes.c 5 + @@ -23,6 +23,7 @@ 6 + #include <string.h> 7 + #include <math.h> 8 + #define __USE_MISC 9 + +#define __USE_XOPEN_EXTENDED 10 + #include <time.h> 11 + 12 + #include "filter.h"
+10 -5
pkgs/servers/http/4store/default.nix
··· 11 11 version = "1.1.6"; 12 12 13 13 src = fetchFromGitHub { 14 - owner = "garlik"; 14 + owner = "4store"; 15 15 repo = "4store"; 16 16 rev = "v${version}"; 17 17 sha256 = "1kzdfmwpzy64cgqlkcz5v4klwx99w0jk7afckyf7yqbqb4rydmpk"; 18 18 }; 19 19 20 + patches = [ ./4store-1.1.6-glibc-2.26.patch ]; 21 + 22 + nativeBuildInputs = [ autoreconfHook perl pkgconfig which ]; 23 + 20 24 buildInputs = [ librdf_raptor librdf_rasqal glib libxml2 pcre 21 - avahi readline ncurses expat zlib pkgconfig which perl libuuid 22 - gmp mpfr autoreconfHook ]; 25 + avahi readline ncurses expat zlib libuuid gmp mpfr ]; 23 26 24 27 # needed for ./autogen.sh 25 28 prePatch = '' ··· 29 32 preConfigure = '' 30 33 sed -e 's@#! */bin/bash@#! ${stdenv.shell}@' -i configure 31 34 find . -name Makefile -exec sed -e "s@/usr/local@$out@g" -i '{}' ';' 32 - 35 + 33 36 rm src/utilities/4s-backend 34 37 sed -e 's@/var/lib/4store@${db_dir}@g' -i configure.ac src/utilities/* 35 38 sed -e '/FS_STORE_ROOT/d' -i src/utilities/Makefile* 36 39 ''; 37 40 41 + enableParallelBuilding = true; 42 + 38 43 meta = with stdenv.lib; { 39 44 description = "SparQL query server (RDF storage)"; 40 - homepage = http://4store.org/; 45 + homepage = https://4store.danielknoell.de/; 41 46 maintainers = with maintainers; [ raskin ]; 42 47 platforms = platforms.linux; 43 48 };