Mercurial > gub
view gub/specs/debian/libc6.py @ 3494:3efef1a76441
more with_template() use.
author | Han-Wen Nienhuys <hanwen@lilypond.org> |
---|---|
date | Fri, 18 May 2007 10:33:26 -0300 |
parents | 82e1a185d8a2 |
children | 5e11e08c3959 |
line wrap: on
line source
from gub import gubb from gub import debian from gub import mirrors class Libc6 (gubb.BinarySpec, gubb.SdkBuildSpec): def __init__ (self, settings): gubb.BinarySpec.__init__ (self, settings) self.with_template (version=debian.get_packages ()['libc6'].version (), strip_components=0, mirror=mirrors.glibc_deb, # FIXME: we do not mirror all 12 debian arch's, # mirror=mirrors.lilypondorg_deb, format='deb') def patch (self): self.system ('cd %(srcdir)s && rm -rf usr/sbin/ sbin/ bin/ usr/bin') def untar (self): gubb.BinarySpec.untar (self) # Ugh, rewire absolute names and symlinks. i = self.expand ('%(srcdir)s/lib64') import os if os.path.islink (i): s = os.readlink (i) if s.startswith ('/'): os.remove (i) os.symlink (s[1:], i)