Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Feb 2011 00:10:20 +0100
From:      Jilles Tjoelker <jilles@stack.nl>
To:        Hajimu UMEMOTO <ume@FreeBSD.org>
Cc:        "Bjoern A. Zeeb" <bz@FreeBSD.org>, FreeBSD current mailing list <current@FreeBSD.org>
Subject:   Re: CFR: importing openresolv
Message-ID:  <20110223231020.GA69292@stack.nl>
In-Reply-To: <ygelj198eet.wl%ume@mahoroba.org>
References:  <ygeaaokdjpv.wl%ume@mahoroba.org> <20110220181713.C13400@maildrop.int.zabbadoz.net> <ygemxlp8h86.wl%ume@mahoroba.org> <ygelj198eet.wl%ume@mahoroba.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110223231020.GA69292>