pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/filesystems/fuse3/patches
Module Name: pkgsrc
Committed By: vins
Date: Sat May 9 20:00:28 UTC 2026
Added Files:
pkgsrc/filesystems/fuse3/patches: patch-example_cuse__client.c
patch-example_meson.build patch-test_meson.build
patch-util_install__helper.sh
Log Message:
filesystems/fuse3: initial import
Import fuse-3.18.2 as filesystems/fuse3.
FUSE (Filesystem in Userspace) is a simple interface for userspace
programs to export a virtual filesystem to the Linux kernel. Fuse also
aims to provide a secure method for non privileged users to create and
mount their own filesystem implementations.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
pkgsrc/filesystems/fuse3/patches/patch-example_cuse__client.c \
pkgsrc/filesystems/fuse3/patches/patch-example_meson.build \
pkgsrc/filesystems/fuse3/patches/patch-test_meson.build \
pkgsrc/filesystems/fuse3/patches/patch-util_install__helper.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/filesystems/fuse3/patches/patch-example_cuse__client.c
diff -u /dev/null pkgsrc/filesystems/fuse3/patches/patch-example_cuse__client.c:1.1
--- /dev/null Sat May 9 20:00:28 2026
+++ pkgsrc/filesystems/fuse3/patches/patch-example_cuse__client.c Sat May 9 20:00:28 2026
@@ -0,0 +1,15 @@
+$NetBSD: patch-example_cuse__client.c,v 1.1 2026/05/09 20:00:28 vins Exp $
+
+Fix ctype warning.
+
+--- example/cuse_client.c.orig 2026-05-06 16:55:14.227070883 +0000
++++ example/cuse_client.c
+@@ -106,7 +106,7 @@ int main(int argc, char **argv)
+ return 1;
+ }
+
+- cmd = tolower(argv[2][0]);
++ cmd = tolower((unsigned char)argv[2][0]);
+ argc -= 3;
+ argv += 3;
+
Index: pkgsrc/filesystems/fuse3/patches/patch-example_meson.build
diff -u /dev/null pkgsrc/filesystems/fuse3/patches/patch-example_meson.build:1.1
--- /dev/null Sat May 9 20:00:28 2026
+++ pkgsrc/filesystems/fuse3/patches/patch-example_meson.build Sat May 9 20:00:28 2026
@@ -0,0 +1,15 @@
+$NetBSD: patch-example_meson.build,v 1.1 2026/05/09 20:00:28 vins Exp $
+
+Requires O_PATH and other Linuxisms.
+
+--- example/meson.build.orig 2026-05-06 16:42:00.707753842 +0000
++++ example/meson.build
+@@ -31,7 +31,7 @@ foreach ex : threaded_examples
+ install: false)
+ endforeach
+
+-if platform != 'dragonfly' and add_languages('cpp', required : false)
++if platform == 'linux' and add_languages('cpp', required : false)
+ executable('passthrough_hp', 'passthrough_hp.cc',
+ dependencies: [ thread_dep, libfuse_dep ],
+ install: false)
Index: pkgsrc/filesystems/fuse3/patches/patch-test_meson.build
diff -u /dev/null pkgsrc/filesystems/fuse3/patches/patch-test_meson.build:1.1
--- /dev/null Sat May 9 20:00:28 2026
+++ pkgsrc/filesystems/fuse3/patches/patch-test_meson.build Sat May 9 20:00:28 2026
@@ -0,0 +1,21 @@
+$NetBSD: patch-test_meson.build,v 1.1 2026/05/09 20:00:28 vins Exp $
+
+Requires O_PATH and other Linuxisms.
+
+--- test/meson.build.orig 2026-05-06 15:59:19.869945743 +0000
++++ test/meson.build
+@@ -7,9 +7,11 @@ foreach prog: [ 'test_write_cache', 'tes
+ dependencies: thread_dep,
+ install: false)
+ endforeach
+-td += executable('test_syscalls', 'test_syscalls.c',
+- include_directories: include_dirs,
+- install: false)
++if platform == 'linux'
++ td += executable('test_syscalls', 'test_syscalls.c',
++ include_directories: include_dirs,
++ install: false)
++endif
+ td += executable('readdir_inode', 'readdir_inode.c',
+ include_directories: include_dirs,
+ install: false)
Index: pkgsrc/filesystems/fuse3/patches/patch-util_install__helper.sh
diff -u /dev/null pkgsrc/filesystems/fuse3/patches/patch-util_install__helper.sh:1.1
--- /dev/null Sat May 9 20:00:28 2026
+++ pkgsrc/filesystems/fuse3/patches/patch-util_install__helper.sh Sat May 9 20:00:28 2026
@@ -0,0 +1,40 @@
+$NetBSD: patch-util_install__helper.sh,v 1.1 2026/05/09 20:00:28 vins Exp $
+
+Keep only the required bits from the install script.
+
+--- util/install_helper.sh.orig 2026-03-18 21:18:34.000000000 +0000
++++ util/install_helper.sh
+@@ -24,19 +24,6 @@ else
+ DESTDIR="${DESTDIR%/}"
+ fi
+
+-install -D -m 644 "${MESON_SOURCE_ROOT}/util/fuse.conf" \
+- "${DESTDIR}${sysconfdir}/fuse.conf"
+-
+-if $useroot; then
+- chown root:root "${DESTDIR}${bindir}/fusermount3"
+- chmod u+s "${DESTDIR}${bindir}/fusermount3"
+-
+- if test ! -e "${DESTDIR}/dev/fuse"; then
+- mkdir -p "${DESTDIR}/dev"
+- mknod "${DESTDIR}/dev/fuse" -m 0666 c 10 229
+- fi
+-fi
+-
+ if [ "${udevrulesdir}" != "" ]; then
+ install -D -m 644 "${MESON_SOURCE_ROOT}/util/udev.rules" \
+ "${DESTDIR}${udevrulesdir}/99-fuse3.rules"
+@@ -44,12 +31,5 @@ fi
+
+ if [ "$initscriptdir" != "" ]; then
+ install -D -m 755 "${MESON_SOURCE_ROOT}/util/init_script" \
+- "${DESTDIR}${initscriptdir}/fuse3"
+-
+- if test -x /usr/sbin/update-rc.d && test -z "${DESTDIR}"; then
+- /usr/sbin/update-rc.d fuse3 start 34 S . start 41 0 6 . || /bin/true
+- else
+- echo "== FURTHER ACTION REQUIRED =="
+- echo "Make sure that your init system will start the ${DESTDIR}${initscriptdir}/init.d/fuse3 init script"
+- fi
++ "${DESTDIR}${initscriptdir}/init.d.fuse3"
+ fi
Home |
Main Index |
Thread Index |
Old Index