Mercurial > gub
changeset 5525:a12219e37429
gzip: add and enable no_patch option for bootstrap package.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Fri, 21 Aug 2009 09:19:48 +0200 |
parents | c31c4fab62f5 |
children | 061f606b7c0e |
files | gub/specs/gzip.py |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/specs/gzip.py Fri Aug 21 00:37:08 2009 +0100 +++ b/gub/specs/gzip.py Fri Aug 21 09:19:48 2009 +0200 @@ -2,6 +2,13 @@ import os if 'BOOTSTRAP' in os.environ.keys (): from gub import target as tools +no_patch = True class Gzip__tools (tools.AutoBuild): source = 'http://ftp.gnu.org/pub/gnu/gzip/gzip-1.3.12.tar.gz' patches = ['gzip-1.3.12-glibc-compat.patch'] + def patch (self): + if no_patch: + for i in ('gzip.c', 'utimens.c', 'utimens.h'): + self.file_sub ([('(futimens)', r'gz_\1')], '%(srcdir)s/' + i) + else: + tools.AutoBuild.patch (self)