media-gfx/sane-backends-1.0.16-r2 avalancha lib # equery f sane-backends | grep \/lock\/ avalancha lib # tacvbo@avalancha sane-backends $ export SANE_DEBUG_SANEI_ACCESS=255 tacvbo@avalancha sane-backends $ xsane [sanei_debug] Setting debug level of sanei_access to 255. [sanei_access] sanei_access_init: >plustek< [sanei_access] sanei_access_lock: devname >libusb:002:005<, timeout: 5 [sanei_access] sanei_access_lock: open >/var/lib/lock/sane/LCK..libusb:002:005< failed: No such file or directory Relevant parts on configure output: (modified to see what appens) ----- chgrp scanner sanetest.file chgrp: changing group of `sanetest.file': Operation not permitted ----- configure: WARNING: Group scanner does not exist on this system. configure: WARNING: Locking feature will be disabled. user portage can not chgrp sanetest.file on /var/tmp/portage/sane-backends-1.0.16-r2/work/sane-backends-1.0.16 ls -la sanetest.file -rw-r--r-- 1 portage portage 0 Sep 9 16:51 sanetest.file # emerge info Portage 2.0.52-r1 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo x86_64) ================================================================= System uname: 2.6.13-gentoo x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.0_pre8 ccache version 2.4 [enabled] dev-lang/python: 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy ccache collision-protect distlocks keeptemp multilib-strict noauto parallel-fetch sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 GAPING_SECURITY_HOLE X Xaw3d aac aim alsa avi bash-completion berkdb bitmap-fonts bluetooth buttons bzip2 cdparanoia cdr crypt cups curl dga directfb dvd dvdread emacs emboss encode fam fbcon flac foomaticdb fortran gdbm gif gimpprint gpgme gpm gstreamer gtk gtk2 hlapi icq imagemagick imap imlib ipv6 irc jabber java javascript jpeg justify leim libcaca libwww lzw lzw-tiff mad mikmod mng motif mozdevelop mozsvg mp3 mpeg mpi msn ncurses new-login nls nptl nvidia offensive ogg oggvorbis opengl oss pam pcre pdflib perl png python quicktime readline real rtc samba scanner sdl sms spell ssl svg symlink tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis wmf xml2 xmms xpm xprint xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS Reference: Bug 104025
Created attachment 68067 [details, diff] sane-backends-1.0.16-r2.patch
Note: portage user is not inside scanner group, so it can not `chgrp` to root:scanner so the test fails. My proposed solution in Attachment 68067 [details, diff]. :-) The other solution is to modify the configure script in order to skip that test, but I prefer this one.
Sounds reasonable, thanks. Didn't notice this since I didn't use userpriv (will do this from now on).