CFR: importing openresolv
Jilles Tjoelker
jilles at stack.nl
Wed Feb 23 23:10:24 UTC 2011
On Tue, Feb 22, 2011 at 02:51:06AM +0900, Hajimu UMEMOTO wrote:
> >>>>> On Tue, 22 Feb 2011 01:50:17 +0900
> >>>>> Hajimu UMEMOTO <ume at FreeBSD.org> said:
> bz> Do you have an updated patch for 3.4.1 or 3.3.6? I'd like to help to
> bz> you get it in for 9.0-R. I wouldn't even mind if some ports would
> bz> conflict with it for a while not making the situation any worse than
> bz> it is these days.
> ume> I didn't notice that openresolv was updated. I'll soon make a new
> ume> diff for 3.4.1.
> ume> hrs@ noticed that ppp(8) and uhsoctl(8) in our base tree touch
> ume> /etc/resolv.conf. We need to change them to use resovlconf(8).
> I've updated a patch for 3.4.1:
> http://www.imasy.or.jp/~ume/FreeBSD/openresolv-20110222.diff.gz
> If you have the previous patch applied, make sure to remove
> src/contrib/openresolv and src/sbin/resolvconf before applying new
> one.
This looks like it can work, but note that it depends on some 9-CURRENT
sh(1) features:
* A printf(1) builtin, required to run without /usr. I don't see a sane
way to avoid this.
* Some of the expansion changes, required for the line:
iface="${line#\# resolv.conf from *}"
This can be avoided by changing that line to:
iface=${line#\# resolv.conf from *}
--
Jilles Tjoelker
More information about the freebsd-current
mailing list