Browse Source

git: update to 2.2.0

Signed-off-by: Peter Wagner <tripolar@gmx.at>
Peter Wagner 10 years ago
parent
commit
14be8d35e8
2 changed files with 18 additions and 18 deletions
  1. 3
    3
      net/git/Makefile
  2. 15
    15
      net/git/patches/100-convert_builtin.patch

+ 3
- 3
net/git/Makefile View File

8
 include $(TOPDIR)/rules.mk
8
 include $(TOPDIR)/rules.mk
9
 
9
 
10
 PKG_NAME:=git
10
 PKG_NAME:=git
11
-PKG_VERSION:=2.1.0
12
-PKG_RELEASE:=2
11
+PKG_VERSION:=2.2.0
12
+PKG_RELEASE:=1
13
 
13
 
14
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
14
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15
 PKG_SOURCE_URL:=@KERNEL/software/scm/git/
15
 PKG_SOURCE_URL:=@KERNEL/software/scm/git/
16
-PKG_MD5SUM:=47b1f55d9a16be112f7ae2c778a9b30c
16
+PKG_MD5SUM:=5c9d20582297f8f24606fe49f515b584
17
 
17
 
18
 PKG_INSTALL:=1
18
 PKG_INSTALL:=1
19
 PKG_BUILD_PARALLEL:=1
19
 PKG_BUILD_PARALLEL:=1

+ 15
- 15
net/git/patches/100-convert_builtin.patch View File

1
 --- a/Makefile
1
 --- a/Makefile
2
 +++ b/Makefile
2
 +++ b/Makefile
3
-@@ -533,16 +533,7 @@ EXTRA_PROGRAMS =
3
+@@ -529,16 +529,7 @@ EXTRA_PROGRAMS =
4
  # ... and all the rest that could be moved out of bindir to gitexecdir
4
  # ... and all the rest that could be moved out of bindir to gitexecdir
5
  PROGRAMS += $(EXTRA_PROGRAMS)
5
  PROGRAMS += $(EXTRA_PROGRAMS)
6
  
6
  
18
  
18
  
19
  # Binary suffix, set to .exe for Windows builds
19
  # Binary suffix, set to .exe for Windows builds
20
  X =
20
  X =
21
-@@ -1007,6 +998,12 @@ BUILTIN_OBJS += builtin/verify-commit.o
21
+@@ -887,6 +878,12 @@ BUILTIN_OBJS += builtin/verify-commit.o
22
  BUILTIN_OBJS += builtin/verify-pack.o
22
  BUILTIN_OBJS += builtin/verify-pack.o
23
  BUILTIN_OBJS += builtin/verify-tag.o
23
  BUILTIN_OBJS += builtin/verify-tag.o
24
  BUILTIN_OBJS += builtin/write-tree.o
24
  BUILTIN_OBJS += builtin/write-tree.o
31
  
31
  
32
  GITLIBS = $(LIB_FILE) $(XDIFF_LIB)
32
  GITLIBS = $(LIB_FILE) $(XDIFF_LIB)
33
  EXTLIBS =
33
  EXTLIBS =
34
-@@ -1174,7 +1171,7 @@ endif
34
+@@ -1049,7 +1046,7 @@ endif
35
  EXTLIBS += -lz
35
  EXTLIBS += -lz
36
  
36
  
37
  ifndef NO_OPENSSL
37
  ifndef NO_OPENSSL
40
  	ifdef OPENSSLDIR
40
  	ifdef OPENSSLDIR
41
  		BASIC_CFLAGS += -I$(OPENSSLDIR)/include
41
  		BASIC_CFLAGS += -I$(OPENSSLDIR)/include
42
  		OPENSSL_LINK = -L$(OPENSSLDIR)/$(lib) $(CC_LD_DYNPATH)$(OPENSSLDIR)/$(lib)
42
  		OPENSSL_LINK = -L$(OPENSSLDIR)/$(lib) $(CC_LD_DYNPATH)$(OPENSSLDIR)/$(lib)
