Skip to content

Commit

Permalink
devel/gvfs: Depend on sysutils/lsof at run time
Browse files Browse the repository at this point in the history
When a drive cannot be unmounted and returns EBUSY, gvfs calls
"lsof -t /mountpoint" to find which processes have files open.
This list is sent over the "show-processes" signal, which allows
file managers to show which apps are preventing the unmount.

For this to work, sysutils/lsof needs to be around.

PR:		254322
Approved by:	desktop (fluffy)
Differential Revision:	https://reviews.freebsd.org/D32018
  • Loading branch information
DamjanJovanovic authored and Gerald Pfeifer committed Sep 27, 2022
1 parent 9901fd0 commit c80f55d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions devel/gvfs/Makefile
@@ -1,5 +1,6 @@
PORTNAME= gvfs
PORTVERSION= 1.50.2
PORTREVISION= 1
CATEGORIES= devel gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome
Expand All @@ -19,8 +20,8 @@ LIB_DEPENDS= libgcrypt.so:security/libgcrypt \
libgudev-1.0.so:devel/libgudev \
libudisks2.so:sysutils/libudisks \
libsecret-1.so:security/libsecret

RUN_DEPENDS= bsdisks>0:sysutils/bsdisks
RUN_DEPENDS= bsdisks>0:sysutils/bsdisks \
lsof:sysutils/lsof
PORTSCOUT= limitw:1,even

USES= cpe gettext gnome libarchive localbase meson \
Expand Down

1 comment on commit c80f55d

@grahamperrin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cross-reference: FreeBSD bug 254024 – devel/gvfs: gvfsd-trash latches to zfs volumes, comment 33.

Please sign in to comment.