Skip to contentSkip to conversation

package/owfs: fix link with FUSE

PATCH New Yann E. MORIN 2 participants 2 messages Mar 6, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/owfs: fix link with FUSE

owfs reinvents its own weird and wicked mechanism to find libfuse. It believes that, by default, FUSE is installed in /usr/local, and forcibly uses that path to look for headers and libs.

This is obviously wrong in cross-compilation, and triggers our check for unsafe header/library paths.

The best option to fix that would be to use pkg-config to find FUSE, but this is a bit involved. Instead, use config options to specify the path to the headers and libs.

Fixes:

    http://autobuild.buildroot.org/results/2c8/2c8baf6910d7ac2e3c92efa62cc3b9d3737e1fb5/
    http://autobuild.buildroot.org/results/1f9/1f994f53ceca434ebd1d87923f85b5ed71229d94/
    and a few others...
Cc Arnout Vandecappelle <[email protected]>
---
 package/owfs/owfs.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
package/owfs/owfs.mk +4 -1
index e8c451c..23167f4 100644
@@ -17,8 +17,11 @@ OWFS_LICENSE = GPLv2+, LGPLv2 (owtcl)
 OWFS_LICENSE_FILES = COPYING COPYING.LIB
 
 ifeq ($(BR2_PACKAGE_LIBFUSE),y)
-OWFS_CONF_OPTS += --enable-owfs
 OWFS_DEPENDENCIES += libfuse
+OWFS_CONF_OPTS += \
+	--enable-owfs \
+	--with-fuseinclude=$(STAGING_DIR)/usr/include \
+	--with-fuselib=$(STAGING_DIR)/usr/lib
 else
 OWFS_CONF_OPTS += --disable-owfs
 endif
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 package/owfs: fix link with FUSE

Dear Yann E. MORIN,

Quoted 16 lines · Yann E. MORIN

owfs reinvents its own weird and wicked mechanism to find libfuse. It believes that, by default, FUSE is installed in /usr/local, and forcibly uses that path to look for headers and libs.

This is obviously wrong in cross-compilation, and triggers our check for unsafe header/library paths.

The best option to fix that would be to use pkg-config to find FUSE, but this is a bit involved. Instead, use config options to specify the path to the headers and libs.

Fixes:

    http://autobuild.buildroot.org/results/2c8/2c8baf6910d7ac2e3c92efa62cc3b9d3737e1fb5/
    http://autobuild.buildroot.org/results/1f9/1f994f53ceca434ebd1d87923f85b5ed71229d94/
    and a few others...
Quoted 5 lines
Cc Arnout Vandecappelle <[email protected]>
---
 package/owfs/owfs.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com