*.la problemleri size güle güle...

This commit is contained in:
S.Çağlar Onur
2005-10-16 21:26:42 +00:00
parent 72c25c539d
commit 4d9abb5164
+11 -1
View File
@@ -388,7 +388,17 @@ def strip_directory(top, excludelist=[]):
for root, dirs, files in os.walk(top): for root, dirs, files in os.walk(top):
for fn in files: for fn in files:
frpath = join_path(root, fn) frpath = join_path(root, fn)
# Some upstream sources have buggy libtool and ltmain.sh with them,
# which causes wrong path entries in *.la files. And these wrong path
# entries sometimes triggers compile-time errors or linkage problems.
# Instead of patching all these buggy sources and maintain these patches,
# PISI removes wrong paths...
extension = os.path.splitext(frpath)[1]
if extension == ".la":
# FIXME: I'm regular expr. idiot, so one can convert this to python...
os.system("sed -i -e 's~-L/var/tmp/pisi/[[:graph:]]* ~~g' %s" % frpath)
# real path in .pisi package # real path in .pisi package
p = '/' + removepathprefix(top, frpath) p = '/' + removepathprefix(top, frpath)
strip = True strip = True