summaryrefslogtreecommitdiffstats
path: root/debian/patches/90_cherrypick-d340b02c_do-not-liunk-against-libelf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/90_cherrypick-d340b02c_do-not-liunk-against-libelf.patch')
-rw-r--r--debian/patches/90_cherrypick-d340b02c_do-not-liunk-against-libelf.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/patches/90_cherrypick-d340b02c_do-not-liunk-against-libelf.patch b/debian/patches/90_cherrypick-d340b02c_do-not-liunk-against-libelf.patch
new file mode 100644
index 0000000..dedaaad
--- /dev/null
+++ b/debian/patches/90_cherrypick-d340b02c_do-not-liunk-against-libelf.patch
@@ -0,0 +1,39 @@
+Origin: commit:d340b02cbedb7e6e726559f26dc09d3b8b104ec5
+Author: Amadeusz Sławiński <amade@asmblr.net>
+Date: Tue Jul 8 14:55:25 2014 +0200
+Bug-Debian: https://bugs.debian.org/903818
+Forwarded: https://lists.gnu.org/archive/html/screen-devel/2018-07/msg00003.html
+Reviewed-By: Sven Joachim <svenjoac@gmx.de>
+Reviewed-By: Axel Beckert <abe@debian.org>
+Subject: Do not link against libelf.
+
+I'd like to upstream the patch to drop linking dependency to libelf. It is
+probably some leftover from old versions of gnu screen and some
+distributions downstream upply it for years.
+
+http://pkgs.fedoraproject.org/cgit/screen.git/tree/screen-4.0.3-libs.patch
+(Fedora)
+http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-misc/screen/files/4.0.2-no-libelf.patch?revision=1.1&view=markup
+(Gentoo)
+https://galileo.mailstation.de/gerrit/#/c/1275/ (Exherbo)
+
+From: Ivan Diorditsa <ivan.diorditsa@gmail.com>
+Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -202,14 +202,6 @@
+ #endif
+ ], LIBS="$LIBS -lsocket -linet";seqptx=1)
+
+-oldlibs="$LIBS"
+-LIBS="$LIBS -lelf"
+-AC_CHECKING(SVR4)
+-AC_TRY_LINK([#include <utmpx.h>
+-],,
+-[AC_CHECK_HEADER(dwarf.h, AC_DEFINE(SVR4) AC_DEFINE(BUGGYGETLOGIN),
+-[AC_CHECK_HEADER(elf.h, AC_DEFINE(SVR4) AC_DEFINE(BUGGYGETLOGIN))])]
+-,LIBS="$oldlibs")
+ AC_CHECK_HEADERS([stropts.h string.h strings.h])
+
+ AC_CHECKING(for Solaris 2.x)