Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 214634

Summary: net-misc/networkmanager 0.6.6 (possibly 0.6.5 too) hostname bug
Product: Gentoo Linux Reporter: bruno randolf <br1>
Component: New packagesAssignee: Robert Piasek (RETIRED) <dagger>
Status: RESOLVED DUPLICATE    
Severity: minor CC: aherrerag, pacho, steev
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch fixing the hostname issue by initializing config earlier

Description bruno randolf 2008-03-25 04:37:55 UTC
there is a bug in networkmanager setting the hostname (from the gentoo patch networkmanager-updatedbackend.patch). it tries to add the hostname before config is initialized. the attached patch fixes the problem.

Reproducible: Always

Steps to Reproduce:
1. look at the output of NetworkManager --no-daemon and see:

NetworkManager: <debug> [1206415223.753861] GentooReadConfig(): Found hostname.
NetworkManager: nm_ip4_config_set_hostname: assertion `config != NULL' failed
... and later ...
NetworkManager: <WARN>  nm_system_set_hostname(): nm_system_set_hostname(): gethostbyaddr failed, h_errno = 1




Expected Results:  
NetworkManager: <info>  Setting hostname to 'my_hostname'


the attached patch fixes the problem.
Comment 1 bruno randolf 2008-03-25 04:39:14 UTC
Created attachment 147213 [details, diff]
patch fixing the hostname issue by initializing config earlier

just initialize config earlier.
Comment 2 Anielkis Herrera 2008-04-11 18:54:13 UTC
I applied your patch, but even with it... networkmanager changes my hostname
and I have the "send host-name " and "supersede host-name " with my hotname in /etc/dhcp/dhclient.conf

any idea?
Comment 3 Anielkis Herrera 2008-04-11 19:05:46 UTC
sorry, the problem was that I cannot add the ';' at end of line
Comment 4 Pacho Ramos gentoo-dev 2010-02-22 19:14:55 UTC

*** This bug has been marked as a duplicate of bug 176873 ***