view gub/specs/bash.py @ 5468:4feea6c0810b

Bash: force_sequential_build: Fixes build mbutil.o race problem.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Tue, 18 Aug 2009 21:11:30 +0200
parents c3f6247ab707
children 3cc4f9ac707f
line wrap: on
line source

from gub import context
from gub import target
from gub import tools

class Bash (target.AutoBuild):
    source = 'ftp://ftp.cwru.edu/pub/bash/bash-3.2.tar.gz'
    def _get_build_dependencies (self):
        return ['libtool', 'gettext-devel']

class Bash__mingw (Bash):
    source = 'http://ufpr.dl.sourceforge.net/sourceforge/mingw/bash-2.05b-MSYS-src.tar.bz2&strip=2'
    def patch (self):
        self.file_sub ([(r'test \$ac_cv_sys_tiocgwinsz_in_termios_h != yes',
                         r'test "$ac_cv_sys_tiocgwinsz_in_termios_h" != yes'),
                        ], '%(srcdir)s/configure')
    def config_cache_overrides (self, str):
        str += 'bash_cv_have_mbstate_t=yes\n'
        return str
 
class Bash__tools (tools.AutoBuild, Bash):
    def force_sequential_build (self):
        return True
    @context.subst_method
    def LDFLAGS (self):
        return '%(rpath)'
    def wrap_executables (self):
        # using rpath
        pass