Cider Isn't Darwin Emulation, Really
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435#!/usr/bin/env pythonimport fileinputimport subprocessimport sys, osdevnull = open(os.devnull, 'wb') for line in fileinput.input(): line = line.rstrip() orig_line = line fixed = False while True: proc = subprocess.Popen("readelf -Ws /home/lubos/Projects/darling-root/lib32/darling/libstdcxx.so | grep " + line + "@@", shell=True, stdout=devnull, stderr=devnull) proc.wait() if proc.returncode != 0: pos = line.rfind('m') if pos == -1: break ll = list(line) ll[pos] = 'j' line = "".join(ll) else: fixed = True break if fixed: print orig_line + ' = ' + line + ';' else: sys.stderr.write('Cannot fix ' + orig_line + '\n')