unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 18ac5054594721234f90d43b70b40f5ea60bf170 12690 bytes (raw)
name: packages/patches/transmission-4.0.6-fix-build.patch 	 # note: path name is non-authoritative(*)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
 
The release tarball of Transmission 4.0.6 fails to build:

https://github.com/transmission/transmission/issues/6873

This patch, which is adapted from upstream source repository, fixes that
problem:

https://github.com/transmission/transmission/commit/a72a93764e556da6b45d086162e8bc941277ab0d

From a72a93764e556da6b45d086162e8bc941277ab0d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C5=93ur?= <coeur@gmx.fr>
Date: Sat, 16 Mar 2024 07:19:51 +0800
Subject: [PATCH] deps: update miniupnp to 2.3.4 (miniupnpc 2.2.6) (#6459)

* refactor: add miniupnp 2.3.0 as a submodule

* refactor: remove miniupnpc submodule

* deps: specify the 2.3.0 branch

* build: point to miniupnp monorepo subdirectory miniupnpc

* Fix building miniupnp from Xcode

* fixed miniupnp updateminiupnpcstrings.sh usage

* updating to miniupnpc 2.2.6

* fix build for Windows

* code review: removing the header move

---------

Co-authored-by: Charles Kerr <charles@charleskerr.com>
---
 .gitmodules                            |  7 +-
 CMakeLists.txt                         | 13 +++-
 Transmission.xcodeproj/project.pbxproj | 95 ++++++++++++++++----------
 third-party/miniupnp                   |  1 +
 third-party/miniupnpc                  |  1 -
 5 files changed, 74 insertions(+), 43 deletions(-)
 create mode 160000 third-party/miniupnp
 delete mode 160000 third-party/miniupnpc

#diff --git a/.gitmodules b/.gitmodules
#index 07c4836a7..c81390096 100644
#--- a/.gitmodules
#+++ b/.gitmodules
#@@ -18,10 +18,9 @@
# 	path = third-party/libutp
# 	url = https://github.com/transmission/libutp
# 	branch = post-3.4-transmission
#-[submodule "third-party/miniupnpc"]
#-	path = third-party/miniupnpc
#-	url = https://github.com/transmission/miniupnpc
#-	branch = post-2.0.20170509-transmission
#+[submodule "third-party/miniupnp"]
#+	path = third-party/miniupnp
#+	url = https://github.com/transmission/miniupnp.git
# [submodule "third-party/googletest"]
# 	path = third-party/googletest
# 	url = https://github.com/google/googletest.git
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d5d667b35..c65fd3dd5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -497,7 +497,13 @@ if(NOT USE_SYSTEM_NATPMP)
             NATPMP_STATICLIB)
 endif()
 
