[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
121/155: gnu: gvfs: Patch mount, umount and lsof commands.
From: |
guix-commits |
Subject: |
121/155: gnu: gvfs: Patch mount, umount and lsof commands. |
Date: |
Mon, 23 Dec 2024 15:24:20 -0500 (EST) |
lilyp pushed a commit to branch gnome-team
in repository guix.
commit cb4d9823a55f4c9807cb9cdd8846f2cebcb5c41e
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Nov 11 15:16:45 2024 +0900
gnu: gvfs: Patch mount, umount and lsof commands.
* gnu/packages/gnome.scm (gvfs) [phases]: New argument.
[inputs]: Add lsof and util-linux.
Change-Id: If9c72e6de96f008be9decb4b7d89b0052c0f8f43
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
---
gnu/packages/freedesktop.scm | 9 +++++++++
gnu/packages/gnome.scm | 37 ++++++++++++++++++++++++++++---------
2 files changed, 37 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 965b2a7567..d197b5f553 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -1850,6 +1850,15 @@ Analysis and Reporting Technology) functionality.")
(string-append "--with-udevdir=" #$output "/lib/udev"))
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-commands
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "src/udisksstate.c"
+ (("\"umount -l")
+ (string-append "\"" (search-input-file inputs "bin/umount")
+ " -l")))
+ (substitute* "src/udiskslinuxdrive.c"
+ (("\"eject %s")
+ (string-append "\"" (search-input-file inputs "bin/eject"))))))
(add-before 'configure 'fix-girdir
(lambda _
;; Install introspection data to its own output.
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 734864c4bf..3561617e04 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -167,6 +167,7 @@
#:use-module (gnu packages linux)
#:use-module (gnu packages lirc)
#:use-module (gnu packages llvm)
+ #:use-module (gnu packages lsof)
#:use-module (gnu packages lua)
#:use-module (gnu packages mail)
#:use-module (gnu packages man)
@@ -7113,14 +7114,30 @@ part of udev-extras, then udev, then systemd. It's now
a project on its own.")
"0cgjlxrs4qr08igqjpkhfxpzydj8m9y9n92z091knkj5170x5bbj"))))
(build-system meson-build-system)
(arguments
- (list #:glib-or-gtk? #t
- #:configure-flags
- #~(list "-Dsystemduserunitdir=no"
- "-Dtmpfilesdir=no"
- "-Dman=true"
- ;; Otherwise, the RUNPATH will lack the final path
component.
- (string-append "-Dc_link_args=-Wl,-rpath="
- #$output "/lib/gvfs"))))
+ (list
+ #:glib-or-gtk? #t
+ #:configure-flags
+ #~(list "-Dsystemduserunitdir=no"
+ "-Dtmpfilesdir=no"
+ "-Dman=true"
+ ;; Otherwise, the RUNPATH will lack the final path component.
+ (string-append "-Dc_link_args=-Wl,-rpath="
+ #$output "/lib/gvfs"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-commands
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "monitor/udisks2/gvfsudisks2mount.c"
+ (("\"lsof -t")
+ (string-append "\"" (search-input-file inputs "bin/lsof")
+ " -t"))
+ (("\"umount %s")
+ (string-append "\"" (search-input-file inputs "bin/umount")
+ " %s")))
+ (substitute* "monitor/udisks2/gvfsudisks2volume.c"
+ (("\"mount \\\\\"%s")
+ (string-append "\"" (search-input-file inputs "bin/mount")
+ " \\\"%s"))))))))
(native-inputs
(list `(,glib "bin") ;for glib-genmarshal, etc.
gettext-minimal
@@ -7150,12 +7167,14 @@ part of udev-extras, then udev, then systemd. It's now
a project on its own.")
libmtp
libnfs
libsecret
+ lsof
samba
libsoup
libxml2
openssh
polkit
- udisks))
+ udisks
+ util-linux))
(home-page "https://wiki.gnome.org/Projects/gvfs")
(synopsis "Userspace virtual file system for GIO")
(description
- 105/155: gnu: python-gst: Update to 1.24.9., (continued)
- 105/155: gnu: python-gst: Update to 1.24.9., guix-commits, 2024/12/23
- 106/155: gnu: gstreamer-docs: Update to 1.24.9., guix-commits, 2024/12/23
- 109/155: gnu: mjpegtools: Remove gtk+-2 input., guix-commits, 2024/12/23
- 112/155: gnu: libnice: Update to 0.1.22., guix-commits, 2024/12/23
- 113/155: gnu: libvisual-plugins: Update to 0.4.2., guix-commits, 2024/12/23
- 118/155: gnu: network-manager: Fix build., guix-commits, 2024/12/23
- 119/155: gnu: wpewebkit: Add missing input., guix-commits, 2024/12/23
- 120/155: gnu: libgdata: Fix build., guix-commits, 2024/12/23
- 116/155: gnu: modem-manager: Fix build., guix-commits, 2024/12/23
- 124/155: gnu: fontmanager: Use gexps and drop input labels., guix-commits, 2024/12/23
- 121/155: gnu: gvfs: Patch mount, umount and lsof commands.,
guix-commits <=
- 127/155: gnu: mutter: Update to 46.6., guix-commits, 2024/12/23
- 130/155: folks: Disable tests., guix-commits, 2024/12/23
- 131/155: gnu: folks: Update to 0.15.9., guix-commits, 2024/12/23
- 133/155: gnu: libshumate: Update to 1.3.0., guix-commits, 2024/12/23
- 136/155: gnu: gdk-pixbuf: Update to 2.42.12., guix-commits, 2024/12/23
- 135/155: Merge branch 'master' into 'gnome-team'., guix-commits, 2024/12/23
- 138/155: gnu: gnome-shell-extension-appindicator: Update to 59., guix-commits, 2024/12/23
- 140/155: gnu: gnome-shell-extension-customize-ibus: Update to 90., guix-commits, 2024/12/23
- 137/155: gnu: gnome-shell-extensions: Update to 46.2., guix-commits, 2024/12/23
- 142/155: gnu: gnome-shell-extension-gsconnect: Update to 58., guix-commits, 2024/12/23