Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88199 - etc-update complains about lircd.conf and wanting to update it. It should leave lircd.conf alone!!
Summary: etc-update complains about lircd.conf and wanting to update it. It should le...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-06 12:04 UTC by georgia_tech_swagger
Modified: 2005-04-13 11:21 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description georgia_tech_swagger 2005-04-06 12:04:35 UTC
lircd.conf is where people using LIRC (Linux Infrared Remote Control) store their SPECIFIC remote control settings/codes.  It is a file that etc-update should leave alone and stop complaining about.  If a user lets etc-update "update" the lircd.conf, they will immediately lose all LIRC functionality upon LIRC restart or system reboot.  They will then have to go retrieve their remote codes again if there is a pre-existing lircd.conf on the net, or otherwise go through the painstaking process of doing a button-by-button configuration of the entire remote.

Reproducible: Always
Steps to Reproduce:
1. emerge lirc
2. etc-update
3.

Actual Results:  
If user doesn't overwrite, etc-update will keep nagging.
If user does overwrite, lircd is toast upon system reboot or lirc restart.

Expected Results:  
Leave lircd.conf alone -- many users -- especially MythTV users -- will have no
reason to change this file when it's set.

Even though this is "kinda" picky, I made this bug critical because it results
in data loss in lircd.conf -- something I assure you one doesn't want to have
happen if they have programmed lirc for an unusual remote from scratch.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2005-04-06 12:29:56 UTC
lanius, you could try a solution like this:

pkg_preinst() {
      cp ${ROOT}/etc/lircd.conf ${IMAGE}/etc
}

And that will cause lirc to just merge the same file into the filesystem that was in the filesystem before.  The advantage is that even if you make a binary package, preinst happens premerge on that as well, so it's always the current file that gets merged onto itself.
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2005-04-13 11:21:45 UTC
ok, done