re-isearch: 2.20220925.4.0a-unstable-2025-03-16 -> 2.20220925.4.0a-unstable-2025-05-15 (#430702)

authored by

Cosima Neidahl and committed by
GitHub
509ede6f a360d7ab

+83 -62
-50
pkgs/by-name/re/re-isearch/0001-fix-JsonHitTable-undefined-reference.patch
··· 1 - # fixes "undefined reference to `IDB::JsonHitTable(RESULT const&)" build failure 2 - 3 - --- 4 - src/idb.cxx | 26 -------------------------- 5 - 1 file changed, 26 deletions(-) 6 - 7 - diff --git a/src/idb.cxx b/src/idb.cxx 8 - index 2469c06..753a9fb 100644 9 - --- a/src/idb.cxx 10 - +++ b/src/idb.cxx 11 - @@ -5486,37 +5486,11 @@ STRING IDB::XMLHitTable(const RESULT& Result) 12 - } 13 - #endif 14 - 15 - -#if 0 16 - STRING IDB::JsonHitTable(const RESULT& Result) 17 - { 18 - -#if 1 19 - message_log (LOG_FATAL, "JsonHitTable is not yet implemented"); 20 - return NulString; 21 - -#else 22 - -/* 23 - -<folders> 24 - - <folder id="123" private="0" archived="0" order="1">Shopping</folder> 25 - -</folders> 26 - - 27 - -is JSON 28 - - 29 - -{ 30 - - "folders": { 31 - - "folder":{ 32 - - "@": { 33 - - "id": "123", 34 - - "private": "0", 35 - - "archived": "0", 36 - - "order": "1" 37 - - }, 38 - - "#": "Shopping" 39 - - } 40 - - } 41 - -} 42 - -*/ 43 - } 44 - -#endif 45 - -#endif 46 - 47 - 48 - PIRSET IDB::SearchSmart(QUERY *Query, const STRING& DefaultField) 49 - -- 50 - 2.47.2
···
+64
pkgs/by-name/re/re-isearch/1001-Fix-resurcive-make-parallelism.patch
···
··· 1 + From 9fc97ea817762e2575954cd31aa735b2cfec7a5e Mon Sep 17 00:00:00 2001 2 + From: OPNA2608 <opna2608@protonmail.com> 3 + Date: Sun, 3 Aug 2025 19:08:30 +0200 4 + Subject: [PATCH] build/Makefile: Fix recursive make & parallelism 5 + 6 + - Recursively calling make should be done by using the special `MAKE` variable, which will preserve parallelism across calls 7 + - Don't hardcode parallelism in recursive make calls, inherit user-supplied ones instead 8 + --- 9 + build/Makefile | 18 +++++++++--------- 10 + 1 file changed, 9 insertions(+), 9 deletions(-) 11 + 12 + diff --git a/build/Makefile b/build/Makefile 13 + index 6633ebd..807bfd9 100644 14 + --- a/build/Makefile 15 + +++ b/build/Makefile 16 + @@ -2,36 +2,36 @@ UNAME := $(shell uname) 17 + 18 + all: 19 + ifeq ($(UNAME), Darwin) 20 + - make -j 5 -f Makefile.MacOS-OMP $(MFLAGS) 21 + + $(MAKE) -f Makefile.MacOS-OMP $(MFLAGS) 22 + endif 23 + ifeq ($(UNAME), Linux) 24 + - make -j 3 -f Makefile.ubuntu $(MFLAGS) 25 + + $(MAKE) -f Makefile.ubuntu $(MFLAGS) 26 + endif 27 + ifeq ($(UNAME), Solaris) 28 + - make -f Makefile.solaris $(MFLAGS) 29 + + $(MAKE) -f Makefile.solaris $(MFLAGS) 30 + endif 31 + 32 + install: 33 + ifeq ($(UNAME), Darwin) 34 + - make -j 5 -f Makefile.MacOS-OMP $(MFLAGS) install 35 + + $(MAKE) -f Makefile.MacOS-OMP $(MFLAGS) install 36 + endif 37 + ifeq ($(UNAME), Linux) 38 + - make -j 3 -f Makefile.ubuntu $(MFLAGS) install 39 + + $(MAKE) -f Makefile.ubuntu $(MFLAGS) install 40 + endif 41 + ifeq ($(UNAME), Solaris) 42 + - make -f Makefile.solaris $(MFLAGS) install 43 + + $(MAKE) -f Makefile.solaris $(MFLAGS) install 44 + endif 45 + 46 + 47 + plugins: 48 + ifeq ($(UNAME), Darwin) 49 + - make -j 5 -f Makefile.MacOS $(MFLAGS) plugins 50 + + $(MAKE) -f Makefile.MacOS $(MFLAGS) plugins 51 + endif 52 + ifeq ($(UNAME), Linux) 53 + - make -j 3 -f Makefile.ubuntu $(MFLAGS) plugins 54 + + $(MAKE) -f Makefile.ubuntu $(MFLAGS) plugins 55 + endif 56 + ifeq ($(UNAME), Solaris) 57 + - make -f Makefile.solaris $(MFLAGS) plugins 58 + + $(MAKE) -f Makefile.solaris $(MFLAGS) plugins 59 + endif 60 + 61 + 62 + -- 63 + 2.50.1 64 +
+19 -12
pkgs/by-name/re/re-isearch/package.nix
··· 11 12 stdenv.mkDerivation { 13 pname = "re-Isearch"; 14 - version = "2.20220925.4.0a-unstable-2025-03-16"; 15 16 src = fetchFromGitHub { 17 owner = "re-Isearch"; 18 repo = "re-Isearch"; 19 - rev = "56e0dfbe7468881b3958ca8e630f41a5354e9873"; 20 - hash = "sha256-tI75D02/sFEkHDQX/BpDlu24WNP6Qh9G0MIfEvs8npM="; 21 }; 22 23 - # Upstream issue: https://github.com/re-Isearch/re-Isearch/issues/11 24 - patches = [ ./0001-fix-JsonHitTable-undefined-reference.patch ]; 25 26 postPatch = '' 27 # Fix gcc-13 build due to missing <cstdint> include. 28 sed -e '1i #include <cstdint>' -i src/mmap.cxx 29 30 - # g++: error: unrecognized command-line option '-msse2' 31 - # gcc: error: unrecognized command-line option '-m64' 32 substituteInPlace build/Makefile.ubuntu \ 33 --replace-fail "-msse2" "" \ 34 --replace-fail "-m64" "" ··· 43 ]; 44 45 makeFlags = [ 46 - "CC=g++" 47 - "cc=gcc" 48 - "LD=g++" 49 ]; 50 51 preBuild = '' 52 cd build 53 - make clean # clean up pre-built objects in the source 54 makeFlagsArray+=( 55 - EXTRA_INC="-I${db.dev}/include -I${lib.getDev file}/include" 56 LD_PATH="-L../lib -L${db.out}/lib -L${file}/lib -L${libnsl}/lib" 57 ) 58 ''; 59 60 installPhase = '' 61 runHook preInstall
··· 11 12 stdenv.mkDerivation { 13 pname = "re-Isearch"; 14 + version = "2.20220925.4.0a-unstable-2025-05-15"; 15 16 src = fetchFromGitHub { 17 owner = "re-Isearch"; 18 repo = "re-Isearch"; 19 + rev = "35e939fd60948f112b668b06d2b8b75f2c7425d3"; 20 + hash = "sha256-r7KUwx2SrfnpSknGSpzw33Qwp63htoKknrnmdOgA/9Y="; 21 }; 22 23 + patches = [ 24 + # https://github.com/re-Isearch/re-Isearch/pull/12 25 + ./1001-Fix-resurcive-make-parallelism.patch 26 + ]; 27 28 postPatch = '' 29 # Fix gcc-13 build due to missing <cstdint> include. 30 + # https://github.com/re-Isearch/re-Isearch/pull/13 31 sed -e '1i #include <cstdint>' -i src/mmap.cxx 32 33 + # These flags are not supported on all architectures 34 + # https://github.com/re-Isearch/re-Isearch/issues/14 35 substituteInPlace build/Makefile.ubuntu \ 36 --replace-fail "-msse2" "" \ 37 --replace-fail "-m64" "" ··· 46 ]; 47 48 makeFlags = [ 49 + "CC=${stdenv.cc.targetPrefix}c++" 50 + "cc=${stdenv.cc.targetPrefix}cc" 51 + "LD=${stdenv.cc.targetPrefix}c++" 52 ]; 53 54 preBuild = '' 55 cd build 56 makeFlagsArray+=( 57 + EXTRA_INC="-I${lib.getDev db}/include -I${lib.getDev file}/include" 58 LD_PATH="-L../lib -L${db.out}/lib -L${file}/lib -L${libnsl}/lib" 59 ) 60 ''; 61 + 62 + # Handwritten Makefiles, doesn't properly ensure that libraries are built before they're used in linking 63 + # ld: cannot find -libUtils: No such file or directory 64 + # ld: cannot find -libLocal: No such file or directory 65 + enableParallelBuilding = false; 66 67 installPhase = '' 68 runHook preInstall