Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293453 - media-gfx/sane-backends: udev rules use superfluous NAME="%k"
Summary: media-gfx/sane-backends: udev rules use superfluous NAME="%k"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Patrick Kursawe (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-17 04:38 UTC by Benjamin Schulz
Modified: 2009-11-22 23:14 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
all stange udev entries from /var/syslog (syslog,41.19 KB, text/plain)
2009-11-17 04:40 UTC, Benjamin Schulz
Details
udev-rule-6.patch: Remove `NAME="%k",` from UDEV rules (udev-rule-6.patch,1.08 KB, patch)
2009-11-17 11:30 UTC, Ian Abbott
Details | Diff
Ebuild patch for 1.0.20-r1 to apply udev-rule-6.patch (sane-backends-1.0.20-r1.ebuild-udev.patch,325 bytes, patch)
2009-11-17 11:33 UTC, Ian Abbott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Schulz 2009-11-17 04:38:44 UTC
emerge sys-fs/udev-147 

leads to

Nov 17 05:33:01 Laptop udevd[6359]: NAME="%k" is superfluous and breaks kernel supplied names, please remove it from /etc/udev/rules.d/70-libsane.rules:1165 
Nov 17 05:33:01 Laptop udevd[6359]: NAME="%k" is superfluous and breaks kernel supplied names, please remove it from /etc/udev/rules.d/70-libsane.rules:1168 
Nov 17 05:33:01 Laptop udevd[6359]: NAME="%k" is superfluous and breaks kernel supplied names, please remove it from /etc/udev/rules.d/70-libsane.rules:1170 
Nov 17 05:33:01 Laptop udevd[6359]: NAME="%k" is superfluous and breaks kernel supplied names, please remove it from /etc/udev/rules.d/70-libsane.rules:1172 
Nov 17 05:33:01 Laptop udevd[6359]: NAME="%k" is superfluous and breaks kernel supplied names, please remove it from /etc/udev/rules.d/70-libsane.rules:1174 
Nov 17 05:33:01 Laptop udevd[6359]: NAME="%k" is superfluous and breaks kernel supplied names, please remove it from /etc/udev/rules.d/70-libsane.rules:1176 
Nov 17 05:33:01 Laptop udevd[6359]: NAME="%k" is superfluous and breaks kernel supplied names, please remove it from /etc/udev/rules.d/70-libsane.rules:1178 
Nov 17 05:33:01 Laptop udevd[6359]: NAME="%k" is superfluous and breaks kernel supplied names, please remove it from /etc/udev/rules.d/70-libsane.rules:1180 
Nov 17 05:33:01 Laptop udevd[6359]: NAME="%k" is superfluous and breaks kernel supplied names, please remove it from /etc/udev/rules.d/70-vhba.rules:3 
Nov 17 05:33:01 Laptop udevd[6359]: NAME="%k" is superfluous and breaks kernel supplied names, please remove it from /etc/udev/rules.d/70-libsane.rules:1165 
Nov 17 05:33:01 Laptop udevd[6359]: NAME="%k" is superfluous and breaks kernel supplied names, please remove it from /etc/udev/rules.d/70-libsane.rules:1168 


Reproducible: Always

Steps to Reproduce:
Comment 1 Benjamin Schulz 2009-11-17 04:40:23 UTC
Created attachment 210483 [details]
all stange udev entries from /var/syslog
Comment 2 Benjamin Schulz 2009-11-17 04:40:44 UTC
emerge --info
Portage 2.1.7.5 (default/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.11-r0, 2.6.31-tuxonice x86_64)                                                                                              
=================================================================                                  
System uname: Linux-2.6.31-tuxonice-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-2.0.1                                                                                               
Timestamp of tree: Tue, 17 Nov 2009 03:30:20 +0000                                                 
app-shells/bash:     4.0_p35                                                                       
dev-java/java-config: 2.1.9-r1                                                                     
dev-lang/python:     2.5.4-r2, 2.6.4, 3.1.1-r1                                                     
dev-util/cmake:      2.6.4-r3                                                                      
sys-apps/baselayout: 2.0.1                                                                         
sys-apps/openrc:     0.5.2-r2                                                                      
sys-apps/sandbox:    2.2                                                                           
sys-devel/autoconf:  2.13, 2.63-r1                                                                 
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11                               
sys-devel/binutils:  2.20                                                                          
sys-devel/gcc-config: 1.4.1                                                                        
sys-devel/libtool:   2.2.6b                                                                        
virtual/os-headers:  2.6.30-r1                                                                     
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                     
ACCEPT_LICENSE="* -@EULA ut2003 dlj-1.1"                                                           
CBUILD="x86_64-pc-linux-gnu"                                                                       
CFLAGS="-mtune=native -O2 -pipe -fomit-frame-pointer"                                              
CHOST="x86_64-pc-linux-gnu"                                                                        
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"                         
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                  
CXXFLAGS="-mtune=native -O2 -pipe -fomit-frame-pointer"                                            
DISTDIR="/usr/portage/distfiles"                                                                   
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                       
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                                                                 
LANG="de_DE.UTF-8"                                                                                 
LDFLAGS="-Wl,-O1"                                                                                  
LINGUAS="de en en_GB"                                                                              
MAKEOPTS="-j4"                                                                                     
PKGDIR="/usr/portage/packages"                                                                     
PORTAGE_CONFIGROOT="/"                                                                             
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"        
PORTAGE_TMPDIR="/var/tmp"                                                                          
PORTDIR="/usr/portage"                                                                             
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/berkano /usr/local/portage/layman/sunrise /usr/local/portage/layman/java-overlay /usr/local/portage/layman/devnull /usr/local/portage/layman/xwing /usr/local/portage/layman/scarabeus /usr/local/portage/layman/wschlich-testing /usr/local/portage/layman/kde-testing /usr/local/portage/ownebuilds"                         
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                                     
USE="3ds 64bit 7zip X a52 aac acl acpi ads alsa amd64 archive aspell async automount bash-completion berkdb binfilter bittorrent bluetooth bzip2 cairo cardbus cdaudio cdda cddax cdparanoia cdr cdrom cern cgi chm cli consolekit context contrast corefonts cpudetection cracklib crypt cuda cups curl custom-optimization cvs dbus dga disk-partition dri dts dv dvb dvd dvdr dvdread dvi dx dxr2 dxr3 dxr3-audio-denoise ebook eds em84xx emacs embedded emovix encode excel exif exiv2 extra extras faac faad fam ffmpeg fftw filepicker firefox flac fontconfig foomaticdb fortran fortran95 fpx ftp gadu gd gdbm general ggi gif gimp git glib glibc-compat20 glibc-omitfp glut glw gmp gnome-print gnomecd gnuplot gphoto2 gpm grammar graphics graphviz groupwise gs gsm gstreamer gtk gtk-perl gtkhtml gtkspell gzip hal hdaps hdri hibernate-script html htmlhandbook http humanities ibmacpi iconv icu id3tag ieee1394 imagemagick imlib imlib2 ipv6 ipw4965 java java5 java6 jbig jpeg jpeg2k kdcraw kde kpathsea lapack laptop latex lcms ldap lensfun libwww lm_sensors logitech-mouse lyx lzma lzo mad maps matroska md5sum mdnsresponder-compat messenger mikmod mjpeg mmap mmx mmxext mng modules motif mozdevelop mozsha1 mp3 mp4 mp4live mpeg mpeg2 mplayer mudflap musepack ncurses network networkmanager nls nptl nptlonly nsplugin nuv nvidia octave office ogg ogg123 ogm omega openbabel openexr opengl opengl-video openmp openvpn pam parport parted pascal passwdqc pcre pdf perl php player plotutils png pop postscript ppds pppd preview-latex ps pstricks publishers python qq qt3support qt4 quicktime quotas radio rar raw readline realmedia redeyes reflection rpm rtc rtf rtsp run-as-root samba scanner schroedinger science scv sdl semantic-desktop session smp sms sndfile speex spell spl sql sse sse2 sse3 ssl ssse3 stream subversion svg swat sysfs syslog t1lib tcpd teletext tex4ht theora threads thunderbird tiff tk toolbar tools totem truetype type1 unicode unzip usb utils v4l v4l2 vcd vdpau vdr vhook vorbis wav wavpack webdav webkit winbind wma wmf wxwidgets wxwindows x264 xanim xcomposite xemacs xetex xext xine xinetd xml xmlreader xmlwriter xorg xprint xulrunner xv xvid xvmc zip zlib zoran" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa vga apm"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 Matthias Schwarzott gentoo-dev 2009-11-17 07:18:43 UTC
NAME="%k" can be safely removed and should be.

Optional the udev rules could be even more simplified:
Instead of every matching line assigning MODE and GROUP one can add a rule later matching on ENV{libsane_matched}=="yes"

ENV{libsane_matched}=="yes", MODE="0664", GROUP="scanner"
Comment 4 Benjamin Schulz 2009-11-17 08:25:27 UTC
Interestingly, the same error is also present in the file 

/etc/udev/rules.d/70-vhba.rules
Comment 5 Ian Abbott 2009-11-17 11:30:51 UTC
Created attachment 210500 [details, diff]
udev-rule-6.patch: Remove `NAME="%k",` from UDEV rules

This removes the `NAME="%k",` property match from the libsane.rules file generated by sane-desc.
Comment 6 Ian Abbott 2009-11-17 11:33:46 UTC
Created attachment 210501 [details, diff]
Ebuild patch for 1.0.20-r1 to apply udev-rule-6.patch
Comment 7 hirakendu 2009-11-19 10:05:05 UTC
Thanks for the patches. Works.
Comment 8 Priit Laes (IRC: plaes) 2009-11-19 11:04:50 UTC
There are similar rules in app-emulation/kvm
Comment 9 peng shao 2009-11-22 17:51:46 UTC
(In reply to comment #3)
> NAME="%k" can be safely removed and should be.
> 
> Optional the udev rules could be even more simplified:
> Instead of every matching line assigning MODE and GROUP one can add a rule
> later matching on ENV{libsane_matched}=="yes"
> 
> ENV{libsane_matched}=="yes", MODE="0664", GROUP="scanner"
> 

(In reply to comment #6)
> Created an attachment (id=210501) [details]
> Ebuild patch for 1.0.20-r1 to apply udev-rule-6.patch
> 

(In reply to comment #7)
> Thanks for the patches. Works.
> 

Thanks for the patch. Anybody knows when it is going into official portage? Thanks :)
Comment 10 Patrick Kursawe (RETIRED) gentoo-dev 2009-11-22 20:24:11 UTC
When? Now, I think. Thanks for the patch.
Comment 11 peng shao 2009-11-22 23:14:18 UTC
(In reply to comment #10)
> When? Now, I think. Thanks for the patch.
> 

Just found it:) Thank you all.