recoll: 1.39.1 -> 1.43.2 (#414547)
This commit is contained in:
@@ -1,39 +1,28 @@
|
||||
From 9a0102fe1da038ebe08107ead991964df11b0271 Mon Sep 17 00:00:00 2001
|
||||
From: annalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com>
|
||||
Date: Mon, 19 Feb 2024 03:31:20 +0000
|
||||
Subject: [PATCH] no qtgui darwin bundle
|
||||
|
||||
---
|
||||
qtgui/recoll.pro.in | 11 +++++++++--
|
||||
1 file changed, 9 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/qtgui/recoll.pro.in b/qtgui/recoll.pro.in
|
||||
index a0ef314..6dbc3b5 100644
|
||||
--- a/qtgui/recoll.pro.in
|
||||
+++ b/qtgui/recoll.pro.in
|
||||
@@ -180,7 +180,7 @@ windows {
|
||||
}
|
||||
@@ -192,7 +192,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
-macx: {
|
||||
-macx:macxbundlebuild() {
|
||||
+if (false) {
|
||||
QCBUILDLOC=Qt_6_4_2_for_macOS
|
||||
|
||||
# QT += webkit webkitwidgets
|
||||
@@ -375,7 +375,7 @@ macx: {
|
||||
QCBUILDLOC=Qt_6_7_3_for_macOS
|
||||
RECOLLDEPS = $$PWD/../../..
|
||||
QMAKE_APPLE_DEVICE_ARCHS = x86_64 arm64
|
||||
@@ -402,7 +402,7 @@
|
||||
QMAKE_BUNDLE_DATA = APP_EXAMPLES APP_EXAMPLES_MAC APP_FILTERS APP_IMAGES APP_DOC
|
||||
}
|
||||
|
||||
-unix:!macx {
|
||||
-unix:!macxbundlebuild() {
|
||||
+unix {
|
||||
|
||||
VPATH = @srcdir@
|
||||
|
||||
@@ -400,6 +400,13 @@ VPATH = @srcdir@
|
||||
# For SingleApplication
|
||||
@@ -425,6 +425,13 @@
|
||||
SOURCES += crontool.cpp \
|
||||
rtitool.cpp
|
||||
|
||||
+ macx {
|
||||
+ macxbundlebuild() {
|
||||
+ SOURCES += ../utils/closefrom.cpp \
|
||||
+ ../utils/execmd.cpp \
|
||||
+ ../utils/netcon.cpp \
|
||||
@@ -43,6 +32,3 @@ index a0ef314..6dbc3b5 100644
|
||||
FORMS += crontool.ui \
|
||||
rtitool.ui
|
||||
|
||||
--
|
||||
2.43.0
|
||||
|
||||
|
||||
@@ -75,11 +75,11 @@ in
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "recoll";
|
||||
version = "1.39.1";
|
||||
version = "1.43.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.recoll.org/${pname}-${version}.tar.gz";
|
||||
hash = "sha256-Eeadj/AnuztCb7VIYEy4hKbduH3CzK53tADvI9+PWmQ=";
|
||||
hash = "sha256-FbDXknumjktcikOfAe4FKtPmggJGGHasq8dpD+8mNzE=";
|
||||
};
|
||||
|
||||
mesonFlags =
|
||||
@@ -107,13 +107,10 @@ mkDerivation rec {
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = toString [
|
||||
"-DNIXPKGS"
|
||||
"-fpermissive" # libxml2-2.12 changed const qualifiers
|
||||
];
|
||||
|
||||
patches = [
|
||||
# fix "No/bad main configuration file" error
|
||||
./fix-datadir.patch
|
||||
# use the same configure based build for darwin as linux
|
||||
./0001-no-qtgui-darwin-bundle.patch
|
||||
];
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
diff --git a/utils/rclutil.cpp b/utils/rclutil.cpp
|
||||
index 6bafc119..d997cd17 100644
|
||||
--- a/utils/rclutil.cpp
|
||||
+++ b/utils/rclutil.cpp
|
||||
@@ -279,7 +279,7 @@ const string& path_pkgdatadir()
|
||||
"a subfolder of the installation directory. \n"
|
||||
"Please set the RECOLL_DATADIR environment variable to point to it\n"
|
||||
"(e.g. setx RECOLL_DATADIR \"C:/Program Files (X86)/Recoll/Share)\"\n";
|
||||
-#elif defined(__APPLE__) && defined(RECOLL_AS_MAC_BUNDLE)
|
||||
+#elif defined(__APPLE__) && defined(RECOLL_AS_MAC_BUNDLE) && defined(NIXPKGS)
|
||||
// The package manager builds (Macports, Homebrew, Nixpkgs ...) all arrange to set a proper
|
||||
// compiled value for RECOLL_DATADIR. We can't do this when building a native bundle with
|
||||
// QCreator, in which case we use the executable location.
|
||||
Reference in New Issue
Block a user