Hello, On Apr 26 12:28 Julien BLACHE wrote (shortened): > Speaking of resmgr, I think we can safely remove any code using it. I > doubt it's still in use in SuSE... I'd be very surprised if it was.
We (i.e. openSUSE/Novell) do no longer use resmgr "inside" SANE since a longer time. If no one else uses resmgr "inside" SANE, all resmgr related code could be completely removed from SANE. FYI: Our sane-backends RPM changelog contains: ---------------------------------------------------------------- * Mon Sep 11 2006 jsmeix at suse.de - disable-resmgr-support.patch disables the resmgr support in SANE which is no longer needed in SANE because resmgr works now outside of SANE via ACLs for the scanner device nodes. ---------------------------------------------------------------- And our disable-resmgr-support.patch is (too long lines are shown wrapped here): ---------------------------------------------------------------- --- 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" +# ] +# ) +#]) ---------------------------------------------------------------- Mad world: I added a patch to get rid of those stuff which was initially introduced by us. By the way: Some time ago resmgr was completely replaced by a HAL-based stuff but now HAL will be dropped (because HAL is declared "deprecated") so that the HAL-based stuff was already in advance replaced by a udev-based stuff (of course until this will be replaced by whatever future "completely-new-and-better-than-anything-else-stuff" ;-) Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex
