configure for devinput should show contents of /dev/input/by-id

Bug #695767 reported by Roger Binns
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mythbuntu
Fix Released
Undecided
Unassigned
One Hundred Papercuts
Invalid
Undecided
Unassigned
lirc (Ubuntu)
Fix Released
Undecided
Hawk

Bug Description

Binary package hint: lirc

If you have a infra-red remote control that shows up as an input device then doing the configuration stage wants you to pick the correct /dev/input/ interface and does so by showing the contents of that directory. One member shown is 'by-id' but that is a directory so picking it makes no sense.

But in any event configuration should really show the contents of /dev/input/by-id since the names contained within are stable whereas the various numbered interfaces (input3, event6 etc) are not.

Some more context here http://ubuntuforums.org/showpost.php?p=10278924&postcount=6

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: lirc 0.8.7~pre3-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-24.42-generic 2.6.35.8
Uname: Linux 2.6.35-24-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Thu Dec 30 10:45:34 2010
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: lirc

Related branches

Revision history for this message
Roger Binns (ubuntu-rogerbinns) wrote :
Revision history for this message
Hawk (beehock) wrote :

The following changes to /var/lib/dpkg/info/lirc.postinst seem to fix the issue. Its working for me. Now have to figure out how to submit this change upstream.

228,229c228,230
< EVENTS=`ls /dev/input | grep -v "by-path" | sed 's/^/,\ \/dev\/input\//' | tr '\n' '\0'`
< db_subst lirc/dev_input_device EVENTS $EVENTS_BY_PATH $EVENTS
---
> EVENTS_BY_ID=`ls /dev/input/by-id | sed 's/^/,\ \/dev\/input\/by-id\//' | tr '\n' '\0'`
> EVENTS=`ls /dev/input | grep -v "by-path" | grep -v "by-id" | sed 's/^/,\ \/dev\/input\//' | tr '\n' '\0'`
> db_subst lirc/dev_input_device EVENTS $EVENTS_BY_PATH $EVENTS_BY_ID $EVENTS

Hawk (beehock)
Changed in lirc (Ubuntu):
status: New → Confirmed
Hawk (beehock)
Changed in lirc (Ubuntu):
assignee: nobody → Hock (beehock)
status: Confirmed → In Progress
Hawk (beehock)
Changed in lirc (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Hock, thanks for this! Can you please forward this to Debian? It doesn't need to go to "real" upstream, as this is only a packaging change. But it should be reported as a Debian bug with the patch, see http://www.debian.org/Bugs/Reporting

Please note that your branch changes #DEBHELPER# into the dh_installinit generated code, which should not be done. Please exclude that from forwarding (I'll do that for sponsoring).

Revision history for this message
Martin Pitt (pitti) wrote :

See merge proposal, this needs some fixing. Thanks!

Changed in lirc (Ubuntu):
status: Fix Committed → In Progress
Revision history for this message
Hawk (beehock) wrote :

Martin,

I need wrote to Stefan Lippers-Hollmann before asking for sponsorship and he informed me that ubuntu lirc deb does not follow Debian lirc deb.

He gave me the follow link for comparison.

http://svn.debian.org/viewsvn/pkg-lirc/lirc/trunk/debian/lirc.postinst?revision=443&view=markup

Hawk (beehock)
Changed in lirc (Ubuntu):
status: In Progress → Fix Committed
Changed in hundredpapercuts:
status: New → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lirc - 0.8.7-0ubuntu2

---------------
lirc (0.8.7-0ubuntu2) natty; urgency=low

  * configure for devinput should show contents of /dev/input/by-id
    (LP: #695767)
 -- BeeHock Goh <email address hidden> Thu, 03 Mar 2011 17:37:25 +0100

Changed in lirc (Ubuntu):
status: Fix Committed → Fix Released
Hawk (beehock)
Changed in mythbuntu:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.