Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335393 - net-misc/wicd-1.7.0 ebuild doesn't create /etc/wicd/wired-settings.conf
Summary: net-misc/wicd-1.7.0 ebuild doesn't create /etc/wicd/wired-settings.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Thomas Kahle (RETIRED)
URL:
Whiteboard:
Keywords:
: 359073 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-31 11:56 UTC by James Broadhead
Modified: 2011-03-28 14:02 UTC (History)
3 users (show)

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


Attachments
patch to check before running sed (wicd-init.patch,381 bytes, patch)
2010-09-01 21:58 UTC, James Broadhead
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Broadhead 2010-08-31 11:56:27 UTC
>> emerge wicd
>> /etc/init.d/wicd start
wicd            | * Starting wicd daemon ...
wicd            |sed: can't read /etc/wicd/wired-settings.conf: No such file or directory

The ebuild should create an empty/default wired-settings.conf to stop this error. If a wicd run is required to create this, then this should either be performed automatically in the ebuild, or mentioned in einfo.

Reproducible: Always
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-08-31 16:49:32 UTC
(In reply to comment #0)
> >> emerge wicd
> >> /etc/init.d/wicd start
> wicd            | * Starting wicd daemon ...
> wicd            |sed: can't read /etc/wicd/wired-settings.conf: No such file or
> directory

Never seen this error before.

 
> The ebuild should create an empty/default wired-settings.conf to stop this
> error.

The caveat of this approach is that an etc-update/dispatch-conf will try to overwrite the populated conf file with a null file. That may or may not be ok.

> If a wicd run is required to create this, then this should either be
> performed automatically in the ebuild, or mentioned in einfo.

Are you interested in investigating the proper resolution here?
Comment 2 James Broadhead 2010-09-01 21:57:01 UTC
>> emerge -C wicd 
>> mv /etc/wicd /etc/wicd-old
>> emerge wicd
>> /etc/init.d/wicd start
wicd            | * Starting wicd daemon ...
wicd            |sed: can't read /etc/wicd/wired-settings.conf: No such file or directory
 
I can replicate with the above. 

Have attached a simple patch to the init script to check for wired-settings before running sed. 


Comment 3 James Broadhead 2010-09-01 21:58:35 UTC
Created attachment 245689 [details, diff]
patch to check before running sed
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-09-07 15:48:39 UTC
(In reply to comment #3)
> Created an attachment (id=245689) [details]
> patch to check before running sed
> 

ah, yes. I forgot about that. Thanks.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-12-20 23:50:51 UTC
assigning to new maintainer.
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-03-15 18:59:38 UTC
*** Bug 359073 has been marked as a duplicate of this bug. ***
Comment 7 Dane Smith (RETIRED) gentoo-dev 2011-03-28 14:02:45 UTC
Fixed in 1.7.1_beta2-r3. Thanks for reporting.
Closing.