Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 214638 - net-misc/networkmanager uses different format for dns_servers (baselayout-1 compatibility)
Summary: net-misc/networkmanager uses different format for dns_servers (baselayout-1 c...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Robert Piasek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-25 05:43 UTC by bruno randolf
Modified: 2012-02-27 05:38 UTC (History)
3 users (show)

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 bruno randolf 2008-03-25 05:43:35 UTC
the networkmanager gentoo backend expects dns_servers to be a single space separated string, while the rest of the gentoo documentation and /etc/conf.d/net.example uses a format with brackets.

e.g. networkmanager cannot handle 

dns_servers_eth0=( "192.168.3.1" "215.170.93.234" "210.145.254.170" )

but 

dns_servers_eth0="192.168.3.1 215.170.93.234 210.145.254.170"

works fine both with networkmanager and /etc/init.d/net.eth0. 

either update the documentation or add support for the first format to networkmanager, please.

Reproducible: Always

Steps to Reproduce:
1. use dns_servers_eth0=( "192.168.3.1" "215.170.93.234" "210.145.254.170" )
2. restart NetworkManager
3. /etc/resolv.conf will be empty

1. use dns_servers_eth0="192.168.3.1 215.170.93.234 210.145.254.170"
2. restart NetworkManager
3. /etc/resolv.conf will contain nameservers
Actual Results:  
/etc/resolv.conf empty

Expected Results:  
/etc/resolv.conf should contain nameservers
Comment 1 Steev Klimaszewski (RETIRED) gentoo-dev 2008-03-26 04:21:33 UTC
Unfortunately, im fairly afk lately, I am set as devaway dealing with rl issues - I check my email but I don't have a lot of free time currently.  Patches are greatly appreciated - I saw the other one you did but haven't looked it over yet.
Comment 2 bruno randolf 2008-03-26 04:34:36 UTC
hey, i'm willing to help out, but i'm not sure which way is the better one. it seems /etc/init.d/net.eth0 can deal with the space separated format, so as long as this one is used its allright. so i see option

1) update the documentation and use space separated string everywhere
2) make the networkmanager backend more flexible to support both formats.

which one do you think is better? 1 seems easier technically ;)
Comment 3 Chris Gianelloni 2009-08-31 20:44:23 UTC
Essentially, NetworkManager is missing proper baselayout-1 compatibility.  Since baselayout-1 is still the current stable, this really needs to get fixed sooner, rather than later.  This should probably be escalated to the QA team.  I'd also venture that anybody working on new release media would be interested to know this, since it will definitely affect their builds.
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-02-27 05:38:45 UTC
baselayout-1 was removed from portage six months ago.