summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorMartin Dummer <martin.dummer@gmx.net>2024-06-24 22:31:06 +0200
committerSam James <sam@gentoo.org>2024-06-25 03:04:17 +0100
commitb5a390b55e55d101008b7791524d61cfe6de8d79 (patch)
tree7f8109c6d6c2ea38fe20a90dde163fb8df91a58f /sys-fs
parentapp-crypt/gnupg: update Manifest for 2.4.5 signature (diff)
downloadgentoo-b5a390b55e55d101008b7791524d61cfe6de8d79.tar.gz
gentoo-b5a390b55e55d101008b7791524d61cfe6de8d79.tar.bz2
gentoo-b5a390b55e55d101008b7791524d61cfe6de8d79.zip
sys-fs/btrfsmaintenance: fix syntax error in shellscript
Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Closes: https://github.com/gentoo/gentoo/pull/37282 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/btrfsmaintenance/btrfsmaintenance-0.5.1-r1.ebuild (renamed from sys-fs/btrfsmaintenance/btrfsmaintenance-0.5.1.ebuild)1
-rw-r--r--sys-fs/btrfsmaintenance/files/btrfsmaintenance-0.5.1-script-fix.patch11
2 files changed, 12 insertions, 0 deletions
diff --git a/sys-fs/btrfsmaintenance/btrfsmaintenance-0.5.1.ebuild b/sys-fs/btrfsmaintenance/btrfsmaintenance-0.5.1-r1.ebuild
index 82b7ba58cf41..e26232645159 100644
--- a/sys-fs/btrfsmaintenance/btrfsmaintenance-0.5.1.ebuild
+++ b/sys-fs/btrfsmaintenance/btrfsmaintenance-0.5.1-r1.ebuild
@@ -21,6 +21,7 @@ RDEPEND="
systemd? ( sys-apps/systemd )
!systemd? ( virtual/cron )
"
+PATCHES=( "${FILESDIR}/${P}-script-fix.patch" )
src_prepare() {
# Fix config path into watching service
diff --git a/sys-fs/btrfsmaintenance/files/btrfsmaintenance-0.5.1-script-fix.patch b/sys-fs/btrfsmaintenance/files/btrfsmaintenance-0.5.1-script-fix.patch
new file mode 100644
index 000000000000..2bd65f80f0c7
--- /dev/null
+++ b/sys-fs/btrfsmaintenance/files/btrfsmaintenance-0.5.1-script-fix.patch
@@ -0,0 +1,11 @@
+--- a/btrfsmaintenance-functions
++++ b/btrfsmaintenance-functions
+@@ -101,7 +101,7 @@
+ else
+ # Flock older than 2.27 does not support --verbose option, check
+ # if it's available as we'd like to log the information
+- if /usr/bin/flock --help 2>&1 | grep -q -- --verbose;
++ if /usr/bin/flock --help 2>&1 | grep -q -- --verbose; then
+ verbose="--verbose"
+ fi
+