LIRC update overwrites config file

Bug #206609 reported by rhpot1991
26
Affects Status Importance Assigned to Milestone
Mythbuntu
Fix Released
Medium
Unassigned
lirc (Ubuntu)
Fix Released
Critical
Mario Limonciello

Bug Description

LIRC Version: 0.8.3~pre1-0ubuntu7
MCC Version: 0.25-0ubuntu1
MLG Version: 0.20-0ubuntu1

To configure LIRC originally I chose the imon controller from MCC, ran irrecord on my MCE remote and dropped the resulting lircd.conf into /etc/lirc/. Then I ran mythbuntu-lircrc-gernator on it. After the latest updates my custom created lircd.conf file was overwritten with the original generated by MCC. The custom lircd.conf was backed up properly, but I was never asked to overwrite it or not. In theory this should only be a problem if the user has a custom lircd.conf file. This happened on 2 different boxes, one using imon and the other a hauppauge remote/receiver.

Revision history for this message
rhpot1991 (rhpot1991) wrote :
Revision history for this message
Nick Fox (nickj-fox) wrote :

When the latest version of lirc applies it doesn't check for an existing lircd.conf and replaces it when you select a remote, it should be known to the user that it is doing this.

Changed in lirc:
status: New → Confirmed
Revision history for this message
mvisa (mikko-puolikuu) wrote :

I experienced this too. What is the point of overwriting working configs without informing the user? Is the old config incompatible with the new binary? Doesn't seem to be that way as the new config files did not work for me AT ALL. When i replaced with old config everything works as before.

What's the reasoning for this?

If config files absolutely need to be updated, AT LEAST the user must be informed of this.

Also using iMON receiver but with Logitech Harmony 525 remote.

Revision history for this message
Mario Limonciello (superm1) wrote : Re: [Bug 206609] Re: LIRC update overwrites config file

mvisa wrote:
> I experienced this too. What is the point of overwriting working configs
> without informing the user? Is the old config incompatible with the new
> binary? Doesn't seem to be that way as the new config files did not work
> for me AT ALL. When i replaced with old config everything works as
> before.
>
> What's the reasoning for this?
>
> If config files absolutely need to be updated, AT LEAST the user must be
> informed of this.
>
> Also using iMON receiver but with Logitech Harmony 525 remote.
>
This boils down to a lot of confusion with the way the config files get handled.
 Choosing "Custom" avoids overwriting the remote. It was supposed to "help"
upgrade scenarios, but appears to have done more damage than harm.

--
Mario Limonciello
<email address hidden>

Revision history for this message
Lexicus (lexicus-email) wrote :

I ran the config 2x, so now I don't have the "backup" to revert to.

Revision history for this message
TEN (launchpad-20-ten) wrote :

As had been predicted in https://bugs.launchpad.net/ubuntu/+source/lirc/+bug/239938 - warning months ago that

> the automatic replacement of /etc/lirc/lircd.conf without warning might lead to final loss of one's configuration

(see also the comment there) - this should be fixed to avoid deleting what can amount to hours of work for some remotes.

Changed in mythbuntu:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Mario Limonciello (superm1) wrote :

this is fixed in bzr #30

Changed in lirc:
assignee: nobody → superm1
importance: Undecided → Critical
status: Confirmed → Fix Committed
Changed in mythbuntu:
status: Confirmed → Fix Committed
Revision history for this message
Mario Limonciello (superm1) wrote :

Sponsors, please pull the latest copy of the bzr branch linked on this bug for sponsorship.

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

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

---------------
lirc (0.8.3-0ubuntu2) intrepid; urgency=low

  * debian/patches/25_upstream_2.6.26.patch:
    - Fix lirc-modules-source compilation on 2.6.26 by pulling some
      patches from CVS (LP: #247233)
  * debian/rules:
    - Install original modules back into proper location for
      intrepid kernel (LP: #242216)
  * debian/patches/37_msi_tv_anywhere.dpatch:
    - Create patch for supporting MSI TV @anywhere remote. (LP: #241830)
  * debian/lirc.postinst:
    - Correct path to look for module in Intrepid.
    - Ask for a path when using dvico remotes. (LP: #238032)
    - Don't accidentally overwrite lircd.conf and hardware.conf
      when things haven't really changed at all. (LP: #206609)
  * debian/lirc.init.d:
    - Don't allow udev to put us into endless spinning loops. Instead
      pray that module hotplugging worked for all things USB. (LP: #269743)
  * debian/lirc.fdi:
    - Include this FDI file to prevent in kernel support for the
      saa7134 when LIRC is installed. (LP: #204960, #164627)
  * debian/rules:
    - Install FDI file.
  * debian/lirc.install:
    - List FDI file.
  * debian/patches/22_hauppauge_novat_500.dpatch:
    - Adapt to include alternative numeric keys. (LP: #224080)
  * debian/patches/25_upstream_2.6.27.dpatch:
    - Update to content that is currently sitting in Ubuntu GIT
      tree.

 -- Mario Limonciello <email address hidden> Wed, 24 Sep 2008 12:02:17 -0500

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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