Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2011 06:26:18 +0400
From:      Test Rat <ttsestt@gmail.com>
To:        timp <timp87@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: [nvi-iconv]Call for test
Message-ID:  <86hb5euofp.fsf@gmail.com>
In-Reply-To: <1313663436600-4711635.post@n5.nabble.com> (timp's message of "Thu, 18 Aug 2011 03:30:36 -0700 (PDT)")
References:  <CAGsORuBr=b-cJEAJO7cJ=j5dn04kJfR%2BHzz58Rjc29uTDZv4Xg@mail.gmail.com> <CAGsORuCsz_XzWntZ_y40SuAS%2B7saT7GzMUoTzpGgdCN5aTYuNg@mail.gmail.com> <868vqt0xuc.fsf@gmail.com> <CAGsORuDiq%2BgsGyV1Da0mUKj0JBnam584S2z5VFVcKyKM1qsVdw@mail.gmail.com> <1313663436600-4711635.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
timp <timp87@gmail.com> 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 MSK
> 2011     mox@current64:/usr/obj/usr/src/sys/GENERIC  amd64
>
> [root@current64 /usr/src]# patch < ~/nvi2-freebsd-2011-08-17.diff
[...]
> ===> 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)

  $ diffstat ~/nvi2-freebsd-2011-08-17.diff.gz | fgrep cl_bsd.c
   contrib/nvi2/cl/cl_bsd.c                |  346 +++

Zhihao Yuan <lichray@gmail.com> 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.

  $ svn rm UPDATING
  $ svn di UPDATING | patch -E -d /usr/src



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