File: 1001_avoid_setting_RPATH.patch

package info (click to toggle)
uwsgi 2.0.28-9
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,968 kB
  • sloc: ansic: 86,892; python: 6,620; cpp: 1,131; java: 708; perl: 646; sh: 588; ruby: 555; makefile: 148; xml: 130; cs: 121; objc: 37; php: 28; erlang: 20; javascript: 11
file content (33 lines) | stat: -rw-r--r-- 1,278 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Description: Remove value assignments to environment variable LD_RUN_PATH
 Value assignment to environment variable LD_RUN_PATH leads to setting RPATH in
 compiled binary/shared library.
 .
 And then Lintian reports about error (E: binary-or-shlib-defines-rpath).
Author: Leonid Borisenko <leo.borisenko@gmail.com>
Author: Janos Guljas <janos@debian.org>
Forwarded: not-needed
Last-Update: 2016-02-08
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/plugins/rack/uwsgiplugin.py
+++ b/plugins/rack/uwsgiplugin.py
@@ -48,7 +48,6 @@
 
 if has_shared == 'yes':
     LDFLAGS.append('-L' + libpath )
-    os.environ['LD_RUN_PATH'] = libpath
     LIBS.append(os.popen(RUBYPATH + " -e \"require 'rbconfig';print '-l' + %s::CONFIG['RUBY_SO_NAME']\"" % rbconfig).read().rstrip())
 else:
     rubylibdir = os.popen(RUBYPATH + " -e \"require 'rbconfig';print RbConfig::CONFIG['rubylibdir']\"").read().rstrip()
--- a/plugins/python/uwsgiplugin.py
+++ b/plugins/python/uwsgiplugin.py
@@ -93,9 +93,6 @@
             libdir = "%s/lib" % sysconfig.PREFIX
 
         LDFLAGS.append("-L%s" % libdir)
-        LDFLAGS.append("-Wl,-rpath,%s" % libdir)
-
-        os.environ['LD_RUN_PATH'] = "%s" % libdir
 
         LIBS.append('-lpython%s' % get_python_version())
 else: