2016-05-14 17 views
2

Wenn ich versuche Depencies für ein Python-Skript zu installieren, bekomme ich diesen Fehler:diff: Option nicht erkennen «--git»

build/temp.linux-x86_64-2.7/_openssl.c:697:6: error: conflicting types for ‘BIO_new_mem_buf’ 
BIO *BIO_new_mem_buf(void *, int); 
    ^
In file included from /usr/include/openssl/asn1.h:65:0, 
       from build/temp.linux-x86_64-2.7/_openssl.c:413: 
/usr/include/openssl/bio.h:692:6: note: previous declaration of ‘BIO_new_mem_buf’ was here 
BIO *BIO_new_mem_buf(const void *buf, int len); 
    ^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 

Ich versuche, diesen Patch here gefunden:

diff --git a/dev-python/cryptography/cryptography-1.2.2.ebuild b/dev-python/cryptography/cryptography-1.2.2.ebuild 

Aber dann bekomme ich diesen Fehler diff: option not recognize «--git»

Wie behebe ich diesen Fehler?

Antwort

2

diff --git ist kein Befehl, sondern die header of a git diff -p (Patch):

What the -p option produces is slightly different from the traditional diff format:

It is preceded with a "git diff" header that looks like this:

diff --git a/file1 b/file2 

Seit der diffstat im Repo gentoo ist in einheitlichem Modus, können Sie es in einer Patch-Datei kopieren und apply it to your codebase mit einer patch command.
(Siehe more examples here).

patch foo.c < patch.diff 
+0

ich meine .diff Datei erstellt und ausgeführt 'Patch foo.c

Verwandte Themen