Debian Codegraph @

debian/patches/disable_rpath

raw
1 From: Brian May <[email protected]>
2 Date: Wed, 26 Apr 2017 06:29:24 +1000
3 Subject: Disable use of rpath in krb5-config.heimdal
4
5 See https://bugs.debian.org/868840
6
7 This also solves another issue:
8
9 Disable use of @CANONICAL_HOST@, which is not reproducible.
10 https://github.com/heimdal/heimdal/issues/237
11 ---
12 tools/krb5-config.in | 39 ---------------------------------------
13 1 file changed, 39 deletions(-)
14
15 diff --git a/tools/krb5-config.in b/tools/krb5-config.in
16 index 743c9eb..bf082bc 100644
17 --- a/tools/krb5-config.in
18 +++ b/tools/krb5-config.in
19 @@ -171,42 +171,6 @@ if test "$print_exec_prefix" = "yes"; then
20 exit 0
21 fi
22
23 -# The following rpath_flag setting code is distilled from MIT Kerberos'
24 -# src/config/shlib.conf. Some of this seems ancient and likely to be
25 -# wrong in some cases, but right for all the cases we probably care
26 -# about. Also, this will very likely be wrong depending on how the
27 -# caller will be doing link-edits (with what compiler-driver or
28 -# link-editor)! There's no fixing this.
29 -#
30 -# In principle this doesn't belong here: application should instead use
31 -# krb5-config --libdir to get the directory to use for the rpath, then
32 -# workout the rpath flags on their own. Of course, there's no --libdir
33 -# option... And MIT's krb5-config does include rpath flags.
34 -#
35 -# Compatibility with MIT is the winning consideration for now.
36 -EOM
37 -
38 -case "@CANONICAL_HOST@" in
39 -alpha*-dec-osf*)
40 - rpath_flag='-Wl,-rpath -Wl,';;
41 -*-*-hpux*)
42 - rpath_flag='-Wl,+b,';;
43 -*-*-irix* | mips-*-netbsd*)
44 - rpath_flag='-Wl,-rpath -Wl,';;
45 -*-*-netbsd* | *-*-openbsd* | *-*-solaris*)
46 - rpath_flag='-R';;
47 -*-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-freebsd*)
48 - rpath_flag='-Wl,--enable-new-dtags -Wl,-rpath -Wl,';;
49 -*-*-aix*)
50 - rpath_flag='-Wl,-blibpath:';;
51 -*)
52 -rpath_flag=;;
53 -esac
54 -
55 -echo "rpath_flag='$rpath_flag'"
56 -
57 -cat <<'EOM'
58 -
59 if test "$do_libs" = "yes"; then
60 deplibs=""
61 if test "$lib_gssapi" = yes; then
62 @@ -247,9 +211,6 @@ if test "$do_libs" = "yes"; then
63 fi
64 if test X"$libdir" != X/usr/lib; then
65 lib_flags="-L${libdir} $lib_flags"
66 - if test X"$rpath_flag" != X; then
67 - lib_flags="${rpath_flag}${libdir} $lib_flags"
68 - fi
69 fi
70
71 echo ${lib_flags}