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

Bug 158797

Summary: sys-freebsd/freebsd-baselayout-20060624 dhcient sed error dhclient_edit_config
Product: Gentoo/Alt Reporter: catfish <catfish>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED INVALID    
Severity: normal CC: catfish
Priority: High    
Version: unspecified   
Hardware: x86   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: diff -ruN correcting sed syntax

Description catfish 2006-12-21 22:17:50 UTC
I just installed from the gentoo.org guide.  I am running Gentoo/FreeBSD-6.1 and have discovered the following bug.

With dhclient_edit_config="yes" enabled in /etc/conf.d/net, the dhclient module generates and error from sed stating extra characters at the end of d command.  I suspect this is generated by improper use of the "-i" flag for sed.  From my reading of the man page, -i requires an argument under all circumstances i.e. '-i .mybackup' for a named backup or '-i ""' for no backup.  When the second syntax is used, the error text goes away.

diff to follow

Thanks for a great product!
Comment 1 catfish 2006-12-21 22:21:34 UTC
Created attachment 104555 [details, diff]
diff -ruN correcting sed syntax
Comment 2 catfish 2007-01-18 04:38:37 UTC
6.1 has been expunged and 6.2 is now using the default baselayout.  The rc-scripts are now completely different and use dhclient much more efficiently.  There is no more sed'ding of conf files and the like.

Thanks!