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

Bug 208558

Summary: net-misc/dhcp - dhclient-script requires `echo -e`
Product: Gentoo Linux Reporter: Davide Pesavento <pesa>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: truedfx
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dhclient-script.patch

Description Davide Pesavento (RETIRED) gentoo-dev 2008-02-02 10:51:27 UTC
# cat /etc/resolv.conf
# Generated by resolvconf
search pesa.homelinux.org
nameserver 192.168.86.2
-e # Generated by dhclient for interface eth0#

The last line looks strange.

After patching:
# cat /etc/resolv.conf
# Generated by resolvconf
search pesa.homelinux.org
nameserver 192.168.86.2

This is ok.
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2008-02-02 10:52:27 UTC
Created attachment 142465 [details, diff]
dhclient-script.patch

This patch fixes the problem.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-02 11:08:41 UTC
Which ebuild and version is this about?
Comment 3 Harald van Dijk (RETIRED) gentoo-dev 2008-02-02 13:47:04 UTC
dhclient and dhclient-script are part of net-misc/dhcp, and I can reproduce the problem with version 3.1.0. echo -e is not supported by all shells (nor should it), but is by bash, so systems where /bin/sh is bash won't be affected.
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2008-02-02 15:47:18 UTC
(In reply to comment #2)
> Which ebuild and version is this about?
> 

net-misc/dhcp-3.1.0
app-shells/dash-0.5.4.6-r1

# ls -l /bin/sh
lrwxrwxrwx 1 root root 4  3 gen 17:03 /bin/sh -> dash
Comment 5 SpanKY gentoo-dev 2008-03-29 19:47:37 UTC
ran `sed -i 's:echo -e:printf:' */*.patch` in the dhcp dir