mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-ftp/lftp: Remove all LDFLAGS=.*-L.*\/lib (bug #646284).
This commit is contained in:
12
net-ftp/lftp/files/lftp-4.7.5-libdir-additional.patch
Normal file
12
net-ftp/lftp/files/lftp-4.7.5-libdir-additional.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- a/m4/lib-prefix.m4
|
||||
+++ b/m4/lib-prefix.m4
|
||||
@@ -108,7 +108,8 @@
|
||||
if test -z "$haveit"; then
|
||||
if test -d "$additional_libdir"; then
|
||||
dnl Really add $additional_libdir to $LDFLAGS.
|
||||
- LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
|
||||
+ dnl No, let's not do that.
|
||||
+ :
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
10
net-ftp/lftp/files/lftp-4.7.5-libdir-configure.patch
Normal file
10
net-ftp/lftp/files/lftp-4.7.5-libdir-configure.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -186,7 +186,6 @@
|
||||
esac
|
||||
|
||||
if test x$socks_loc != x; then
|
||||
- LDFLAGS="$LDFLAGS -L$socks_loc/lib"
|
||||
CPPFLAGS="$CPPFLAGS -I$socks_loc/include"
|
||||
fi
|
||||
|
||||
11
net-ftp/lftp/files/lftp-4.7.5-libdir-expat.patch
Normal file
11
net-ftp/lftp/files/lftp-4.7.5-libdir-expat.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/m4/ax_lib_expat.m4
|
||||
+++ b/m4/ax_lib_expat.m4
|
||||
@@ -109,7 +109,7 @@
|
||||
|
||||
if test -n "$expat_prefix"; then
|
||||
expat_include_dir="$expat_prefix/include"
|
||||
- expat_ld_flags="-L$expat_prefix/lib"
|
||||
+ expat_ld_flags="-L$libdir"
|
||||
expat_lib_flags="-lexpat"
|
||||
run_expat_test="yes"
|
||||
elif test "$expat_requested" = "yes"; then
|
||||
10
net-ftp/lftp/files/lftp-4.7.5-libdir-libidn.patch
Normal file
10
net-ftp/lftp/files/lftp-4.7.5-libdir-libidn.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- a/m4/lftp.m4
|
||||
+++ b/m4/lftp.m4
|
||||
@@ -319,7 +319,6 @@
|
||||
libidn=$withval, libidn=yes)
|
||||
if test "$libidn" != "no"; then
|
||||
if test "$libidn" != "yes"; then
|
||||
- LDFLAGS="${LDFLAGS} -L$libidn/lib"
|
||||
CPPFLAGS="${CPPFLAGS} -I$libidn/include"
|
||||
fi
|
||||
AC_CHECK_HEADER(idna.h,
|
||||
18
net-ftp/lftp/files/lftp-4.7.5-libdir-openssl.patch
Normal file
18
net-ftp/lftp/files/lftp-4.7.5-libdir-openssl.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
--- a/m4/ssl.m4
|
||||
+++ b/m4/ssl.m4
|
||||
@@ -10,7 +10,6 @@
|
||||
old_CPPFLAGS="$CPPFLAGS"
|
||||
LIBS="$LIBS -lssl -lcrypto"
|
||||
if test $loc != default; then
|
||||
- LDFLAGS="$LDFLAGS -L$loc/lib"
|
||||
CPPFLAGS="$CPPFLAGS -I$loc/include"
|
||||
fi
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <openssl/ssl.h>
|
||||
@@ -21,7 +20,6 @@
|
||||
if test $found_loc != "none"; then
|
||||
lftp_cv_openssl="OPENSSL_LIBS=\"-lssl -lcrypto\""
|
||||
if test $found_loc != default; then
|
||||
- lftp_cv_openssl="$lftp_cv_openssl OPENSSL_LDFLAGS=\"-L$found_loc/lib -R$found_loc/lib\""
|
||||
lftp_cv_openssl="$lftp_cv_openssl OPENSSL_CPPFLAGS=-I$found_loc/include"
|
||||
fi
|
||||
break;
|
||||
11
net-ftp/lftp/files/lftp-4.7.5-libdir-readline.patch
Normal file
11
net-ftp/lftp/files/lftp-4.7.5-libdir-readline.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/m4/lftp_lib_readline.m4
|
||||
+++ b/m4/lftp_lib_readline.m4
|
||||
@@ -107,7 +107,7 @@
|
||||
if test -f "$readline_include_dir/readline/readline.h"; then
|
||||
readline_include_dir="$readline_include_dir/readline"
|
||||
fi
|
||||
- readline_ld_flags="-L$readline_prefix/lib"
|
||||
+ readline_ld_flags="-L$libdir"
|
||||
readline_lib_flags="-lreadline"
|
||||
run_readline_test="yes"
|
||||
elif test "$readline_requested" = "yes"; then
|
||||
18
net-ftp/lftp/files/lftp-4.7.5-libdir-zlib.patch
Normal file
18
net-ftp/lftp/files/lftp-4.7.5-libdir-zlib.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
--- a/m4/ax_check_zlib.m4
|
||||
+++ b/m4/ax_check_zlib.m4
|
||||
@@ -105,7 +105,6 @@
|
||||
ZLIB_OLD_LDFLAGS=$LDFLAGS
|
||||
ZLIB_OLD_CPPFLAGS=$CPPFLAGS
|
||||
if test -n "${ZLIB_HOME}"; then
|
||||
- LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
|
||||
CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
|
||||
fi
|
||||
AC_LANG_SAVE
|
||||
@@ -120,7 +119,6 @@
|
||||
#
|
||||
m4_ifblank([$1],[
|
||||
CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
|
||||
- LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
|
||||
LIBS="-lz $LIBS"
|
||||
AC_DEFINE([HAVE_LIBZ], [1],
|
||||
[Define to 1 if you have `z' library (-lz)])
|
||||
18
net-ftp/lftp/files/lftp-4.8.2-libdir-configure.patch
Normal file
18
net-ftp/lftp/files/lftp-4.8.2-libdir-configure.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -186,7 +186,6 @@
|
||||
esac
|
||||
|
||||
if test x$socks_loc != x; then
|
||||
- LDFLAGS="$LDFLAGS -L$socks_loc/lib"
|
||||
CPPFLAGS="$CPPFLAGS -I$socks_loc/include"
|
||||
fi
|
||||
|
||||
@@ -307,7 +306,6 @@
|
||||
AX_CHECK_ZLIB([
|
||||
AC_SUBST([ZLIB],[-lz])
|
||||
r=""; test "$enable_rpath" = yes -a "$ZLIB_HOME" != /usr && r=" -R${ZLIB_HOME}/lib"
|
||||
- AC_SUBST([ZLIB_LDFLAGS],["-L${ZLIB_HOME}/lib$r"])
|
||||
AC_SUBST([ZLIB_CPPFLAGS],["-I${ZLIB_HOME}/include"])
|
||||
],[
|
||||
AC_MSG_ERROR([cannot find -lz library, install zlib-devel package])
|
||||
10
net-ftp/lftp/files/lftp-4.8.2-libdir-libidn2.patch
Normal file
10
net-ftp/lftp/files/lftp-4.8.2-libdir-libidn2.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- a/m4/lftp.m4
|
||||
+++ b/m4/lftp.m4
|
||||
@@ -319,7 +319,6 @@
|
||||
libidn2=$withval, libidn2=yes)
|
||||
if test "$libidn2" != "no"; then
|
||||
if test "$libidn2" != "yes"; then
|
||||
- LDFLAGS="${LDFLAGS} -L$libidn2/lib"
|
||||
CPPFLAGS="${CPPFLAGS} -I$libidn2/include"
|
||||
fi
|
||||
AC_CHECK_HEADER(idn2.h,
|
||||
18
net-ftp/lftp/files/lftp-4.8.2-libdir-openssl.patch
Normal file
18
net-ftp/lftp/files/lftp-4.8.2-libdir-openssl.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
--- a/m4/ssl.m4
|
||||
+++ b/m4/ssl.m4
|
||||
@@ -10,7 +10,6 @@
|
||||
old_CPPFLAGS="$CPPFLAGS"
|
||||
LIBS="$LIBS -lssl -lcrypto"
|
||||
if test $loc != default; then
|
||||
- LDFLAGS="$LDFLAGS -L$loc/lib"
|
||||
CPPFLAGS="$CPPFLAGS -I$loc/include"
|
||||
fi
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <openssl/ssl.h>
|
||||
@@ -22,7 +21,6 @@
|
||||
lftp_cv_openssl="OPENSSL_LIBS=\"-lssl -lcrypto\""
|
||||
if test $found_loc != default; then
|
||||
r=""; test "$enable_rpath" = yes -a "$found_loc" != /usr && r=" -R$found_loc/lib"
|
||||
- lftp_cv_openssl="$lftp_cv_openssl OPENSSL_LDFLAGS=\"-L$found_loc/lib$r\""
|
||||
lftp_cv_openssl="$lftp_cv_openssl OPENSSL_CPPFLAGS=-I$found_loc/include"
|
||||
fi
|
||||
break;
|
||||
20
net-ftp/lftp/files/lftp-4.8.2-libdir-zlib.patch
Normal file
20
net-ftp/lftp/files/lftp-4.8.2-libdir-zlib.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
--- a/m4/ax_check_zlib.m4
|
||||
+++ b/m4/ax_check_zlib.m4
|
||||
@@ -105,7 +105,6 @@
|
||||
ZLIB_OLD_LDFLAGS="$LDFLAGS"
|
||||
ZLIB_OLD_CPPFLAGS="$CPPFLAGS"
|
||||
if test -n "${ZLIB_HOME}"; then
|
||||
- LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
|
||||
CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
|
||||
fi
|
||||
AC_LANG_SAVE
|
||||
@@ -118,8 +118,7 @@
|
||||
# If both library and header were found, action-if-found
|
||||
#
|
||||
m4_ifblank([$1],[
|
||||
- test "$enable_rpath" = yes -a "$ZLIB_HOME" != /usr && \
|
||||
- LDFLAGS="$LDFLAGS -R${ZLIB_HOME}/lib"
|
||||
+ test "$enable_rpath" = yes -a "$ZLIB_HOME" != /usr
|
||||
LIBS="-lz $LIBS"
|
||||
AC_DEFINE([HAVE_LIBZ], [1],
|
||||
[Define to 1 if you have `z' library (-lz)])
|
||||
@@ -2,7 +2,7 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit autotools eutils libtool multilib
|
||||
inherit autotools eutils libtool
|
||||
|
||||
DESCRIPTION="A sophisticated ftp/sftp/http/https/torrent client and file transfer program"
|
||||
HOMEPAGE="https://lftp.tech/"
|
||||
@@ -55,6 +55,13 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.0.2.91-lafile.patch
|
||||
"${FILESDIR}"/${PN}-4.5.5-am_config_header.patch
|
||||
"${FILESDIR}"/${PN}-4.7.0-gettext.patch
|
||||
"${FILESDIR}"/${PN}-4.7.5-libdir-additional.patch
|
||||
"${FILESDIR}"/${PN}-4.7.5-libdir-configure.patch
|
||||
"${FILESDIR}"/${PN}-4.7.5-libdir-expat.patch
|
||||
"${FILESDIR}"/${PN}-4.7.5-libdir-libidn.patch
|
||||
"${FILESDIR}"/${PN}-4.7.5-libdir-openssl.patch
|
||||
"${FILESDIR}"/${PN}-4.7.5-libdir-readline.patch
|
||||
"${FILESDIR}"/${PN}-4.7.5-libdir-zlib.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
@@ -76,7 +83,6 @@ src_configure() {
|
||||
$(usex ssl "$(use_with !gnutls openssl ${EPREFIX}/usr)" '--without-openssl') \
|
||||
$(usex ssl "$(use_with gnutls)" '--without-gnutls') \
|
||||
--enable-packager-mode \
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--sysconfdir="${EPREFIX}"/etc/${PN} \
|
||||
--with-modules \
|
||||
--with-readline="${EPREFIX}"/usr \
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit autotools eutils libtool multilib
|
||||
inherit autotools eutils libtool
|
||||
|
||||
DESCRIPTION="A sophisticated ftp/sftp/http/https/torrent client and file transfer program"
|
||||
HOMEPAGE="https://lftp.tech/"
|
||||
@@ -57,6 +57,13 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.0.2.91-lafile.patch
|
||||
"${FILESDIR}"/${PN}-4.5.5-am_config_header.patch
|
||||
"${FILESDIR}"/${PN}-4.7.0-gettext.patch
|
||||
"${FILESDIR}"/${PN}-4.7.5-libdir-additional.patch
|
||||
"${FILESDIR}"/${PN}-4.7.5-libdir-expat.patch
|
||||
"${FILESDIR}"/${PN}-4.7.5-libdir-readline.patch
|
||||
"${FILESDIR}"/${PN}-4.8.2-libdir-configure.patch
|
||||
"${FILESDIR}"/${PN}-4.8.2-libdir-libidn2.patch
|
||||
"${FILESDIR}"/${PN}-4.8.2-libdir-openssl.patch
|
||||
"${FILESDIR}"/${PN}-4.8.2-libdir-zlib.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
@@ -79,7 +86,6 @@ src_configure() {
|
||||
$(usex ssl "$(use_with !gnutls openssl ${EPREFIX}/usr)" '--without-openssl') \
|
||||
$(usex ssl "$(use_with gnutls)" '--without-gnutls') \
|
||||
--enable-packager-mode \
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--sysconfdir="${EPREFIX}"/etc/${PN} \
|
||||
--with-modules \
|
||||
--with-readline="${EPREFIX}"/usr \
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit autotools eutils libtool multilib
|
||||
inherit autotools eutils libtool
|
||||
|
||||
DESCRIPTION="A sophisticated ftp/sftp/http/https/torrent client and file transfer program"
|
||||
HOMEPAGE="https://lftp.tech/"
|
||||
@@ -57,6 +57,13 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.0.2.91-lafile.patch
|
||||
"${FILESDIR}"/${PN}-4.5.5-am_config_header.patch
|
||||
"${FILESDIR}"/${PN}-4.7.0-gettext.patch
|
||||
"${FILESDIR}"/${PN}-4.7.5-libdir-additional.patch
|
||||
"${FILESDIR}"/${PN}-4.7.5-libdir-expat.patch
|
||||
"${FILESDIR}"/${PN}-4.7.5-libdir-readline.patch
|
||||
"${FILESDIR}"/${PN}-4.8.2-libdir-configure.patch
|
||||
"${FILESDIR}"/${PN}-4.8.2-libdir-libidn2.patch
|
||||
"${FILESDIR}"/${PN}-4.8.2-libdir-openssl.patch
|
||||
"${FILESDIR}"/${PN}-4.8.2-libdir-zlib.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
@@ -79,7 +86,6 @@ src_configure() {
|
||||
$(usex ssl "$(use_with !gnutls openssl ${EPREFIX}/usr)" '--without-openssl') \
|
||||
$(usex ssl "$(use_with gnutls)" '--without-gnutls') \
|
||||
--enable-packager-mode \
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--sysconfdir="${EPREFIX}"/etc/${PN} \
|
||||
--with-modules \
|
||||
--with-readline="${EPREFIX}"/usr \
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit autotools eutils git-r3 libtool multilib
|
||||
inherit autotools eutils git-r3 libtool
|
||||
|
||||
DESCRIPTION="A sophisticated ftp/sftp/http/https/torrent client and file transfer program"
|
||||
HOMEPAGE="https://lftp.tech/"
|
||||
@@ -19,7 +19,7 @@ RDEPEND="
|
||||
dev-libs/expat
|
||||
sys-libs/zlib
|
||||
convert-mozilla-cookies? ( dev-perl/DBI )
|
||||
idn? ( net-dns/libidn )
|
||||
idn? ( net-dns/libidn2 )
|
||||
socks5? (
|
||||
>=net-proxy/dante-1.1.12
|
||||
virtual/pam
|
||||
@@ -52,6 +52,12 @@ DOCS=(
|
||||
)
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.5.5-am_config_header.patch
|
||||
"${FILESDIR}"/${PN}-4.7.5-libdir-expat.patch
|
||||
"${FILESDIR}"/${PN}-4.7.5-libdir-readline.patch
|
||||
"${FILESDIR}"/${PN}-4.8.2-libdir-configure.patch
|
||||
"${FILESDIR}"/${PN}-4.8.2-libdir-libidn2.patch
|
||||
"${FILESDIR}"/${PN}-4.8.2-libdir-openssl.patch
|
||||
"${FILESDIR}"/${PN}-4.8.2-libdir-zlib.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
@@ -69,12 +75,11 @@ src_configure() {
|
||||
econf \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable nls) \
|
||||
$(use_with idn libidn) \
|
||||
$(use_with idn libidn2) \
|
||||
$(use_with socks5 socksdante "${EPREFIX}"/usr) \
|
||||
$(usex ssl "$(use_with !gnutls openssl ${EPREFIX}/usr)" '--without-openssl') \
|
||||
$(usex ssl "$(use_with gnutls)" '--without-gnutls') \
|
||||
--enable-packager-mode \
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--sysconfdir="${EPREFIX}"/etc/${PN} \
|
||||
--with-modules \
|
||||
--with-readline="${EPREFIX}"/usr \
|
||||
|
||||
Reference in New Issue
Block a user