Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238842 - sys-libs/libchipcard, app-misc/towitoko: serial readers do not work as udev no longer provide devfs style /dev/tts/* devices
Summary: sys-libs/libchipcard, app-misc/towitoko: serial readers do not work as udev n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-27 08:20 UTC by kalle
Modified: 2009-03-13 20:02 UTC (History)
1 user (show)

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


Attachments
towitoko-2.0.7-r2.ebuild (towitoko-2.0.7-r2.ebuild,992 bytes, text/plain)
2009-03-08 21:51 UTC, Hanno Böck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kalle 2008-09-27 08:20:04 UTC
I use a chipdrive micro serial and it works fine with udev-115-r1. An upgrade to a newer version of udev is not possible. I can find nothing /dev/tts/* symlinks, there are no longer created. I'm not sure if towitoko or libchipcard uses these hardcoded device names, nevertheless it won't work without them.

The libchipcard-daemon is still running, but the reader cannot be detected or accessed.

Reproducible: Always

Actual Results:  
It works fine with sys-fs/udev-115-r1
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-29 15:57:34 UTC
Please post your `emerge --info' too.
Comment 2 kalle 2008-09-30 05:52:06 UTC
(In reply to comment #1)
> Please post your `emerge --info' too.
> 

Sorry, here is it:

Portage 2.1.4.4 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25.9 x86_64)
=================================================================
System uname: 2.6.25.9 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Timestamp of tree: Sun, 28 Sep 2008 08:49:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.muntinternet.net/pub/gentoo/ http://213.186.33.37/gentoo-distfiles/ ftp://213.186.33.37/gentoo-distfiles/ ftp://mirror.muntinternet.net/pub/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cddb cdparanoia cdr cli cracklib crypt cups dbus dga dri dts dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos ldap libnotify lzo mad midi mikmod mmx mmxext mp2 mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis xcomposite xml xorg xv xvid xvmc zlib" ALSA_CARDS="ens1371" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 kalle 2009-02-18 10:04:08 UTC
A new update of portage-tree indicates that some packages need >=sys-fs/udev-117, but the problem I wrote with use libchipcard and towitoko are not solved.
An installation of latast stable udev-124-r1 makes the cardreader useless. As temporary solution I added following rule to 50-udev.default.rules:

KERNEL=="ttyS[0-9]*",	NAME="%k", SYMLINK="tts/%n", GROUP="uucp", MODE="0660"

With this the reader works fine. But in top of the file I read this:
"do not edit this file, it will be overwritten on update"

What is the real solution for me?
Comment 4 Matthias Schwarzott gentoo-dev 2009-02-25 15:00:50 UTC
As far as I know /dev/tts/* is an obsolete devfs-name for the serial port devices. Can't towitoko or libchipcard not just use /dev/ttyS* ?

If you really need /dev/tts you can create it similar to what you already tried.

Add a rule like this to a new file in /etc/udev/rules.d/
KERNEL=="ttyS[0-9]*", SYMLINK+="tts/%n"

Custom rules should not overwrite NAME and also only add stuff to SYMLINK.

Still better is to find out if your app cannot just use /dev/ttyS*
Comment 5 Hanno Böck gentoo-dev 2009-03-08 21:51:12 UTC
Created attachment 184368 [details]
towitoko-2.0.7-r2.ebuild

Can you test this ebuild? The deprecated dev-paths are caused by the --enable-devfs-parameter, which -r1 enabled. devfs is deprecated and the "classic" devicenames still work with udev, so we should probably just remove that.

I have a towitoko serial reader, but not here at the moment so I can't test, will probably be able in a few weeks to do.
Comment 6 kalle 2009-03-11 16:33:00 UTC
Sorry, I'm gentoo user, not developer. So I need some time to change and test towitoko-2.0.7-r2.ebuild. For me this ebuild work fine without /dev/tts/*.
Thanks for help. Please add to the portage-tree.
Comment 7 Hanno Böck gentoo-dev 2009-03-13 20:02:29 UTC
should be fixed now. We should stable-mark -r2 within decent time to get it stable before the udev-changes go into stable.