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