Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47638 - pbbuttonsd-0.5.10 does not install config file
Summary: pbbuttonsd-0.5.10 does not install config file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-12 14:43 UTC by Michael Kiermaier
Modified: 2004-08-19 17:37 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 Michael Kiermaier 2004-04-12 14:43:51 UTC
from the changelog of pbbuttonsd, found at http://www.cymes.de/members/joker/projects/pbbuttons/clog-pbbuttonsd.txt

2004-03-30  0.5.9-5
[...]
	* write configfile to /etc now. All the link stuff has been
	  removed.

This change is not addressed in the current ebuild.

Reproducible: Always
Steps to Reproduce:
1. emerge =pbbuttonsd-0.5.10

Actual Results:  
Older config file /var/lib/pbbuttons/pbbuttonsd.conf gets erased.
/etc/pbbuttonsd.conf links to nowhere.

Expected Results:  
/etc/pbbuttonsd.conf is the config file or links to the config file.

This patch fixes the ebuild. The pbbuttonsd.conf will be at /etc (as suggested
by the changelog) and not at /var/lib/pbbuttons (as with the older ebuilds).
Maybe there should also be a line to copy the old config from the old to the new
location if it exists, to preserve it.

This is my first bugreport with patch. I am almost sure that I didn't do that in
the expected manner, so please tell me what I should change the next time.

Patch:

--- pbbuttonsd-0.5.10.ebuild    2004-04-12 23:33:38.581240072 +0200
+++ pbbuttonsd-0.5.10.ebuild    2004-04-12 23:34:22.267598736 +0200
@@ -37,10 +37,10 @@
        newexe ${FILESDIR}/pbbuttonsd.rc6 pbbuttonsd
        dodoc README COPYING
        #fix the symlink
-       rm ${D}/etc/pbbuttonsd.conf
+#      rm ${D}/etc/pbbuttonsd.conf
 #      mv ${D}/var/lib/pbbuttons/pbbuttonsd.conf ${D}/etc/pbbuttonsd.conf
 #      dosym /etc/pbbuttonsd.conf /var/lib/pbbuttons/pbbuttonsd.conf
-       dosym ${mydir}/pbbuttons/pbbuttonsd.conf /etc/pbbuttonsd.conf
+#      dosym ${mydir}/pbbuttons/pbbuttonsd.conf /etc/pbbuttonsd.conf
        dodir /etc/env.d
        echo "CONFIG_PROTECT=${mydir}/pbbuttons" > ${D}/etc/env.d/10pbbuttonsd
 }
Comment 1 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-08-19 17:37:59 UTC
this fix is in cvs. There is also a newer version available which no longer needs the fix.