~alpine/aports

testing/bindfs: new aport v1 REJECTED

Daniel Gerber <dg@atufi.org>
Daniel Gerber: 2
 testing/bindfs: new aport
 testing/bindfs: new aport

 4 files changed, 120 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/3813/mbox | git am -3
Learn more about email & git

[PATCH] testing/bindfs: new aport Export this patch

Daniel Gerber <dg@atufi.org>
https://bindfs.org
FUSE filesystem for mirroring a directory to another directory
---
 testing/bindfs/APKBUILD                   | 43 +++++++++++++++++++++++
 testing/bindfs/musl-getmntent-issue.patch | 18 ++++++++++
 2 files changed, 61 insertions(+)
 create mode 100644 testing/bindfs/APKBUILD
 create mode 100644 testing/bindfs/musl-getmntent-issue.patch

diff --git a/testing/bindfs/APKBUILD b/testing/bindfs/APKBUILD
new file mode 100644
index 0000000000..b207572b1c
--- /dev/null
+++ b/testing/bindfs/APKBUILD
@@ -0,0 +1,43 @@
# Contributor: Daniel Gerber <dg@atufi.org>
# Maintainer:
pkgname=bindfs
pkgver=1.15.1
pkgrel=0
pkgdesc="FUSE filesystem for mirroring a directory to another directory"
url="https://bindfs.org"
arch="all"
license="GPL-2.0-or-later"
depends="fuse3"						  # or fuse
makedepends="fuse3-dev"				  # or fuse-dev
checkdepends="ruby ruby-etc"
install=""
subpackages="$pkgname-doc"
source="https://bindfs.org/downloads/bindfs-$pkgver.tar.gz
	musl-getmntent-issue.patch"
builddir="$srcdir/bindfs-$pkgver"


build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	# NOTE: this requires the fuse kernel module to be loaded
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
da9003f141b7aa2c23651b3b836b1d979bf1b19915f307c05e40ae6906aab738036cc8b5df6caeec158e4fa6b7bca71489ea7884ff1607c6fea72a603a048d59  bindfs-1.15.1.tar.gz
1c6491241393974923ed512ac2621c864f6f5e9f7e6faca83154cb785332049b49e18dda31ce297a4531bb0abf42d5039c996d0223eac105b0b7af377fd8c2ec  musl-getmntent-issue.patch
"
diff --git a/testing/bindfs/musl-getmntent-issue.patch b/testing/bindfs/musl-getmntent-issue.patch
new file mode 100644
index 0000000000..9003c6f9b2
--- /dev/null
+++ b/testing/bindfs/musl-getmntent-issue.patch
@@ -0,0 +1,18 @@
# workaroung for musl getmntent: avoid using fusermount in test setup
--- a/tests/common.rb
+++ b/tests/common.rb
@@ -213,11 +213,5 @@ def nonroot_testenv(bindfs_args, options = {}, &block)
 end

 def umount_cmd
-    if !`which fusermount3`.strip.empty?
-        'fusermount3 -uz'
-    elsif !`which fusermount`.strip.empty?
-        'fusermount -uz'
-    else
-        'umount'
-    end
+    'umount'
 end

 def assert
-- 
2.32.0
Sorry to bother you @mailinglist-bot,

but we've detected that this merge request hasn't seen any recent activity. If you need help or want to discuss your approach with developers you can ping `@team/mentors`. You can also ask on IRC on `#alpine-devel` on irc.oftc.net. If no further activity occurs in this MR, Alpine developers may close it in the future.

Thanks for your contribution.

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/28559#note_206667
This fails to build with:

```
bindfs.c:76:10: fatal error: linux/fs.h: No such file or directory
   76 | #include <linux/fs.h>  // For BLKGETSIZE64
      |          ^~~~~~~~~~~~
```

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/28559#note_206840

[PATCH v2] testing/bindfs: new aport Export this patch

Daniel Gerber <dg@atufi.org>
https://bindfs.org
FUSE filesystem for mirroring a directory to another directory
---
 testing/bindfs/APKBUILD                   | 41 +++++++++++++++++++++++
 testing/bindfs/musl-getmntent-issue.patch | 18 ++++++++++
 2 files changed, 59 insertions(+)
 create mode 100644 testing/bindfs/APKBUILD
 create mode 100644 testing/bindfs/musl-getmntent-issue.patch

diff --git a/testing/bindfs/APKBUILD b/testing/bindfs/APKBUILD
new file mode 100644
index 0000000000..65b77c3cd5
--- /dev/null
+++ b/testing/bindfs/APKBUILD
@@ -0,0 +1,41 @@
# Contributor: Daniel Gerber <dg@atufi.org>
# Maintainer:
pkgname=bindfs
pkgver=1.15.1
pkgrel=0
pkgdesc="FUSE filesystem for mirroring a directory to another directory"
url="https://bindfs.org"
arch="all"
license="GPL-2.0-or-later"
depends="fuse3"						  # or fuse
makedepends="linux-headers fuse3-dev" # or fuse-dev
checkdepends="ruby ruby-etc"
subpackages="$pkgname-doc"
source="https://bindfs.org/downloads/bindfs-$pkgver.tar.gz
	musl-getmntent-issue.patch"


build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	# NOTE: this requires the fuse kernel module to be loaded
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
da9003f141b7aa2c23651b3b836b1d979bf1b19915f307c05e40ae6906aab738036cc8b5df6caeec158e4fa6b7bca71489ea7884ff1607c6fea72a603a048d59  bindfs-1.15.1.tar.gz
1c6491241393974923ed512ac2621c864f6f5e9f7e6faca83154cb785332049b49e18dda31ce297a4531bb0abf42d5039c996d0223eac105b0b7af377fd8c2ec  musl-getmntent-issue.patch
"
diff --git a/testing/bindfs/musl-getmntent-issue.patch b/testing/bindfs/musl-getmntent-issue.patch
new file mode 100644
index 0000000000..9003c6f9b2
--- /dev/null
+++ b/testing/bindfs/musl-getmntent-issue.patch
@@ -0,0 +1,18 @@
# workaroung for musl getmntent: avoid using fusermount in test setup
--- a/tests/common.rb
+++ b/tests/common.rb
@@ -213,11 +213,5 @@ def nonroot_testenv(bindfs_args, options = {}, &block)
 end

 def umount_cmd
-    if !`which fusermount3`.strip.empty?
-        'fusermount3 -uz'
-    elsif !`which fusermount`.strip.empty?
-        'fusermount -uz'
-    else
-        'umount'
-    end
+    'umount'
 end

 def assert
-- 
2.32.0