summaryrefslogtreecommitdiff
path: root/dev-python/pyalsa/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-04-05 21:52:00 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-04-05 21:52:00 +0100
commit2d446203bcf1a0db08e99abca43513d246dfa73d (patch)
treeec623bb5f1f389976977e375342ec59ff441eab7 /dev-python/pyalsa/files
parent171a011ad3a131671aeb5a98b9e3adf219ad2865 (diff)
gentoo resync : 05.04.2018
Diffstat (limited to 'dev-python/pyalsa/files')
-rw-r--r--dev-python/pyalsa/files/pyalsa-1.1.6-no-build-symlinks.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-python/pyalsa/files/pyalsa-1.1.6-no-build-symlinks.patch b/dev-python/pyalsa/files/pyalsa-1.1.6-no-build-symlinks.patch
new file mode 100644
index 000000000000..7f8cf6815d03
--- /dev/null
+++ b/dev-python/pyalsa/files/pyalsa-1.1.6-no-build-symlinks.patch
@@ -0,0 +1,27 @@
+--- pyalsa-1.1.6/setup.py
++++ pyalsa-1.1.6/setup.py
+@@ -70,24 +70,3 @@
+ 'alsamixer',
+ 'alsaseq'
+ ]
+-
+-uname = os.uname()
+-dir = 'build/lib.%s-%s-%s/pyalsa' % (uname[0].lower(), uname[4], sys.version[:3])
+-files = os.path.exists(dir) and os.listdir(dir) or []
+-for f in SOFILES:
+- path = ''
+- for f2 in files:
+- if f2.startswith(f + '.') and f2.endswith('.so'):
+- path = dir + '/' + f2
+- break
+- if not path or not os.path.exists(path):
+- continue
+- p = 'pyalsa/%s.so' % f
+- print("%s -> %s" % (p, path))
+- try:
+- st = os.lstat(p)
+- if stat.S_ISLNK(st.st_mode):
+- os.remove(p)
+- except:
+- pass
+- os.symlink('../' + path, 'pyalsa/%s.so' % f)