Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489980 - >=net-misc/dhcp-4.0: PEER_DNS patches break generation of resolv.conf due to syntax error (bashism)
Summary: >=net-misc/dhcp-4.0: PEER_DNS patches break generation of resolv.conf due to ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-31 15:39 UTC by Aleksandr Karagodov
Modified: 2013-11-28 20:03 UTC (History)
0 users

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 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