summarylogtreecommitdiffstats
path: root/find-deps.py
diff options
context:
space:
mode:
authorPhilip Sequeira2015-08-20 16:50:18 -0400
committerPhilip Sequeira2015-08-20 16:50:18 -0400
commit57295dcdc4aa7fb73f421a62eb8d774cf96e294a (patch)
treee9609a8af1bd3ae60af8c8441a276ffb50bfcc54 /find-deps.py
parentaaea11ae0976f2b8e16c2ffbd27c9b874b062059 (diff)
downloadaur-57295dcdc4aa7fb73f421a62eb8d774cf96e294a.tar.gz
message on first install about installing optional features
Also, use a better (?) way to avoid the false fakeroot dependency, and print detected dependencies when packaging.
Diffstat (limited to 'find-deps.py')
-rwxr-xr-xfind-deps.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/find-deps.py b/find-deps.py
index 809bdf9d35f8..d6761f0a40fd 100755
--- a/find-deps.py
+++ b/find-deps.py
@@ -9,6 +9,7 @@ on dynamically linked libraries.
"""
import sys
+import os
import subprocess
import re
@@ -23,6 +24,7 @@ def subprocess_get_lines(args, fail_okay=False):
return output.decode().splitlines()
# Get the filenames of the libs we need
+del os.environ['LD_LIBRARY_PATH'], os.environ['LD_PRELOAD'] # otherwise fakeroot will interfere
ldd_output = subprocess_get_lines(['ldd'] + sys.argv[1:])
regex = re.compile(r' => (.*) \(0x[0-9a-f]+\)$')
libs = set(match.group(1) for match in map(regex.search, ldd_output) if match)
@@ -33,9 +35,6 @@ deps = set(subprocess_get_lines(
fail_okay=True
))
-# fakeroot will be linked when building with makepkg, but isn't really needed
-deps.discard('fakeroot')
-
# Remove redundant dependencies
needed = set(deps)
for pkg in deps: