[Gelistirici] [PATCH] RPATH stripping
S.Çağlar Onur
caglar at pardus.org.tr
5 Eki 2007 Cum 16:40:28 EEST
05 Eki 2007 Cum tarihinde, S.Çağlar Onur şunları yazmıştı:
...
> Bu kadar paketi yamalamak v.s yapmak yerine strip işinden çok da farklı
> olmayan bu iş için chrpath isimli uygulamayı depoya alıp, PiSi bağımlılığı
> yapıp aşağıdaki yamayı öneriyorum. Fikir/öneri/itiraz?
Doğru yama bu :/
Index: util.py
===================================================================
--- util.py (revision 15652)
+++ util.py (working copy)
@@ -520,6 +520,12 @@
if ret:
ctx.ui.warning(_("strip command failed for file '%s'!") % f)
+ def run_chrpath(f):
+ p = os.popen("chrpath -d %s" % f)
+ ret = p.close()
+ if ret:
+ ctx.ui.warning(_("chrpath command failed for file '%s'!") % f)
+
def save_elf_debug(f, o):
"""copy debug info into file.debug file"""
p = os.popen("objcopy --only-keep-debug %s %s%s" % (f, o,
ctx.const.debug_file_suffix))
@@ -542,6 +548,7 @@
check_dir(os.path.dirname(outpath))
save_elf_debug(filepath, outpath)
run_strip(filepath)
+ run_chrpath(filepath)
return True
elif "SB shared object" in o:
@@ -549,6 +556,7 @@
check_dir(os.path.dirname(outpath))
save_elf_debug(filepath, outpath)
run_strip(filepath, "--strip-unneeded")
+ run_chrpath(filepath)
# FIXME: warn for TEXTREL
return True
Saygılar
--
S.Çağlar Onur <caglar at pardus.org.tr>
http://cekirdek.pardus.org.tr/~caglar/
Linux is like living in a teepee. No Windows, no Gates and an Apache in house!
-------------- sonraki bölüm --------------
A non-text attachment was scrubbed...
Name: kullanılamıyor
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://liste.pardus.org.tr/gelistirici/attachments/20071005/f113c63c/attachment-0002.pgp>
Gelistirici mesaj listesiyle ilgili
daha fazla bilgi