[nvi-iconv]Call for test

Test Rat ttsestt at gmail.com
Fri Aug 19 02:26:30 UTC 2011


timp <timp87 at gmail.com> writes:

> Hi!
> I just tried you patch on latest current with clang.
>
> [root at current64 /usr/src]# uname -a
> FreeBSD current64 9.0-BETA1 FreeBSD 9.0-BETA1 #0: Thu Aug 18 03:56:45 MSK
> 2011     mox at current64:/usr/obj/usr/src/sys/GENERIC  amd64
>
> [root at 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 at 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


More information about the freebsd-hackers mailing list