pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gvfs: fix build on SunOS
Module Name: pkgsrc-wip
Committed By: Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By: vms
Date: Sat May 9 22:19:15 2026 +0200
Changeset: 61a1a1f7f42b04b6d4620db66134a1cd92d9b04a
Modified Files:
gvfs/Makefile
gvfs/TODO
gvfs/options.mk
Log Message:
gvfs: fix build on SunOS
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=61a1a1f7f42b04b6d4620db66134a1cd92d9b04a
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
gvfs/Makefile | 4 +++-
gvfs/TODO | 6 ------
gvfs/options.mk | 8 ++++----
3 files changed, 7 insertions(+), 11 deletions(-)
diffs:
diff --git a/gvfs/Makefile b/gvfs/Makefile
index a59c3d1987..446e1580c1 100644
--- a/gvfs/Makefile
+++ b/gvfs/Makefile
@@ -17,7 +17,7 @@ USE_PKGLOCALEDIR= yes
.include "../../mk/compiler.mk"
-CFLAGS.NetBSD+= -DNETBSD_SOURCE
+CFLAGS.NetBSD+= -DNETBSD_SOURCE # string.h
.if !empty(PKGSRC_COMPILER:Mclang) || ${CC_VERSION:Mgcc-[6-9]*} || ${CC_VERSION:Mgcc-1[0-9].*}
CFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
@@ -25,6 +25,8 @@ CFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
CFLAGS.SunOS+= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
.endif
+LDFLAGS.SunOS+= -lsocket # if_indextoname()
+
# Enforce some defaults to prevent PLIST issues witnessed in some environments.
MESON_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} \
--localedir=${PKGLOCALEDIR}/locale
diff --git a/gvfs/TODO b/gvfs/TODO
index 8da11422b9..16d5b48af6 100644
--- a/gvfs/TODO
+++ b/gvfs/TODO
@@ -1,11 +1,5 @@
<!-- -*- markdown -*- ->
-# Fairly untested
-
-This package needs to be tested further, before being imported back to the
-main pkgsrc tree. It especially needs to be build-tested (at least) on
-Linux where a lot of PLIST diffs are expected to happen there.
-
# gvfsd-fuse is known not to work on NetBSD
This is because NetBSD refuse(3) doesn't support non-root mounting but
diff --git a/gvfs/options.mk b/gvfs/options.mk
index ca81ce6d7a..a924ad78da 100644
--- a/gvfs/options.mk
+++ b/gvfs/options.mk
@@ -168,12 +168,12 @@ MESON_ARGS+= -Dgphoto2=false
### mtp://{ID_SERIAL}, mtp://[usb:bus,dev]
### Access digital audio/media players.
###
-.if !empty(PKG_OPTIONS:Mlibmtp)
PLIST_VARS+= mtp
-MESON_ARGS+= -Dmtp=true
-GUDEV_REQUIRED= yes
+.if !empty(PKG_OPTIONS:Mlibmtp)
+GUDEV_REQUIRED= yes
+MESON_ARGS+= -Dmtp=true
. include "../../devel/libmtp/buildlink3.mk"
-PLIST.mtp= yes
+PLIST.mtp= yes
.else
MESON_ARGS+= -Dmtp=false
.endif
Home |
Main Index |
Thread Index |
Old Index