lirc overwrote my lircd.conf

Bug #129038 reported by Martin Emrich
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lirc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: lirc

After upgrading to 0.8.2-0ubuntu3, my remote stopped working. Looking into /etc/lirc/lircd.conf, I saw that it is >60k big, and contains many contributed config sets for my remote (ATI X10 USB). lircd.conf.dpkg-old contains one other contributed config, but my original lircd.conf (containing my X10 config along with some other self-defined configs for several IR remotes) is gone for good... If I just had a backup :(

Ciao

Martin

Related branches

Revision history for this message
Mario Limonciello (superm1) wrote :

The behavior of the postinst script will simple rename your existing config to /etc/lirc/lircd.dpkg-old. Your old configuration should be present there, unless you reconfigured lirc multiple times to choose different remotes.
Here is the snippet of what the postinst script does:
                # we don't restore the file unless the user is (re)configuring
                elif $CONFIG_CHANGED \
                        && [ -f "/usr/share/lirc/remotes/$RET" ];then
                        if [ -f "/etc/lirc/lircd.conf" ]; then
                                mv /etc/lirc/lircd.conf /etc/lirc/lircd.conf.dpkg-old
                        fi
                        cp /usr/share/lirc/remotes/$RET \
                                /etc/lirc/lircd.conf
                fi

Nonetheless, I do see that this will be confusing to some people who are upgrading lirc and suddenly get a pretty option to choose a remote. I'm attaching a debdiff that will show a more informative message

Changed in lirc:
status: New → Confirmed
Revision history for this message
Martin Emrich (emme) wrote :

Ok. I don't know if the packaging guidelines allow this, but maybe it should abort if there ist already a lircd.conf.dpkg-old. In the meantime, I recreated my lircd.conf with irrecord, and my remote works again like a charm. By the way: in the .debdiff file, there seems to be a typo, theres "lirc.conf-dpkg-old" (mind the dash instead of the dot) everywhere.

Ciao

Martin

Colin Watson (cjwatson)
Changed in lirc:
assignee: nobody → kamion
Revision history for this message
Mario Limonciello (superm1) wrote :

I am uploading a newer debdiff to cover the typo in the template, as well as to solve another open lirc bug, 129689

Revision history for this message
Mario Limonciello (superm1) wrote :

lirc (0.8.2-0ubuntu4) gutsy; urgency=low

  * Clarify the intentions of choosing a remote (LP: #129038)
  * Add 17_devinput.dpatch to show correct DEVICE
    in doc/lirc.hwdb. (LP: #129689)
  * Write out REMOTE="" to lircd.conf as well to allow
    external apps to parse this information.

 -- Mario Limonciello <email address hidden> Sun, 29 Jul 2007 13:39:17 -0500

Changed in lirc:
status: Confirmed → Fix Released
Revision history for this message
dgatwood (dgatwood) wrote :

This bug seems to have regressed to being broken again in 10.04.

Revision history for this message
Colin Watson (cjwatson) wrote :

dgatwood: Perhaps it would be better to file a new bug with full details. Just "broken" on its own doesn't offer much to go on, and a new report would be better anyway in case it turns out not to be caused by the same thing as the original bug.

Changed in lirc (Ubuntu):
assignee: Colin Watson (cjwatson) → nobody
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.