wget: try to fix libunistring dependency
authorHannu Nyman <hannu.nyman@iki.fi>
Mon, 18 Sep 2017 17:40:16 +0000 (20:40 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Mon, 18 Sep 2017 17:40:16 +0000 (20:40 +0300)
wget 1.91.1 configure script tries to link libunistring
if that is found. That lib is rather large and is not that
essential for normal operations, so instead of depending
on that, try to avoid linking it.

Revert an upstream commit that removed the clearance of
libunistring data in case IRI is explicitly disabled
(like we have it).

Reference to upstream commits:
http://git.savannah.gnu.org/cgit/wget.git/commit/?id=00ae9b4ee2caa6640776e9777e7ef5a374d082c0
http://git.savannah.gnu.org/cgit/wget.git/commit/?id=990f3d67d340d226bbd4187f5d310a4d2bf2bfe4

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
net/wget/Makefile
net/wget/patches/100-revert-removal-of-libunistring-check-clear.patch [new file with mode: 0644]

index f0f352344fced7f0c7a839573c83d2c700202839..1e784052e0edd4c4c0f6f6a7c294d8761a60580a 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=wget
 PKG_VERSION:=1.19.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
diff --git a/net/wget/patches/100-revert-removal-of-libunistring-check-clear.patch b/net/wget/patches/100-revert-removal-of-libunistring-check-clear.patch
new file mode 100644 (file)
index 0000000..6c93737
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -663,6 +663,11 @@ if test "X$iri" != "Xno"; then
+ #    ])
+   ])
+ fi
++if test "X$iri" = "Xno"; then
++  # we don't need libunistring - clear settings from gnulib module
++  LIBUNISTRING=""
++  LTLIBUNISTRING=""
++fi
+ dnl
+ dnl Check for UUID