From bc8eebf5e7dabe71240ec801ba7cda061ac3f8c4 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Tue, 22 Oct 2019 10:03:54 +0000 Subject: [PATCH] add patches --- miniupnpc-tests.patch | 33 +++++++++++++++++++++++++++++++++ miniupnpc-version.patch | 10 ++++++++++ 2 files changed, 43 insertions(+) create mode 100644 miniupnpc-tests.patch create mode 100644 miniupnpc-version.patch diff --git a/miniupnpc-tests.patch b/miniupnpc-tests.patch new file mode 100644 index 0000000..a6e2d93 --- /dev/null +++ b/miniupnpc-tests.patch @@ -0,0 +1,33 @@ +diff -up miniupnpc-1.9/CMakeLists.txt.orig miniupnpc-1.9/CMakeLists.txt +--- miniupnpc-1.9/CMakeLists.txt.orig 2014-04-16 00:13:30.289068350 -0300 ++++ miniupnpc-1.9/CMakeLists.txt 2014-04-16 00:16:15.527074677 -0300 +@@ -128,25 +128,25 @@ if (UPNPC_BUILD_TESTS) + target_link_libraries (testminixml ${LDLIBS}) + + add_executable (minixmlvalid minixmlvalid.c minixml.c) +- target_link_libraries (minixmlvalid ${LDLIBS}) ++ target_link_libraries (minixmlvalid ${LDLIBS} -L. -lminiupnpc) + + add_executable (testupnpreplyparse testupnpreplyparse.c + minixml.c upnpreplyparse.c) +- target_link_libraries (testupnpreplyparse ${LDLIBS}) ++ target_link_libraries (testupnpreplyparse ${LDLIBS} -L. -lminiupnpc) + + add_executable (testigddescparse testigddescparse.c + igd_desc_parse.c minixml.c miniupnpc.c miniwget.c minissdpc.c + upnpcommands.c upnpreplyparse.c minisoap.c connecthostport.c + portlistingparse.c receivedata.c + ) +- target_link_libraries (testigddescparse ${LDLIBS}) ++ target_link_libraries (testigddescparse ${LDLIBS} -L. -lminiupnpc) + + add_executable (testminiwget testminiwget.c + miniwget.c miniupnpc.c minisoap.c upnpcommands.c minissdpc.c + upnpreplyparse.c minixml.c igd_desc_parse.c connecthostport.c + portlistingparse.c receivedata.c + ) +- target_link_libraries (testminiwget ${LDLIBS}) ++ target_link_libraries (testminiwget ${LDLIBS} -L. -lminiupnpc) + + # set (UPNPC_INSTALL_TARGETS ${UPNPC_INSTALL_TARGETS} testminixml minixmlvalid testupnpreplyparse testigddescparse testminiwget) + endif (UPNPC_BUILD_TESTS) diff --git a/miniupnpc-version.patch b/miniupnpc-version.patch new file mode 100644 index 0000000..11193e9 --- /dev/null +++ b/miniupnpc-version.patch @@ -0,0 +1,10 @@ +--- CMakeLists.txt.orig 2016-06-08 10:22:31.058083356 +0200 ++++ CMakeLists.txt 2016-06-08 10:22:49.698117692 +0200 +@@ -118,7 +118,6 @@ + if (UPNPC_BUILD_SHARED) + add_library (upnpc-shared SHARED ${MINIUPNPC_SOURCES}) + set_target_properties (upnpc-shared PROPERTIES OUTPUT_NAME "miniupnpc") +- set_target_properties (upnpc-shared PROPERTIES VERSION ${MINIUPNPC_VERSION}) + set_target_properties (upnpc-shared PROPERTIES SOVERSION ${MINIUPNPC_API_VERSION}) + target_link_libraries (upnpc-shared ${LDLIBS}) + set (UPNPC_INSTALL_TARGETS ${UPNPC_INSTALL_TARGETS} upnpc-shared)