43
-@@ -2067,10 +2064,6 @@ endif
43
+@@ -1895,10 +1892,6 @@ endif
44
  git-%$X: %.o GIT-LDFLAGS $(GITLIBS)
44
  git-%$X: %.o GIT-LDFLAGS $(GITLIBS)
45
  	$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
45
  	$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
46
  
46
  
51
  git-http-fetch$X: http.o http-walker.o http-fetch.o GIT-LDFLAGS $(GITLIBS)
51
  git-http-fetch$X: http.o http-walker.o http-fetch.o GIT-LDFLAGS $(GITLIBS)
52
  	$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
52
  	$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
53
  		$(LIBS) $(CURL_LIBCURL)
53
  		$(LIBS) $(CURL_LIBCURL)
54
-@@ -2388,24 +2381,22 @@ endif
54
+@@ -2216,24 +2209,22 @@ endif
55
  	bindir=$$(cd '$(DESTDIR_SQ)$(bindir_SQ)' && pwd) && \
55
  	bindir=$$(cd '$(DESTDIR_SQ)$(bindir_SQ)' && pwd) && \
56
  	execdir=$$(cd '$(DESTDIR_SQ)$(gitexec_instdir_SQ)' && pwd) && \
56
  	execdir=$$(cd '$(DESTDIR_SQ)$(gitexec_instdir_SQ)' && pwd) && \
57
  	{ test "$$bindir/" = "$$execdir/" || \
57
  	{ test "$$bindir/" = "$$execdir/" || \
80
  	done && \
80
  	done && \
81
 --- a/builtin.h
81
 --- a/builtin.h
82
 +++ b/builtin.h
82
 +++ b/builtin.h
83
-@@ -137,5 +137,11 @@ extern int cmd_verify_pack(int argc, con
83
+@@ -138,5 +138,11 @@ extern int cmd_verify_pack(int argc, con
84
  extern int cmd_show_ref(int argc, const char **argv, const char *prefix);
84
  extern int cmd_show_ref(int argc, const char **argv, const char *prefix);
85
  extern int cmd_pack_refs(int argc, const char **argv, const char *prefix);
85
  extern int cmd_pack_refs(int argc, const char **argv, const char *prefix);
86
  extern int cmd_replace(int argc, const char **argv, const char *prefix);
86
  extern int cmd_replace(int argc, const char **argv, const char *prefix);
118
 +#include "../upload-pack.c"
118
 +#include "../upload-pack.c"
119
 --- a/daemon.c
119
 --- a/daemon.c
120
 +++ b/daemon.c
120
 +++ b/daemon.c
121
-@@ -1119,7 +1119,7 @@ static int serve(struct string_list *lis
121
+@@ -1096,7 +1096,7 @@ static int serve(struct string_list *lis
122
  	return service_loop(&socklist);
122
  	return service_loop(&socklist);
123
  }
123
  }
124
  
124
  
127
  {
127
  {
128
  	int listen_port = 0;
128
  	int listen_port = 0;
129
  	struct string_list listen_addr = STRING_LIST_INIT_NODUP;
129
  	struct string_list listen_addr = STRING_LIST_INIT_NODUP;
130
-@@ -1315,12 +1315,13 @@
130
+@@ -1292,12 +1292,13 @@ int main(int argc, char **argv)
131
  		store_pid(pid_file);
131
  		store_pid(pid_file);
132
  
132
  
133
  	/* prepare argv for serving-processes */
133
  	/* prepare argv for serving-processes */
148
  }
148
  }
149
 --- a/fast-import.c
149
 --- a/fast-import.c
150
 +++ b/fast-import.c
150
 +++ b/fast-import.c
151
-@@ -3343,7 +3343,7 @@ static void parse_argv(void)
151
+@@ -3350,7 +3350,7 @@ static void parse_argv(void)
152
  		read_marks();
152
  		read_marks();
153
  }
153
  }
154
  
154
  
190
  	{ "index-pack", cmd_index_pack, RUN_SETUP_GENTLY },
190
  	{ "index-pack", cmd_index_pack, RUN_SETUP_GENTLY },
191
  	{ "init", cmd_init_db, NO_SETUP },
191
  	{ "init", cmd_init_db, NO_SETUP },
192
  	{ "init-db", cmd_init_db, NO_SETUP },
192
  	{ "init-db", cmd_init_db, NO_SETUP },
193
-@@ -461,6 +464,7 @@ static struct cmd_struct commands[] = {
193
+@@ -462,6 +465,7 @@ static struct cmd_struct commands[] = {
194
  	{ "revert", cmd_revert, RUN_SETUP | NEED_WORK_TREE },
194
  	{ "revert", cmd_revert, RUN_SETUP | NEED_WORK_TREE },
195
  	{ "rm", cmd_rm, RUN_SETUP },
195
  	{ "rm", cmd_rm, RUN_SETUP },
196
  	{ "send-pack", cmd_send_pack, RUN_SETUP },
196
  	{ "send-pack", cmd_send_pack, RUN_SETUP },
198
  	{ "shortlog", cmd_shortlog, RUN_SETUP_GENTLY | USE_PAGER },
198
  	{ "shortlog", cmd_shortlog, RUN_SETUP_GENTLY | USE_PAGER },
199
  	{ "show", cmd_show, RUN_SETUP },
199
  	{ "show", cmd_show, RUN_SETUP },
200
  	{ "show-branch", cmd_show_branch, RUN_SETUP },
200
  	{ "show-branch", cmd_show_branch, RUN_SETUP },
201
-@@ -477,6 +481,7 @@ static struct cmd_struct commands[] = {
201
+@@ -478,6 +482,7 @@ static struct cmd_struct commands[] = {
202
  	{ "update-server-info", cmd_update_server_info, RUN_SETUP },
202
  	{ "update-server-info", cmd_update_server_info, RUN_SETUP },
203
  	{ "upload-archive", cmd_upload_archive },
203
  	{ "upload-archive", cmd_upload_archive },
204
  	{ "upload-archive--writer", cmd_upload_archive_writer },
204
  	{ "upload-archive--writer", cmd_upload_archive_writer },
208
  	{ "verify-pack", cmd_verify_pack },
208
  	{ "verify-pack", cmd_verify_pack },
209
 --- a/http-backend.c
209
 --- a/http-backend.c
210
 +++ b/http-backend.c
210
 +++ b/http-backend.c
211
-@@ -566,7 +566,7 @@ static struct service_cmd {
211
+@@ -557,7 +557,7 @@ static struct service_cmd {
212
  	{"POST", "/git-receive-pack$", service_rpc}
212
  	{"POST", "/git-receive-pack$", service_rpc}
213
  };
213
  };
214
  
214
  
219
  	char *dir;
219
  	char *dir;
220
 --- a/imap-send.c
220
 --- a/imap-send.c
221
 +++ b/imap-send.c
221
 +++ b/imap-send.c
222
-@@ -1365,7 +1365,7 @@ static int git_imap_config(const char *k
223
- 	return 0;
222
+@@ -1338,7 +1338,7 @@ static void git_imap_config(void)
223
+ 	git_config_get_string("imap.authmethod", &server.auth_method);
224
  }
224
  }
225
  
225
  
226
 -int main(int argc, char **argv)
226
 -int main(int argc, char **argv)
241
  	const char **user_argv;
241
  	const char **user_argv;
242
 --- a/upload-pack.c
242
 --- a/upload-pack.c
243
 +++ b/upload-pack.c
243
 +++ b/upload-pack.c
244
-@@ -790,7 +790,7 @@ static int upload_pack_config(const char
244
+@@ -791,7 +791,7 @@ static int upload_pack_config(const char
245
  	return parse_hide_refs_config(var, value, "uploadpack");
245
  	return parse_hide_refs_config(var, value, "uploadpack");
246
  }
246
  }
247
  
247