Skip to contentSkip to conversation

package/libfuse: only install udev rules if (e)udev is enabled

PATCH New Peter Korsgaard 2 participants 5 messages Apr 2, 2019 – Apr 5, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/libfuse: only install udev rules if (e)udev is enabled

No point in installing udev rules if nothing will use it.

---
 package/libfuse/libfuse.mk | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
package/libfuse/libfuse.mk +9 -2
index 84027ebedb..ab0131b057 100644
@@ -17,11 +17,18 @@ LIBFUSE_CONF_OPTS = \
 	--enable-util \
 	UDEV_RULES_PATH=/lib/udev/rules.d
 
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
+define LIBFUSE_INSTALL_UDEV
+	mkdir -p $(TARGET_DIR)/lib/udev/rules.d
+	cp $(STAGING_DIR)/lib/udev/rules.d/*-fuse.rules $(TARGET_DIR)/lib/udev/rules.d
+endef
+
+LIBFUSE_POST_INSTALL_TARGET_HOOKS += LIBFUSE_INSTALL_UDEV
+endif
+
 define LIBFUSE_INSTALL_TARGET_CMDS
 	cp -dpf $(STAGING_DIR)/usr/bin/fusermount $(TARGET_DIR)/usr/bin/
 	cp -dpf $(STAGING_DIR)/usr/lib/libfuse.so* $(TARGET_DIR)/usr/lib/
-	mkdir -p $(TARGET_DIR)/lib/udev/rules.d
-	cp $(STAGING_DIR)/lib/udev/rules.d/*-fuse.rules $(TARGET_DIR)/lib/udev/rules.d
 endef
 
 define LIBFUSE_DEVICES
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/2 package/libfuse: only install udev rules if (e)udev is enabled

Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

No point in installing udev rules if nothing will use it.

Committed to 2019.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/2 package/libfuse: only install udev rules if (e)udev is enabled

In reply to Peter Korsgaard
Quoted 6 lines · On Tue, 2 Apr 2019 22:56:01 +0200 Peter Korsgaard <[email protected]> wrote:

No point in installing udev rules if nothing will use it.

---
 package/libfuse/libfuse.mk | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Both applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH 2/2 package/libfuse: bump version to 2.9.9

In reply to Peter Korsgaard

Contains a number of fixes for issues discovered post-2.9.8. From the release notes:

- Fixed readdir bug when non-zero offsets are given to filler and the filesystem client, after reading a whole directory, re-reads it from a non-zero offset e.g. by calling seekdir followed by readdir.

https://github.com/libfuse/libfuse/releases/tag/fuse-2.9.9

---
 package/libfuse/libfuse.hash | 2 +-
 package/libfuse/libfuse.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/libfuse/libfuse.hash +1 -1
index 3d1b973071..f522325945 100644
@@ -1,5 +1,5 @@
 # Locally calculated after checking pgp signature
-sha256	5e84f81d8dd527ea74f39b6bc001c874c02bad6871d7a9b0c14efb57430eafe3	fuse-2.9.8.tar.gz
+sha256	d0e69d5d608cc22ff4843791ad097f554dd32540ddc9bed7638cc6fea7c1b4b5	fuse-2.9.9.tar.gz
 
 # Hash for license files:
 sha256	8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643	COPYING
package/libfuse/libfuse.mk +1 -1
index ab0131b057..074dc59886 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBFUSE_VERSION = 2.9.8
+LIBFUSE_VERSION = 2.9.9
 LIBFUSE_SOURCE = fuse-$(LIBFUSE_VERSION).tar.gz
 LIBFUSE_SITE = https://github.com/libfuse/libfuse/releases/download/fuse-$(LIBFUSE_VERSION)
 LIBFUSE_LICENSE = GPL-2.0, LGPL-2.1
Signature · 1 line
2.11.0
#4 lore raw

PATCH 2/2 package/libfuse: bump version to 2.9.9

Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

Contains a number of fixes for issues discovered post-2.9.8. From the release notes:

Quoted 7 lines

- Fixed readdir bug when non-zero offsets are given to filler and the filesystem client, after reading a whole directory, re-reads it from a non-zero offset e.g. by calling seekdir followed by readdir.

https://github.com/libfuse/libfuse/releases/tag/fuse-2.9.9

Committed to 2019.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard