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

Bug 489980

Summary: >=net-misc/dhcp-4.0: PEER_DNS patches break generation of resolv.conf due to syntax error (bashism)
Product: Gentoo Linux Reporter: Aleksandr Karagodov <skar666>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Aleksandr Karagodov 2013-10-31 15:39:23 UTC
Gentoo patches "dhcp-4*-dhclient-resolvconf.patch" and "dhcp-4.2.5-iproute2-path.patch" have a syntax error at this line:

+  if [ x"$PEER_DNS" != x ] && [ x$"PEER_DNS" != xyes ]; then

This causes dhclient-script to fail to produce resolv.conf whenever PEER_DNS is set to anything.
Comment 1 SpanKY gentoo-dev 2013-11-28 20:00:54 UTC
bash would handle it as expected, but if your /bin/sh is not bash, then it'll probably fail w/a syntax error