ir-keytable fails to load keymap if second line is a comment

Bug #936581 reported by frankster
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
v4l-utils (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Fix Released
Undecided
Unassigned

Bug Description

The following keymap fails to load:
# table kworld_pc160-2t, type: NEC

#0x866b0x kworld log button - not sure what this does
#0x866b16 button between kworld button and power button
0x866b1d KEY_POWER

frankster@mythtv:/etc/rc_keymaps$ sudo ir-keytable -c -p NEC -w kworld_pc160-2t
Invalid parameter on line 1 of kworld_pc160-2t
Invalid parameter(s)
ir-keytable: -w: (PROGRAM ERROR) Option should have been recognized!?

In order to make the keymap work I had to make sure that the first line after the header was not a comment:
# table kworld_pc160-2t, type: NEC

0x866b1d KEY_POWER
#0x866b0x kworld log button - not sure what this does
#0x866b16 button between kworld button and power button

I would expect the programme to be able to handle arbitrary comment line positioning.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: ir-keytable 0.8.5-3ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-17.26-generic 3.2.6
Uname: Linux 3.2.0-17-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Sun Feb 19 22:43:10 2012
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: v4l-utils
UpgradeStatus: Upgraded to oneiric on 2011-11-06 (105 days ago)

Revision history for this message
frankster (wtfrank) wrote :
summary: - fails if second line is a comment
+ ir-keytable fails to load keymap if second line is a comment
Revision history for this message
Gregor Jasny (gjasny) wrote :

Hello,

the commit message in http://git.linuxtv.org/v4l-utils.git/commitdiff/a3b4e693fe28b3ac6aa1ec892661a61779a76ffe seems to describe your problems.

Please try the latest version (0.8.6) of ir-keytable from the libv4l PPA:

https://code.launchpad.net/~libv4l/+recipe/v4l-utils-stable-0.8

apt-add-repository ppa:libv4l/stable
apt-get update
apt-get upgrade

Does this fix your problems?

Thanks,
Gregor

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello frankster, or anyone else affected,

Accepted v4l-utils into precise-proposed. The package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in v4l-utils (Ubuntu Precise):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you test the update so it can move out of staging?

Revision history for this message
Stéphane Graber (stgraber) wrote :

Works fine here.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Gregor Jasny (gjasny) wrote :

BEFORE:

gjasny@ubuntu:~$ dpkg -l ir-keytable
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii ir-keytable 0.8.6-1ubuntu1 Alter keymaps of Remote Controller devices

gjasny@ubuntu:~$ sudo ir-keytable -c -p NEC -w kworld_pc160-2t
Invalid parameter on line 1 of kworld_pc160-2t
Invalid parameter(s)
ir-keytable: -w: (PROGRAM ERROR) Option should have been recognized!?
Try `ir-keytable --help' or `ir-keytable --usage' for more information.

NOW:

gjasny@ubuntu:~$ dpkg -l ir-keytable
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii ir-keytable 0.8.6-1ubuntu2 Alter keymaps of Remote Controller devices

gjasny@ubuntu:~$ sudo ir-keytable -c -p NEC -w kworld_pc160-2t
Read kworld_pc160-2t table
Old keytable cleared
Wrote 1 keycode(s) to driver
Protocols changed to NEC

So from my POV the package should migrate from proposed to updates.

Quantal needs 0.8.8-1ubuntu1 to resolve this bug. I asked Martin to import http://alioth.debian.org/~gjasny-guest/ubuntu/v4l-utils_0.8.8-1ubuntu1.dsc to resolve the bug for Quantal.

Revision history for this message
Steve Langasek (vorlon) wrote :

Gregor, the source package you've pointed to has this changelog entry:

v4l-utils (0.8.8-1ubuntu1) quantal; urgency=low

  * Merge with Debian unstable. Remaining Ubuntu changes:
    - Stop building the lib32* packages on amd64. (LP #808064)

However, this is inaccurate. Reviewing the delta against Debian shows an additional patch, debian/patches/gcc-4.7.diff. Please document this added patch in the changelog.

BTW, gcc-4.7 is now the default in Debian unstable as well. I don't know why you would have seen a build failure in Launchpad while there's no bug report in Debian, given that there has been a mass bug filing for gcc-4.7 issues, but you may want to double-check that the package is buildable there.

Revision history for this message
Gregor Jasny (gjasny) wrote : Re: [Bug 936581] Re: ir-keytable fails to load keymap if second line is a comment

Hello,

I just did a 0.8.8-2 Debian upload containing the aforementioned GCC-4.7
patch and some others. I re-generated the Ubuntu package against the
Debian one. It can be found here:

http://alioth.debian.org/~gjasny-guest/ubuntu/v4l-utils_0.8.8-2ubuntu1.dsc

Thanks,
Gregor

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package v4l-utils - 0.8.6-1ubuntu2

---------------
v4l-utils (0.8.6-1ubuntu2) precise-proposed; urgency=low

  * Update upside down table to latest version
  * Fix ir-keytable keymap parsing (LP: #936581)
  * Fix tinyjpeg array out of bounds access
 -- Gregor Jasny <email address hidden> Thu, 10 May 2012 21:02:18 +0200

Changed in v4l-utils (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

upload sponsored to quantal - thanks!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package v4l-utils - 0.8.8-2ubuntu1

---------------
v4l-utils (0.8.8-2ubuntu1) quantal; urgency=low

  * Merge with Debian unstable. Remaining Ubuntu changes:
    - Stop building the lib32* packages on amd64. (LP: #808064)
  * Fix ir-keytable keymap parsing (patch in upstream 0.8.7) (LP: #936581)
 -- Gregor Jasny <email address hidden> Wed, 06 Jun 2012 08:54:25 +0200

Changed in v4l-utils (Ubuntu):
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.