From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 03:15:48 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88DAE106566B for ; Fri, 19 Aug 2011 03:15:48 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id 60C708FC08 for ; Fri, 19 Aug 2011 03:15:48 +0000 (UTC) Received: by pzk33 with SMTP id 33so6742925pzk.18 for ; Thu, 18 Aug 2011 20:15:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=O+IqUffeWdfd3VKM8iueoFf3UjgyP1HqdWlrdnclzZQ=; b=K6V1unb9odSKrhm+N2NDXfwbPtWfTx12mHY9CRYx0a/6SPmrq7URa5QwsT9g926ufV Dt7SImBp6MoMXmK++rCyOiw0KUVxvZ5zS4pcZoT59Gwbig6ruCdgNs5PE7UEJ+2NV4Me XGolhxZvXxPfytZx/LWckPMMu8dqjogzZRUgw= MIME-Version: 1.0 Received: by 10.142.14.8 with SMTP id 8mr739656wfn.189.1313723747885; Thu, 18 Aug 2011 20:15:47 -0700 (PDT) Received: by 10.142.180.10 with HTTP; Thu, 18 Aug 2011 20:15:47 -0700 (PDT) In-Reply-To: <86hb5euofp.fsf@gmail.com> References: <868vqt0xuc.fsf@gmail.com> <1313663436600-4711635.post@n5.nabble.com> <86hb5euofp.fsf@gmail.com> Date: Thu, 18 Aug 2011 22:15:47 -0500 Message-ID: From: Zhihao Yuan To: Test Rat Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, timp Subject: Re: [nvi-iconv]Call for test X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2011 03:15:48 -0000 On Thu, Aug 18, 2011 at 9:26 PM, Test Rat wrote: > timp writes: > >> Hi! >> I just tried you patch on latest current with clang. >> >> [root@current64 /usr/src]# uname -a >> FreeBSD current64 9.0-BETA1 FreeBSD 9.0-BETA1 #0: Thu Aug 18 03:56:45 MS= K >> 2011 =C2=A0 =C2=A0 mox@current64:/usr/obj/usr/src/sys/GENERIC =C2=A0amd6= 4 >> >> [root@current64 /usr/src]# patch < ~/nvi2-freebsd-2011-08-17.diff > [...] >> =3D=3D=3D> usr.bin/vi (depend) >> make: don't know how to make cl_bsd.c. Stop >> *** Error code 2 > > Use `-p0' otherwise new directories won't be created. This is documented > in patch(1). And cl_bsd.c ended up in current directory (/usr/src) > > =C2=A0$ diffstat ~/nvi2-freebsd-2011-08-17.diff.gz | fgrep cl_bsd.c > =C2=A0 contrib/nvi2/cl/cl_bsd.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0| =C2=A0346 +++ zzz... I always use -p0 but I did not know what it does... > > Zhihao Yuan writes: >> The patch will create contrib/nvi2, and it will not remove the unused >> contrib/nvi (patch(1) can not really remove files anyway). > > patch(1) can remove *empty* files with `-E', e.g. > > =C2=A0$ svn rm UPDATING > =C2=A0$ svn di UPDATING | patch -E -d /usr/src Got it. But removing contrib/nvi with patch will just double the patch size anyway. A svn rm will do it if some day the patch got committed. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " > --=20 Zhihao Yuan, nickname lichray The best way to predict the future is to invent it. ___________________________________________________ 4BSD -- http://4bsd.biz/