pythonize.
.la dosyası içeren çeşitli paketleri derledim ama bunu deneyecek paket bulamadım. Bilen varsa bir denesin. Elle hatalı .la dosyası verince düzeltiyor en azından.
This commit is contained in:
+6
-5
@@ -518,11 +518,12 @@ def strip_directory(top, excludelist=[]):
|
|||||||
# entries sometimes triggers compile-time errors or linkage problems.
|
# entries sometimes triggers compile-time errors or linkage problems.
|
||||||
# Instead of patching all these buggy sources and maintain these patches,
|
# Instead of patching all these buggy sources and maintain these patches,
|
||||||
# PiSi removes wrong paths...
|
# PiSi removes wrong paths...
|
||||||
extension = os.path.splitext(frpath)[1]
|
if frpath.endswith(".la"):
|
||||||
if extension == ".la":
|
ladata = file(frpath).read()
|
||||||
# FIXME: I'm regular expr. idiot, so one can convert this to python...
|
new_ladata = re.sub("-L%s/\S*" % ctx.config.tmp_dir(), "", ladata)
|
||||||
os.system("sed -i -e 's~-L%s/[[:graph:]]*~~g' %s" % (ctx.config.tmp_dir(), frpath))
|
new_ladata = re.sub("%s/\S*/install/" % ctx.config.tmp_dir(), "/", new_ladata)
|
||||||
os.system("sed -i -e 's~%s/[[:graph:]]*/install/~/~g' %s" % (ctx.config.tmp_dir(), frpath))
|
if new_ladata != ladata:
|
||||||
|
file(frpath, "w").write(new_ladata)
|
||||||
# real path in .pisi package
|
# real path in .pisi package
|
||||||
p = '/' + removepathprefix(top, frpath)
|
p = '/' + removepathprefix(top, frpath)
|
||||||
strip = True
|
strip = True
|
||||||
|
|||||||
Reference in New Issue
Block a user