mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-19 18:09:47 +01:00
build: replace wingenminiupnpcstrings sed with a patch in miniupnpc package
We should be able to drop this once we are using 2.1 or later. See upstream commit: 9663c55c61408fdcc39a82987d2243f816b22932.
This commit is contained in:
parent
bbc01a753d
commit
3de365e4f1
@ -3,6 +3,7 @@ $(package)_version=2.0.20180203
|
||||
$(package)_download_path=https://miniupnp.tuxfamily.org/files/
|
||||
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
||||
$(package)_sha256_hash=90dda8c7563ca6cd4a83e23b3c66dbbea89603a1675bfdb852897c2c9cc220b7
|
||||
$(package)_patches=dont_use_wingen.patch
|
||||
|
||||
define $(package)_set_vars
|
||||
$(package)_build_opts=CC="$($(package)_cc)"
|
||||
@ -14,7 +15,7 @@ endef
|
||||
define $(package)_preprocess_cmds
|
||||
mkdir dll && \
|
||||
sed -e 's|MINIUPNPC_VERSION_STRING \"version\"|MINIUPNPC_VERSION_STRING \"$($(package)_version)\"|' -e 's|OS/version|$(host)|' miniupnpcstrings.h.in > miniupnpcstrings.h && \
|
||||
sed -i.old "s|miniupnpcstrings.h: miniupnpcstrings.h.in wingenminiupnpcstrings|miniupnpcstrings.h: miniupnpcstrings.h.in|" Makefile.mingw
|
||||
patch -p1 < $($(package)_patch_dir)/dont_use_wingen.patch
|
||||
endef
|
||||
|
||||
define $(package)_build_cmds
|
||||
|
26
depends/patches/miniupnpc/dont_use_wingen.patch
Normal file
26
depends/patches/miniupnpc/dont_use_wingen.patch
Normal file
@ -0,0 +1,26 @@
|
||||
commit e8077044df239bcf0d9e9980b0e1afb9f1f5c446
|
||||
Author: fanquake <fanquake@gmail.com>
|
||||
Date: Tue Aug 18 20:50:19 2020 +0800
|
||||
|
||||
Don't use wingenminiupnpcstrings when generating miniupnpcstrings.h
|
||||
|
||||
The wingenminiupnpcstrings tool is used on Windows to generate version
|
||||
information. This information is irrelevant for us, and trying to use
|
||||
wingenminiupnpcstrings would cause builds to fail, so just don't use it.
|
||||
|
||||
We should be able to drop this once we are using 2.1 or later. See
|
||||
upstream commit: 9663c55c61408fdcc39a82987d2243f816b22932.
|
||||
|
||||
diff --git a/Makefile.mingw b/Makefile.mingw
|
||||
index 574720e..fcc17bb 100644
|
||||
--- a/Makefile.mingw
|
||||
+++ b/Makefile.mingw
|
||||
@@ -74,7 +74,7 @@ wingenminiupnpcstrings: wingenminiupnpcstrings.o
|
||||
|
||||
wingenminiupnpcstrings.o: wingenminiupnpcstrings.c
|
||||
|
||||
-miniupnpcstrings.h: miniupnpcstrings.h.in wingenminiupnpcstrings
|
||||
+miniupnpcstrings.h: miniupnpcstrings.h.in
|
||||
wingenminiupnpcstrings $< $@
|
||||
|
||||
minixml.o: minixml.c minixml.h
|
Loading…
Reference in New Issue
Block a user