aboutsummaryrefslogtreecommitdiffstats
path: root/main/samba/ld_library_path.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-31 19:00:30 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-11-01 08:42:43 +0000
commit10d822b36efb98cdf117e71ee302c53573c9015b (patch)
tree23c40b4221362ce6afb07a29c42680344f7ed724 /main/samba/ld_library_path.patch
parent2dcd1f62c3a2f73c982a2e0952ea0099a088b82d (diff)
downloadaports-10d822b36efb98cdf117e71ee302c53573c9015b.tar.bz2
aports-10d822b36efb98cdf117e71ee302c53573c9015b.tar.xz
main/samba: upgrade to 4.1
Diffstat (limited to 'main/samba/ld_library_path.patch')
-rw-r--r--main/samba/ld_library_path.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/samba/ld_library_path.patch b/main/samba/ld_library_path.patch
new file mode 100644
index 0000000000..2f0b8b981f
--- /dev/null
+++ b/main/samba/ld_library_path.patch
@@ -0,0 +1,18 @@
+uclibc dpes not seem to handle a leading ':' in LD_LIBRARY_PATH.
+Eg. LD_LIBRARY_PATH=":/path"
+
+--- ./buildtools/wafsamba/samba_utils.py.orig 2013-08-01 13:16:13.425790642 +0000
++++ ./buildtools/wafsamba/samba_utils.py 2013-08-01 13:17:52.063543307 +0000
+@@ -54,10 +54,9 @@
+ def ADD_LD_LIBRARY_PATH(path):
+ '''add something to LD_LIBRARY_PATH'''
+ if 'LD_LIBRARY_PATH' in os.environ:
+- oldpath = os.environ['LD_LIBRARY_PATH']
++ newpath = os.environ['LD_LIBRARY_PATH'].split(':')
+ else:
+- oldpath = ''
+- newpath = oldpath.split(':')
++ newpath = []
+ if not path in newpath:
+ newpath.append(path)
+ os.environ['LD_LIBRARY_PATH'] = ':'.join(newpath)