1
0
forked from pool/sane-backends
sane-backends/disable-resmgr-support.patch
Marcus Meissner 1de15bc009 Accepting request 23781 from home:coolo:branches:openSUSE:Factory:branched
Copy from home:coolo:branches:openSUSE:Factory:branched/sane-backends via accept of submit request 23781 revision 2.
Request was accepted with message:
ok

OBS-URL: https://build.opensuse.org/request/show/23781
OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=13
2009-11-15 13:43:12 +00:00

36 lines
1.0 KiB
Diff

Index: configure.in
===================================================================
--- configure.in.orig
+++ configure.in
@@ -155,15 +155,21 @@ AC_CHECK_HEADERS([asm/io.h],,,[#include
SANE_CHECK_MISSING_HEADERS
-AC_CHECK_HEADER(resmgr.h,[
- AC_CHECK_LIB(
- resmgr,
- rsm_open_device,[
- AC_DEFINE(HAVE_RESMGR,1,[define if you have the resmgr library])
- LIBS="$LIBS -lresmgr"
- ]
- )
-])
+# Since Suse Linux 10.0 resmgr installs ACLs on device nodes.
+# Therefore there is no need to patch applications with special resmgr
+# support anymore.
+# As the "rsm_open_device" calls in sanei_scsi.c and sanei_usb.c
+# are optionally via "ifdef HAVE_RESMGR" with fallback "open" calls,
+# the special resmgr support is not removed but only disabled here:
+#AC_CHECK_HEADER(resmgr.h,[
+# AC_CHECK_LIB(
+# resmgr,
+# rsm_open_device,[
+# AC_DEFINE(HAVE_RESMGR,1,[define if you have the resmgr library])
+# LIBS="$LIBS -lresmgr"
+# ]
+# )
+#])
dnl ***********************************************************************