From d8dfb1b5d42d53981a1d073476b3b54671003056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Thu, 16 Jan 2020 16:04:52 -0500 Subject: [PATCH] pupnp: disable integrated mini web server This fix a huge CPU consumption for mobile devices and we doesn't need any server that serve UPnP related documents Change-Id: I6eee8d9b14b710a7b1be237612f514abff23198d --- contrib/src/upnp/libupnp-windows.patch | 4 ++-- contrib/src/upnp/rules.mak | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/src/upnp/libupnp-windows.patch b/contrib/src/upnp/libupnp-windows.patch index 9985763c7f..8db50d6b73 100644 --- a/contrib/src/upnp/libupnp-windows.patch +++ b/contrib/src/upnp/libupnp-windows.patch @@ -2597,7 +2597,7 @@ Subject: [PATCH] Windows patch. + +/** Defined to 1 if the library has been compiled with integrated web server + * (i.e. configure --enable-webserver --enable-device) */ -+#define UPNP_HAVE_WEBSERVER 1 ++#define UPNP_HAVE_WEBSERVER 0 + +/** Defined to 1 if the library has been compiled with the SSDP part enabled + * (i.e. configure --enable-ssdp) */ @@ -2898,7 +2898,7 @@ Subject: [PATCH] Windows patch. +#define UPNP_HAVE_TOOLS 1 + +/* see upnpconfig.h */ -+#define UPNP_HAVE_WEBSERVER 1 ++#define UPNP_HAVE_WEBSERVER 0 + +/* whether the system defaults to 32bit off_t but can do 64bit when requested + */ diff --git a/contrib/src/upnp/rules.mak b/contrib/src/upnp/rules.mak index 5d995c7bb5..e83a5cc9ff 100644 --- a/contrib/src/upnp/rules.mak +++ b/contrib/src/upnp/rules.mak @@ -25,10 +25,10 @@ endif .upnp: upnp ifdef HAVE_WIN32 $(RECONF) - cd $< && $(HOSTVARS) CFLAGS="-DUPNP_STATIC_LIB" ./configure --disable-largefile --disable-samples --without-documentation $(HOSTCONF) + cd $< && $(HOSTVARS) CFLAGS="-DUPNP_STATIC_LIB" ./configure --disable-largefile --disable-samples --disable-webserver --without-documentation $(HOSTCONF) else $(RECONF) - cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -DUPNP_STATIC_LIB" ./configure --disable-largefile --disable-samples --without-documentation $(HOSTCONF) + cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -DUPNP_STATIC_LIB" ./configure --disable-largefile --disable-samples --disable-webserver --without-documentation $(HOSTCONF) endif cd $< && $(MAKE) install touch $@ -- GitLab