diff options
author | Bob Funk <bobfunk11@gmail.com> | 2023-04-13 21:02:41 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-04-15 07:15:24 +0700 |
commit | 8459d361711b9f29755f26013ad9aa5bb4fa3138 (patch) | |
tree | 86f6a9a534d3382674272d5180e893bb2bb086d9 /desktop/nautilus | |
parent | 76af538497239b51f7e6d219557297ef4d2726fc (diff) |
desktop/nautilus: Add patch for newer libportal.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/nautilus')
-rw-r--r-- | desktop/nautilus/ae752ea07895b918683f664fe78950255f7faab0.patch | 102 | ||||
-rw-r--r-- | desktop/nautilus/nautilus.SlackBuild | 15 | ||||
-rw-r--r-- | desktop/nautilus/nautilus.info | 2 |
3 files changed, 117 insertions, 2 deletions
diff --git a/desktop/nautilus/ae752ea07895b918683f664fe78950255f7faab0.patch b/desktop/nautilus/ae752ea07895b918683f664fe78950255f7faab0.patch new file mode 100644 index 0000000000000..450faf948faee --- /dev/null +++ b/desktop/nautilus/ae752ea07895b918683f664fe78950255f7faab0.patch @@ -0,0 +1,102 @@ +From ae752ea07895b918683f664fe78950255f7faab0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ant=C3=B3nio=20Fernandes?= <antoniojpfernandes@gmail.com> +Date: Tue, 21 Dec 2021 17:42:27 +0000 +Subject: [PATCH] general: Add libportal-gtk3 dependency + +The portal-gtk3.h header has been moved into a separate library which +binds gtk3 explicitly. + +https://github.com/flatpak/libportal/pull/53 +--- + build-aux/flatpak/org.gnome.Nautilus.json | 5 +++-- + build-aux/flatpak/org.gnome.Nautilus.yml | 3 ++- + meson.build | 4 +++- + src/meson.build | 1 + + src/nautilus-files-view.c | 2 +- + 5 files changed, 10 insertions(+), 5 deletions(-) + +diff --git a/build-aux/flatpak/org.gnome.Nautilus.json b/build-aux/flatpak/org.gnome.Nautilus.json +index 2857124c59..fb6213074e 100644 +--- a/build-aux/flatpak/org.gnome.Nautilus.json ++++ b/build-aux/flatpak/org.gnome.Nautilus.json +@@ -117,14 +117,15 @@ + "buildsystem": "meson", + "builddir": true, + "config-opts": [ ++ "-Ddocs=false", ++ "-Dbackends=gtk3", + "--libdir=/app/lib", + "--buildtype=debugoptimized" + ], + "sources" : [ + { + "type": "git", +- "url": "https://github.com/flatpak/libportal.git", +- "tag": "0.4" ++ "url": "https://github.com/flatpak/libportal.git" + } + ] + }, +diff --git a/build-aux/flatpak/org.gnome.Nautilus.yml b/build-aux/flatpak/org.gnome.Nautilus.yml +index 3e15f4b11f..555f959050 100644 +--- a/build-aux/flatpak/org.gnome.Nautilus.yml ++++ b/build-aux/flatpak/org.gnome.Nautilus.yml +@@ -85,12 +85,13 @@ modules: + buildsystem: meson + builddir: true + config-opts: ++ - "-Ddocs=false" ++ - "-Dbackends=gtk3" + - "--libdir=/app/lib" + - "--buildtype=debugoptimized" + sources: + - type: git + url: https://github.com/flatpak/libportal.git +- tag: 0.4 + - buildsystem: meson + builddir: true + name: nautilus +diff --git a/meson.build b/meson.build +index 927216636a..4626fa0bb7 100644 +--- a/meson.build ++++ b/meson.build +@@ -122,8 +122,10 @@ gnome_desktop = dependency('gnome-desktop-3.0', version: '>= 3.0.0') + gtk = dependency('gtk+-3.0', version: '>= 3.22.27') + libhandy = dependency('libhandy-1', version: '>= 1.1.90') + libportal = [] ++libportal_gtk3 = [] + if get_option('libportal') +- libportal = dependency('libportal', version: '>= 0.3') ++ libportal = dependency('libportal', version: '>= 0.5') ++ libportal_gtk3 = dependency('libportal-gtk3', version: '>= 0.5') + endif + selinux = [] + if get_option('selinux') +diff --git a/src/meson.build b/src/meson.build +index 682d6f3a3c..d7fb76d53d 100644 +--- a/src/meson.build ++++ b/src/meson.build +@@ -285,6 +285,7 @@ nautilus_deps = [ + libgd_dep, + libhandy, + libportal, ++ libportal_gtk3, + nautilus_extension, + selinux, + tracker_sparql, +diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c +index 64ca4377b3..61cb169b3a 100644 +--- a/src/nautilus-files-view.c ++++ b/src/nautilus-files-view.c +@@ -93,7 +93,7 @@ + + #ifdef HAVE_LIBPORTAL + #include <libportal/portal.h> +-#include <libportal/portal-gtk3.h> ++#include <libportal-gtk3/portal-gtk3.h> + #endif + + /* Minimum starting update inverval */ +-- +GitLab + diff --git a/desktop/nautilus/nautilus.SlackBuild b/desktop/nautilus/nautilus.SlackBuild index d7609f0522243..84692551bf4b7 100644 --- a/desktop/nautilus/nautilus.SlackBuild +++ b/desktop/nautilus/nautilus.SlackBuild @@ -21,12 +21,16 @@ # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# 2023 Apr 9 - Added libportal patch to allow building this older nautilus version +# to build against newer libportal versions. The patch can be removed once a newer +# slackware version is released and nautilus can be upgraded. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=nautilus VERSION=${VERSION:-41.5} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -76,6 +80,15 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Conditionally patch nautilus source to allow it to build for newer +# libportal versions. Patch required for libportal >= 0.5 +if (pkg-config --atleast-version 0.5 libportal) ; then + echo "Patching build to allow building with libportal >= 0.5" + patch -Np1 -i $CWD/ae752ea07895b918683f664fe78950255f7faab0.patch +else + echo "Skipping libportal patch" +fi + mkdir build cd build CFLAGS="$SLKCFLAGS" \ diff --git a/desktop/nautilus/nautilus.info b/desktop/nautilus/nautilus.info index ddf9d4cee976b..22165372f2544 100644 --- a/desktop/nautilus/nautilus.info +++ b/desktop/nautilus/nautilus.info @@ -5,6 +5,6 @@ DOWNLOAD="https://download.gnome.org/sources/nautilus/41/nautilus-41.5.tar.xz" MD5SUM="ab5863c8080c403fd2575bd183cb8c7b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="gnome-autoar gnome-desktop libhandy libportal tracker" +REQUIRES="gnome-autoar gnome-desktop libhandy libportal tracker-miners" MAINTAINER="Bob Funk" EMAIL="bobfunk11@gmail.com" |