dnsutils: Link with libreadline, not libedit
authorFredrik Fornwall <fredrik@fornwall.net>
Mon, 22 May 2017 22:42:36 +0000 (00:42 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Mon, 22 May 2017 22:42:36 +0000 (00:42 +0200)
packages/dnsutils/build.sh
packages/dnsutils/configure.patch [new file with mode: 0644]

index 809f1c8..14e226e 100644 (file)
@@ -5,9 +5,16 @@ TERMUX_PKG_SRCURL="ftp://ftp.isc.org/isc/bind9/${TERMUX_PKG_VERSION}/bind-${TERM
 TERMUX_PKG_SHA256=1e283f0567b484687dfd7b936e26c9af4f64043daf73cbd8f3eb1122c9fb71f5
 TERMUX_PKG_FOLDERNAME="bind-$TERMUX_PKG_VERSION"
 TERMUX_PKG_DEPENDS="openssl, readline, resolv-conf"
-TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --with-gssapi=no --with-randomdev=/dev/random -with-ecdsa=no --with-gost=no --with-libxml2=no --with-libtool"
-TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-libjson=no"
-TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-openssl=$TERMUX_PREFIX"
+TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
+--with-ecdsa=no
+--with-gost=no
+--with-gssapi=no
+--with-libjson=no
+--with-libtool
+--with-libxml2=no
+--with-openssl=$TERMUX_PREFIX
+--with-randomdev=/dev/random
+"
 
 termux_step_pre_configure () {
        export BUILD_AR=ar
diff --git a/packages/dnsutils/configure.patch b/packages/dnsutils/configure.patch
new file mode 100644 (file)
index 0000000..b0c71aa
--- /dev/null
@@ -0,0 +1,12 @@
+diff -u -r ../bind-9.11.0-P5/configure ./configure
+--- ../bind-9.11.0-P5/configure        2017-03-30 00:03:33.000000000 +0200
++++ ./configure        2017-05-23 00:32:54.924640433 +0200
+@@ -19082,7 +19082,7 @@
+ no)   ;;
+ yes|auto)
+       saved_LIBS="$LIBS"
+-      for readline in -ledit -lreadline
++      for readline in -lreadline
+       do
+               LIBS="$readline"
+               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5