SOURCES: libfuse-link.patch (NEW) - only fusemount needs -lselinux...

qboosh qboosh at pld-linux.org
Tue Dec 12 22:04:53 CET 2006


Author: qboosh                       Date: Tue Dec 12 21:04:53 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- only fusemount needs -lselinux; libulockmgr needs -lpthread

---- Files affected:
SOURCES:
   libfuse-link.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/libfuse-link.patch
diff -u /dev/null SOURCES/libfuse-link.patch:1.1
--- /dev/null	Tue Dec 12 22:04:53 2006
+++ SOURCES/libfuse-link.patch	Tue Dec 12 22:04:48 2006
@@ -0,0 +1,32 @@
+--- fuse-2.6.1/util/Makefile.am.orig	2006-12-12 21:38:22.338526000 +0100
++++ fuse-2.6.1/util/Makefile.am	2006-12-12 21:42:36.913034043 +0100
+@@ -4,6 +4,7 @@
+ bin_PROGRAMS = fusermount ulockmgr_server
+ 
+ fusermount_SOURCES = fusermount.c
++fusermount_LDADD = $(LIBSELINUX)
+ 
+ ulockmgr_server_SOURCES = ulockmgr_server.c
+ ulockmgr_server_CPPFLAGS = -D_FILE_OFFSET_BITS=64 -D_REENTRANT 
+--- fuse-2.6.1/configure.in.orig	2006-12-01 12:58:57.000000000 +0100
++++ fuse-2.6.1/configure.in	2006-12-12 21:42:20.996126989 +0100
+@@ -87,7 +87,9 @@
+ AM_CONDITIONAL(LINUX, test "$arch" = linux)
+ AM_CONDITIONAL(BSD, test "$arch" = bsd)
+ 
+-AC_CHECK_HEADERS(selinux/selinux.h, AC_CHECK_LIB(selinux, getfilecon))
++LIBSELINUX=
++AC_CHECK_HEADERS(selinux/selinux.h, AC_CHECK_LIB(selinux, getfilecon, [LIBSELINUX=-lselinux]))
++AC_SUBST(LIBSELINUX)
+ 
+ AC_CONFIG_FILES([fuse.pc Makefile lib/Makefile util/Makefile example/Makefile include/Makefile])
+ AC_OUTPUT
+--- fuse-2.6.1/lib/Makefile.am.orig	2006-12-01 12:59:21.000000000 +0100
++++ fuse-2.6.1/lib/Makefile.am	2006-12-12 21:51:19.302803339 +0100
+@@ -31,5 +31,6 @@
+ 
+ libulockmgr_la_SOURCES = ulockmgr.c
+ libulockmgr_la_LDFLAGS = -version-number 1:0:0
++libulockmgr_la_LIBADD = -lpthread
+ 
+ EXTRA_DIST = fuse_versionscript
================================================================


More information about the pld-cvs-commit mailing list