Re: CFR: importing openresolv

From: Jilles Tjoelker <jilles_at_stack.nl>
Date: Thu, 24 Feb 2011 00:10:20 +0100
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_at_ 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
Received on Wed Feb 23 2011 - 22:10:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:11 UTC