[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cvs-ml 502] "cvs diff" calls "/usr/bin/diff". Why?



はらぐちと申します。

Solaris 2.6 on Ultra Sparc に cvs-1.10.7 をインストールして利用してい
るのですが、"cvs diff -u" が実行できないことに気がつきました。
実行しようとすると以下のようなエラーメッセージが出力されます。

haraguti% cvs diff -u hoge.c
Index: rport_cfg.h
===================================================================
RCS file: /src/master/proj/Attic/hoge.c,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 hoge.c
/usr/bin/diff: オプションが正しくありません -- u
使用法: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
        diff [-bitw] [-C number] file1 file2
        diff [-bitw] [-D string] file1 file2
        diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name] directory1 directory2
rcsdiff: hoge.c: diff failed

# ファイル名とリポジトリ名は変更しています。

cvs-1.10.7 の INSTALL には、

    Unlike previous versions of CVS, you do not need to install RCS
    or GNU diff.  

と書かれていますが、なぜか /usr/bin/diff が呼ばれています。しかも、
PATH は /usr/local/bin の方を /usr/bin よりも前にしているのに、
/usr/local/bin/diff ではなく /usr/bin/diff が呼ばれているのもよくわか
りません。いったいどういうことなのでしょう?

インストールの手順はごく普通に

./configure
make
make install

しただけです。しかし make check すると "FAIL: rcsdiff-5" で失敗してお
り、check.log を見ると、

PASS: rcsdiff-4
** expected: 
===================================================================
Checking out foo\.c
RCS:  /tmp/cvs-sanity/cvsroot/first-dir/foo\.c,v
VERS: 1\.1
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
I am the first foo, and my name is $Name: first $\.
** got: 
===================================================================
Checking out foo.c
RCS:  /tmp/cvs-sanity/cvsroot/first-dir/foo.c,v
VERS: 1.1
***************
I am the first foo, and my name is $Name: first $.
FAIL: rcsdiff-5

となっていました。やはり何らかの問題があるようですが、なにがまずいのか
私にはわかりません。
なにがまずいのか、お解りになる方がいらっしゃいましたらアドバイスをお願
いします。

-- 
原口 秀剛