-tr_add_external_auto_library(MINIUPNPC miniupnpc miniupnpc
+if(WIN32)
+    # https://github.com/miniupnp/miniupnp/pull/304
+    set(TR_MINIUPNPC_LIBNAME libminiupnpc)
+else()
+    set(TR_MINIUPNPC_LIBNAME miniupnpc)
+endif()
+tr_add_external_auto_library(MINIUPNPC miniupnp/miniupnpc ${TR_MINIUPNPC_LIBNAME}
     TARGET miniupnpc::libminiupnpc
     CMAKE_ARGS
         -DUPNPC_BUILD_STATIC=ON
@@ -508,9 +514,10 @@ if(NOT USE_SYSTEM_MINIUPNPC)
         INTERFACE
             MINIUPNP_STATICLIB)
 
-    set(MINIUPNPC_VERSION 1.9)
-    set(MINIUPNPC_API_VERSION 12)
+    set(MINIUPNPC_VERSION 2.2)
+    set(MINIUPNPC_API_VERSION 17)
 endif()
+unset(TR_MINIUPNPC_LIBNAME)
 
 target_compile_definitions(miniupnpc::libminiupnpc
     INTERFACE
#diff --git a/Transmission.xcodeproj/project.pbxproj b/Transmission.xcodeproj/project.pbxproj
#index 3282fc02d..0f8f8d85f 100644
#--- a/Transmission.xcodeproj/project.pbxproj
#+++ b/Transmission.xcodeproj/project.pbxproj
#@@ -434,6 +434,8 @@
# 		C8B27BA328153F6300A22B5D /* create.cc in Sources */ = {isa = PBXBuildFile; fileRef = C887BEC02807FCE900867D3C /* create.cc */; };
# 		C8B27BA428153F6600A22B5D /* edit.cc in Sources */ = {isa = PBXBuildFile; fileRef = C887BEC22807FCE900867D3C /* edit.cc */; };
# 		C8B27BA528153F6900A22B5D /* show.cc in Sources */ = {isa = PBXBuildFile; fileRef = C887BEC32807FCE900867D3C /* show.cc */; };
#+		C8ED0FB1281C10F100B44472 /* addr_is_reserved.c in Sources */ = {isa = PBXBuildFile; fileRef = C8ED0FAF281C10F100B44472 /* addr_is_reserved.c */; };
#+		C8ED0FB2281C10F100B44472 /* addr_is_reserved.h in Headers */ = {isa = PBXBuildFile; fileRef = C8ED0FB0281C10F100B44472 /* addr_is_reserved.h */; };
# 		CAB35C64252F6F5E00552A55 /* mime-types.h in Headers */ = {isa = PBXBuildFile; fileRef = CAB35C62252F6F5E00552A55 /* mime-types.h */; };
# 		CCEBA596277340F6DF9F4480 /* session-alt-speeds.cc in Sources */ = {isa = PBXBuildFile; fileRef = CCEBA596277340F6DF9F4481 /* session-alt-speeds.cc */; };
# 		CCEBA596277340F6DF9F4482 /* session-alt-speeds.h in Headers */ = {isa = PBXBuildFile; fileRef = CCEBA596277340F6DF9F4483 /* session-alt-speeds.h */; };
#@@ -1347,6 +1349,8 @@
# 		C8B27B7F28153F2B00A22B5D /* transmission-create */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "transmission-create"; sourceTree = BUILT_PRODUCTS_DIR; };
# 		C8B27B9028153F3100A22B5D /* transmission-edit */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "transmission-edit"; sourceTree = BUILT_PRODUCTS_DIR; };
# 		C8B27BA128153F3400A22B5D /* transmission-show */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "transmission-show"; sourceTree = BUILT_PRODUCTS_DIR; };
#+		C8ED0FAF281C10F100B44472 /* addr_is_reserved.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = addr_is_reserved.c; sourceTree = "<group>"; };
#+		C8ED0FB0281C10F100B44472 /* addr_is_reserved.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = addr_is_reserved.h; sourceTree = "<group>"; };
# 		CAB35C62252F6F5E00552A55 /* mime-types.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = "mime-types.h"; sourceTree = "<group>"; };
# 		CCEBA596277340F6DF9F4481 /* session-alt-speeds.cc */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = "session-alt-speeds.cc"; sourceTree = "<group>"; };
# 		CCEBA596277340F6DF9F4483 /* session-alt-speeds.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; path = "session-alt-speeds.h"; sourceTree = "<group>"; };
#@@ -2092,39 +2096,12 @@
# 		BE1183410CE15DF00002D0F3 /* libminiupnp */ = {
# 			isa = PBXGroup;
# 			children = (
#-				A22B00AE116A9E90003315FC /* connecthostport.c */,
#-				BE1183610CE160D50002D0F3 /* igd_desc_parse.c */,
#-				BE1183620CE160D50002D0F3 /* minixml.c */,
#-				BE1183630CE160D50002D0F3 /* miniwget.c */,
#-				BE1183640CE160D50002D0F3 /* minissdpc.c */,
#-				BE1183650CE160D50002D0F3 /* minisoap.c */,
#-				BE1183660CE160D50002D0F3 /* upnpreplyparse.c */,
#-				BE1183670CE160D50002D0F3 /* upnpcommands.c */,
#-				BE1183680CE160D50002D0F3 /* miniupnpc.c */,
#-				A20162CB13DE497000E15488 /* portlistingparse.c */,
#-				A20162C713DE48BF00E15488 /* receivedata.c */,
#-				C1BF7BA71F2A3CB7008E88A7 /* upnpdev.c */,
#-				C12F19771E1AE3C30005E93F /* upnperrors.c */,
#-				A22B00AF116A9E90003315FC /* connecthostport.h */,
#-				BE11834E0CE160C50002D0F3 /* miniupnpc_declspec.h */,
#-				BE11834F0CE160C50002D0F3 /* igd_desc_parse.h */,
#-				BE1183500CE160C50002D0F3 /* minixml.h */,
#-				BE1183510CE160C50002D0F3 /* miniwget.h */,
#-				BE1183520CE160C50002D0F3 /* minisoap.h */,
# 				A2F8CD420F3D0F4A00DB356A /* miniupnpcstrings.h */,
#-				A20162CF13DE49E500E15488 /* miniupnpctypes.h */,
#-				BE1183530CE160C50002D0F3 /* upnpreplyparse.h */,
#-				BE1183540CE160C50002D0F3 /* upnpcommands.h */,
#-				BE1183550CE160C50002D0F3 /* miniupnpc.h */,
#-				BE1183560CE160C50002D0F3 /* minissdpc.h */,
#-				A25485390EB66CBB004539DA /* codelength.h */,
#-				A20162CC13DE497000E15488 /* portlistingparse.h */,
#-				A20162C813DE48BF00E15488 /* receivedata.h */,
#-				C1BF7BA91F2A3CCE008E88A7 /* upnpdev.h */,
#-				C12F197A1E1AE4460005E93F /* upnperrors.h */,
#+				C891A007281C02F3002E745F /* include */,
#+				C8734FB02B9EA39F00EF2AD9 /* src */,
# 			);
# 			name = libminiupnp;
#-			path = "third-party/miniupnpc";
#+			path = "third-party/miniupnp/miniupnpc";
# 			sourceTree = "<group>";
# 		};
# 		BE75C3570C72A0D600DBEFE0 /* libevent */ = {
#@@ -2279,6 +2256,51 @@
# 			name = Compatibility;
# 			sourceTree = "<group>";
# 		};
#+		C8734FB02B9EA39F00EF2AD9 /* src */ = {
#+			isa = PBXGroup;
#+			children = (
#+				C8ED0FAF281C10F100B44472 /* addr_is_reserved.c */,
#+				A22B00AE116A9E90003315FC /* connecthostport.c */,
#+				BE1183610CE160D50002D0F3 /* igd_desc_parse.c */,
#+				BE1183650CE160D50002D0F3 /* minisoap.c */,
#+				BE1183640CE160D50002D0F3 /* minissdpc.c */,
#+				BE1183680CE160D50002D0F3 /* miniupnpc.c */,
#+				BE1183630CE160D50002D0F3 /* miniwget.c */,
#+				BE1183620CE160D50002D0F3 /* minixml.c */,
#+				A20162CB13DE497000E15488 /* portlistingparse.c */,
#+				A20162C713DE48BF00E15488 /* receivedata.c */,
#+				BE1183670CE160D50002D0F3 /* upnpcommands.c */,
#+				C1BF7BA71F2A3CB7008E88A7 /* upnpdev.c */,
#+				C12F19771E1AE3C30005E93F /* upnperrors.c */,
#+				BE1183660CE160D50002D0F3 /* upnpreplyparse.c */,
#+				C8ED0FB0281C10F100B44472 /* addr_is_reserved.h */,
#+				A25485390EB66CBB004539DA /* codelength.h */,
#+				A22B00AF116A9E90003315FC /* connecthostport.h */,
#+				BE1183520CE160C50002D0F3 /* minisoap.h */,
#+				BE1183560CE160C50002D0F3 /* minissdpc.h */,
#+				BE1183500CE160C50002D0F3 /* minixml.h */,
#+				A20162C813DE48BF00E15488 /* receivedata.h */,
#+			);
#+			path = src;
#+			sourceTree = "<group>";
#+		};
#+		C891A007281C02F3002E745F /* include */ = {
#+			isa = PBXGroup;
#+			children = (
#+				BE11834F0CE160C50002D0F3 /* igd_desc_parse.h */,
#+				BE11834E0CE160C50002D0F3 /* miniupnpc_declspec.h */,
#+				BE1183550CE160C50002D0F3 /* miniupnpc.h */,
#+				A20162CF13DE49E500E15488 /* miniupnpctypes.h */,
#+				BE1183510CE160C50002D0F3 /* miniwget.h */,
#+				A20162CC13DE497000E15488 /* portlistingparse.h */,
#+				BE1183540CE160C50002D0F3 /* upnpcommands.h */,
#+				C1BF7BA91F2A3CCE008E88A7 /* upnpdev.h */,
#+				C12F197A1E1AE4460005E93F /* upnperrors.h */,
#+				BE1183530CE160C50002D0F3 /* upnpreplyparse.h */,
#+			);
#+			path = include;
#+			sourceTree = "<group>";
#+		};
# 		E1B6FBF80C0D719B0015FE4D /* Info Window */ = {
# 			isa = PBXGroup;
# 			children = (
#@@ -2470,6 +2492,7 @@
# 				BE11835D0CE160C50002D0F3 /* upnpreplyparse.h in Headers */,
# 				C1BF7BAA1F2A3CCE008E88A7 /* upnpdev.h in Headers */,
# 				BE1183600CE160C50002D0F3 /* minissdpc.h in Headers */,
#+				C8ED0FB2281C10F100B44472 /* addr_is_reserved.h in Headers */,
# 				A254853C0EB66CD4004539DA /* codelength.h in Headers */,
# 				A2F8CD430F3D0F4A00DB356A /* miniupnpcstrings.h in Headers */,
# 				A22B00B2116A9E9F003315FC /* connecthostport.h in Headers */,
#@@ -3027,15 +3050,16 @@
# 			files = (
# 			);
# 			inputPaths = (
#-				"third-party/miniupnpc/VERSION",
#-				"third-party/miniupnpc/miniupnpcstrings.h.in",
#+				"third-party/miniupnp/miniupnpc/VERSION",
#+				"third-party/miniupnp/miniupnpc/miniupnpcstrings.h.in",
#+				"third-party/miniupnp/miniupnpc/updateminiupnpcstrings.sh",
# 			);
# 			outputPaths = (
#-				"third-party/miniupnpc/miniupnpcstrings.h",
#+				"third-party/miniupnp/miniupnpc/miniupnpcstrings.h",
# 			);
# 			runOnlyForDeploymentPostprocessing = 0;
# 			shellPath = /bin/sh;
#-			shellScript = "cd third-party/miniupnpc\nsh updateminiupnpcstrings.sh \"$SCRIPT_INPUT_FILE_0\" \"$SCRIPT_INPUT_FILE_1\" \"$SCRIPT_OUTPUT_FILE_0\"\n";
#+			shellScript = "cd third-party/miniupnp/miniupnpc\nsh updateminiupnpcstrings.sh\n";
# 		};
# 		BE75C3510C729EE100DBEFE0 /* Copy libevent headers */ = {
# 			isa = PBXShellScriptBuildPhase;
#@@ -3067,7 +3091,7 @@
# 			);
# 			runOnlyForDeploymentPostprocessing = 0;
# 			shellPath = /bin/sh;
#-			shellScript = "cd third-party/miniupnpc && rm -f miniupnp && ln -s . miniupnp\n";
#+			shellScript = "cd third-party/miniupnp && rm -f miniupnp && ln -s . miniupnp\n";
# 		};
# 		C12F197E1E1AE6D50005E93F /* ShellScript */ = {
# 			isa = PBXShellScriptBuildPhase;
#@@ -3340,6 +3364,7 @@
# 				C12F19791E1AE3C30005E93F /* upnperrors.c in Sources */,
# 				BE11836E0CE160D50002D0F3 /* upnpreplyparse.c in Sources */,
# 				C1BF7BA81F2A3CB7008E88A7 /* upnpdev.c in Sources */,
#+				C8ED0FB1281C10F100B44472 /* addr_is_reserved.c in Sources */,
# 				BE11836F0CE160D50002D0F3 /* upnpcommands.c in Sources */,
# 				BE1183700CE160D50002D0F3 /* miniupnpc.c in Sources */,
# 				A22B00B3116A9EA4003315FC /* connecthostport.c in Sources */,
#diff --git a/third-party/miniupnp b/third-party/miniupnp
#new file mode 160000
#index 000000000..faad29d73
#--- /dev/null
#+++ b/third-party/miniupnp
#@@ -0,0 +1 @@
#+Subproject commit faad29d7300f1bfa9dc7795031993c04c5191f59
#diff --git a/third-party/miniupnpc b/third-party/miniupnpc
#deleted file mode 160000
#index e37cde82e..000000000
#--- a/third-party/miniupnpc
#+++ /dev/null
#@@ -1 +0,0 @@
#-Subproject commit e37cde82e8673a5e71bae43086828704fd5eeac1
-- 
2.45.2


debug log:

solving 18ac5054594721234f90d43b70b40f5ea60bf170 ...
found 18ac5054594721234f90d43b70b40f5ea60bf170 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).