[sane-devel] compilation of sane

Johannes Meixner jsmeix at suse.de
Fri May 25 12:49:53 UTC 2007


Hello,

On May 25 07:30 m. allan noah wrote (shortened):
> unfortunately, these 'resmgr' things are a SUSE addition to sane, are you
> using clean sane source, or something from them? perhaps johannes can help...

Only for your information regarding the current state of resmgr,
see the last section of
http://lists.alioth.debian.org/pipermail/sane-devel/2007-January/018351.html

My current disable-resmgr-support.patch (since since openSUSE 10.2)
is (some lines are wrapped here):
-----------------------------------------------------------------------
--- configure.in.orig   2006-07-03 00:21:42.000000000 +0200
+++ configure.in        2006-09-11 10:47:29.000000000 +0200
@@ -131,15 +131,21 @@ AC_CHECK_HEADERS([io/cam/cam.h],,,[#incl
 
 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"
+#              ]
+#      )
+#])
 
 AC_CHECK_HEADER(usbcalls.h,[
                        AC_DEFINE(HAVE_USBCALLS,1,[define if you have 
the usbcalls library])
-----------------------------------------------------------------------


Regarding the HZ stuff, see
http://lists.alioth.debian.org/pipermail/sane-devel/2007-January/018479.html

The fixed HZ compile-time value (no longer supported by new glibc)
should be replaced by the more correct sysconf(_SC_CLK_TCK) runtime
value because a compile-time value works only if the compile-system
is the same as the runtime-system.


Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany
AG Nuernberg, HRB 16746, GF: Markus Rex



More information about the sane-devel mailing list