diff options
author | Daniel Pielmeier <billie@gentoo.org> | 2010-10-22 20:11:13 +0000 |
---|---|---|
committer | Daniel Pielmeier <billie@gentoo.org> | 2010-10-22 20:11:13 +0000 |
commit | 1c5ee62735f637cc5a9e541befd9eac02ac6174e (patch) | |
tree | ad582dc2932cd4dd3449af78f0161365603d9e78 | |
parent | Update gnome 2.32 mask. (diff) | |
download | gentoo-2-1c5ee62735f637cc5a9e541befd9eac02ac6174e.tar.gz gentoo-2-1c5ee62735f637cc5a9e541befd9eac02ac6174e.tar.bz2 gentoo-2-1c5ee62735f637cc5a9e541befd9eac02ac6174e.zip |
Interix patches are still needed for some older versions.
(Portage version: 2.1.8.3/cvs/Linux i686)
-rw-r--r-- | dev-vcs/git/ChangeLog | 6 | ||||
-rw-r--r-- | dev-vcs/git/files/git-1.6.6.1-interix6.patch | 17 | ||||
-rw-r--r-- | dev-vcs/git/files/git-1.7.1-interix.patch | 100 |
3 files changed, 122 insertions, 1 deletions
diff --git a/dev-vcs/git/ChangeLog b/dev-vcs/git/ChangeLog index 31de5ae9b226..4e0de6574edc 100644 --- a/dev-vcs/git/ChangeLog +++ b/dev-vcs/git/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-vcs/git # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/ChangeLog,v 1.38 2010/10/22 11:38:12 mduft Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/ChangeLog,v 1.39 2010/10/22 20:11:13 billie Exp $ + + 22 Oct 2010; Daniel Pielmeier <billie@gentoo.org> + +files/git-1.6.6.1-interix6.patch, +files/git-1.7.1-interix.patch: + Interix patches are still needed for some older versions. *git-1.7.3.2 (22 Oct 2010) diff --git a/dev-vcs/git/files/git-1.6.6.1-interix6.patch b/dev-vcs/git/files/git-1.6.6.1-interix6.patch new file mode 100644 index 000000000000..0a8db374744d --- /dev/null +++ b/dev-vcs/git/files/git-1.6.6.1-interix6.patch @@ -0,0 +1,17 @@ +diff -ru git-1.6.6.1.orig/compat/inet_ntop.c git-1.6.6.1/compat/inet_ntop.c +--- git-1.6.6.1.orig/compat/inet_ntop.c 2010-03-09 04:39:03 -0800 ++++ git-1.6.6.1/compat/inet_ntop.c 2010-03-09 04:40:50 -0800 +@@ -169,6 +169,8 @@ + } + #endif + ++/* conflicts with interix' headers... */ ++#ifndef __INTERIX + /* char * + * inet_ntop(af, src, dst, size) + * convert a network format address to presentation format. +@@ -197,3 +199,4 @@ + } + /* NOTREACHED */ + } ++#endif diff --git a/dev-vcs/git/files/git-1.7.1-interix.patch b/dev-vcs/git/files/git-1.7.1-interix.patch new file mode 100644 index 000000000000..130d808791f7 --- /dev/null +++ b/dev-vcs/git/files/git-1.7.1-interix.patch @@ -0,0 +1,100 @@ +patch reported upstream at the mailing list. +mail reference is: http://marc.info/?l=git&m=126813299716136&w=2 + +--- builtin/upload-archive.c ++++ builtin/upload-archive.c +@@ -132,8 +132,9 @@ + packet_flush(1); + + while (1) { +- struct pollfd pfd[2]; + int status; ++#ifndef __INTERIX ++ struct pollfd pfd[2]; + + pfd[0].fd = fd1[0]; + pfd[0].events = POLLIN; +@@ -156,6 +157,8 @@ + if (process_input(pfd[0].fd, 1)) + continue; + ++#endif ++ + if (waitpid(writer, &status, 0) < 0) + error_clnt("%s", lostchild); + else if (!WIFEXITED(status) || WEXITSTATUS(status) > 0) +--- daemon.c ++++ daemon.c +@@ -14,6 +14,8 @@ + #define NI_MAXSERV 32 + #endif + ++#ifndef __INTERIX /* not available on interix! */ ++ + static int log_syslog; + static int verbose; + static int reuseaddr; +@@ -922,8 +924,13 @@ + return service_loop(socknum, socklist); + } + ++#endif /* __INTERIX */ ++ + int main(int argc, char **argv) + { ++#ifdef __INTERIX ++ die("not implemented on interix!"); ++#else /* !__INTERIX */ + int listen_port = 0; + char *listen_addr = NULL; + int inetd_mode = 0; +@@ -1121,4 +1128,5 @@ + store_pid(pid_file); + + return serve(listen_addr, listen_port, pass, gid); ++#endif /* __INTERIX */ + } +--- git-compat-util.h ++++ git-compat-util.h +@@ -93,7 +93,9 @@ + #include <utime.h> + #ifndef __MINGW32__ + #include <sys/wait.h> ++#ifndef __INTERIX + #include <sys/poll.h> ++#endif + #include <sys/socket.h> + #include <sys/ioctl.h> + #ifndef NO_SYS_SELECT_H +@@ -104,7 +106,11 @@ + #include <arpa/inet.h> + #include <netdb.h> + #include <pwd.h> ++#ifndef __INTERIX + #include <inttypes.h> ++#else ++#include <stdint.h> ++#endif + #if defined(__CYGWIN__) + #undef _XOPEN_SOURCE + #include <grp.h> +--- upload-pack.c ++++ upload-pack.c +@@ -150,6 +150,7 @@ + + static void create_pack_file(void) + { ++#ifndef __INTERIX + struct async rev_list; + struct child_process pack_objects; + int create_full_pack = (nr_our_refs == want_obj.nr && !have_obj.nr); +@@ -328,6 +329,9 @@ + fail: + send_client_data(3, abort_msg, sizeof(abort_msg)); + die("git upload-pack: %s", abort_msg); ++#else /* __INTERIX */ ++ die("git upload-pack: not implemented on interix!"); ++#endif /* __INTERIX */ + } + + static int got_sha1(char *hex, unsigned char *sha1) |