Exemple #1
0
from gub import misc
glibc = misc.load_spec('glibc-core')


class Glibc_core(glibc.Glibc_core):
    def patch(self):
        glibc.Glibc_core.patch(self)
        self.system('''
cd %(srcdir)s && patch -p1 < %(patchdir)s/glibc-2.3-wordexp-inline.patch
cd %(srcdir)s && patch -p1 < %(patchdir)s/glibc-2.3-linux-2.4.23-arm-bus-isa.patch
''')

    configure_flags = (glibc.Glibc_core.configure_flags + ' --without-fp')
Exemple #2
0
from gub import misc
gcc = misc.load_spec('cross/gcc-core')


class Gcc_core(gcc.Gcc_core):
    def patch(self):
        gcc.Gcc_core.patch(self)
        self.system('''
''')

    configure_flags = (gcc.Gcc_core.configure_flags + misc.join_lines('''
--with-float=soft
#--with-fpu=vfp
'''))
Exemple #3
0
cd %(srcdir)s && mv include .include
cd %(srcdir)s && rm -rf *
cd %(srcdir)s && mkdir -p ./%(prefix_dir)s
cd %(srcdir)s && mv .include ./%(prefix_dir)s/include
''')
        # Duplicated in libc, remove here.
        self.system ('''
cd %(srcdir)s && rm -f\
 ./%(prefix_dir)s/include/scsi/sg.h\
 ./%(prefix_dir)s/include/scsi/scsi.h\
 ./%(prefix_dir)s/include/scsi/scsi_ioctl.h\
 ./%(prefix_dir)s/include/net/route.h
''')

from gub import misc
linux_kernel_headers = misc.load_spec ('debian/linux-kernel-headers')

class Linux_headers__debian (linux_kernel_headers.Linux_kernel_headers):
#        debian.init_dependency_resolver (settings)
# FIXME: we do not mirror all 12 debian arch's,
    source = 'http://ftp.debian.org/debian/pool/main/l/linux-kernel-headers/linux-kernel-headers_2.5.999-test7-bk-17_%(package_arch)s.deb&strip=0' 

Linux_headers__linux__ppc = Linux_headers__debian
#Linux_headers__linux__64 = Linux_headers__debian
Linux_headers__linux__arm = Linux_headers__debian
Linux_headers__linux__arm__softfloat = Linux_headers__debian
Linux_headers__linux__arm__vfp = Linux_headers__debian
Linux_headers__linux__mipsel = Linux_headers__debian

class Linux_headers__linux__64 (Linux_headers):
    @context.subst_method
Exemple #4
0
from gub import misc
from gub import tools

python = misc.load_spec('python-' + tools.python_version)


def get_conflict_dict(self):
    return {
        '': ['python-2.6', 'python-2.4'],
        'doc': ['python-2.6-doc', 'python-2.4-doc'],
        'devel': ['python-2.6-devel', 'python-2.4-devel'],
        'runtime': ['python-2.6-runtime', 'python-2.4-runtime'],
    }


def unver(dependencies):
    return [
        x.replace('python-' + tools.python_version, 'python')
        for x in dependencies
    ]


if tools.python_version == '2.4':

    class Python(python.Python_2_4):
        get_conflict_dict = get_conflict_dict
        dependencies = unver(python.Python_2_4.dependencies)

    class Python__mingw(python.Python_2_4__mingw):
        get_conflict_dict = get_conflict_dict
        dependencies = unver(python.Python_2_4__mingw.dependencies)
Exemple #5
0
from gub import misc

gcc = misc.load_spec("cross/gcc-core")


class Gcc_core(gcc.Gcc_core):
    def patch(self):
        gcc.Gcc_core.patch(self)
        self.system(
            """
"""
        )

    configure_flags = gcc.Gcc_core.configure_flags + misc.join_lines(
        """
--with-float=soft
#--with-fpu=vfp
"""
    )
Exemple #6
0
from gub import misc
glibc = misc.load_spec ('glibc-core')

class Glibc_core (glibc.Glibc_core):
    def patch (self):
        glibc.Glibc_core.patch (self)
        self.system ('''
cd %(srcdir)s && patch -p1 < %(patchdir)s/glibc-2.3-wordexp-inline.patch
cd %(srcdir)s && patch -p1 < %(patchdir)s/glibc-2.3-linux-2.4.23-arm-bus-isa.patch
''')
    configure_flags = (glibc.Glibc_core.configure_flags
                       + ' --without-fp')
Exemple #7
0
from gub import misc
python_config = misc.load_spec('python-config')


class Python_config(python_config.Python_config):
    source = 'url://host/python-config-2.5.tar.gz'


class Python_config__cygwin(python_config.Python_config):
    source = 'url://host/python-config-2.6.tar.gz'
Exemple #8
0
from gub import misc
from gub import tools

python = misc.load_spec ('python-' + tools.python_version)

def get_conflict_dict (self):
    return {
        '': ['python-2.6', 'python-2.4'],
        'doc': ['python-2.6-doc', 'python-2.4-doc'],
        'devel': ['python-2.6-devel', 'python-2.4-devel'],
        'runtime': ['python-2.6-runtime', 'python-2.4-runtime'],
        }

def unver (dependencies):
    return [x.replace ('python-' + tools.python_version, 'python')
            for x in dependencies]

if tools.python_version == '2.4':
    class Python (python.Python_2_4):
        get_conflict_dict = get_conflict_dict
        dependencies = unver (python.Python_2_4.dependencies)
    class Python__mingw (python.Python_2_4__mingw):
        get_conflict_dict = get_conflict_dict
        dependencies = unver (python.Python_2_4__mingw.dependencies)
    class Python__linux__ppc (python.Python_2_4__linux__ppc):
        get_conflict_dict = get_conflict_dict
        dependencies = unver (python.Python_2_4__linux__ppc.dependencies)
    class Python__freebsd (python.Python_2_4__freebsd):
        get_conflict_dict = get_conflict_dict
        dependencies = unver (python.Python_2_4__freebsd.dependencies)
    class Python__tools (python.Python_2_4__tools):
Exemple #9
0
from gub import misc
freetype_config = misc.load_spec ('freetype-config')

class Freetype_config (freetype_config.Freetype_config):
    source = 'url://host/freetype-config-2.3.4.tar.gz'
Exemple #10
0
from gub import misc
from gub import target
from gub import tools
python = misc.load_spec ('python-2.4')

def get_conflict_dict (self):
    return {
        '': ['python-2.4', 'python'],
        'doc': ['python-2.4-doc', 'python-doc'],
        'devel': ['python-2.4-devel', 'python-devel'],
        'runtime': ['python-2.4-runtime', 'python-runtime'],
        }

class Python_2_6 (python.Python_2_4):
    source = 'http://www.python.org/ftp/python/2.6.4/Python-2.6.4.tar.bz2'
    dependencies = [
        'db-devel',
        'expat-devel',
        'libffi-devel',
        'zlib-devel',
        'tools::python-2.6',
        ]
    patches = [
        'python-2.6.4.patch',
	'python-2.6.4-hashlib.patch',
        'python-configure.in-posix.patch&strip=0',
        'python-2.6.4-configure.in-sysname.patch',
        'python-2.4.2-configure.in-sysrelease.patch',
        'python-2.4.2-setup.py-import.patch&strip=0',
        'python-2.6.4-setup.py-cross_root.patch',
#        'python-2.4.2-fno-stack-protector.patch',
Exemple #11
0
cd %(srcdir)s && mkdir -p ./%(prefix_dir)s
cd %(srcdir)s && mv .include ./%(prefix_dir)s/include
''')
        # Duplicated in libc, remove here.
        self.system('''
cd %(srcdir)s && rm -f\
 ./%(prefix_dir)s/include/scsi/sg.h\
 ./%(prefix_dir)s/include/scsi/scsi.h\
 ./%(prefix_dir)s/include/scsi/scsi_ioctl.h\
 ./%(prefix_dir)s/include/net/route.h
''')


from gub import misc

linux_kernel_headers = misc.load_spec('debian/linux-kernel-headers')


class Linux_headers__debian(linux_kernel_headers.Linux_kernel_headers):
    #        debian.init_dependency_resolver (settings)
    # FIXME: we do not mirror all 12 debian arch's,
    source = 'http://ftp.debian.org/debian/pool/main/l/linux-kernel-headers/linux-kernel-headers_2.5.999-test7-bk-17_%(package_arch)s.deb&strip=0'


Linux_headers__linux__ppc = Linux_headers__debian
#Linux_headers__linux__64 = Linux_headers__debian
Linux_headers__linux__arm = Linux_headers__debian
Linux_headers__linux__arm__softfloat = Linux_headers__debian
Linux_headers__linux__arm__vfp = Linux_headers__debian
Linux_headers__linux__mipsel = Linux_headers__debian
Exemple #12
0
from gub import misc
python_config = misc.load_spec ('python-config')

class Python_config (python_config.Python_config):
    source = 'url://host/python-config-2.5.tar.gz'
Exemple #13
0
from gub import misc
from gub import target
from gub import tools
python = misc.load_spec('python-2.4')


def get_conflict_dict(self):
    return {
        '': ['python-2.4', 'python'],
        'doc': ['python-2.4-doc', 'python-doc'],
        'devel': ['python-2.4-devel', 'python-devel'],
        'runtime': ['python-2.4-runtime', 'python-runtime'],
    }


class Python_2_6(python.Python_2_4):
    source = 'http://www.python.org/ftp/python/2.6.4/Python-2.6.4.tar.bz2'
    dependencies = [
        'db-devel',
        'expat-devel',
        'libffi-devel',
        'zlib-devel',
        'tools::python-2.6',
    ]
    patches = [
        'python-2.6.4.patch',
        'python-configure.in-posix.patch&strip=0',
        'python-2.6.4-configure.in-sysname.patch',
        'python-2.4.2-configure.in-sysrelease.patch',
        'python-2.4.2-setup.py-import.patch&strip=0',
        'python-2.6.4-setup.py-cross_root.patch',
Exemple #14
0
from gub import misc
gcc = misc.load_spec ('cross/gcc-core')

class Gcc_core (gcc.Gcc_core):
    source = 'http://ftp.gnu.org/pub/gnu/gcc/gcc-3.4.6/gcc-3.4.6.tar.bz2'
    def patch (self):
        gcc.Gcc_core.patch (self)
        self.system ('''
cd %(srcdir)s && patch -p1 < %(patchdir)s/gcc-3.4.0-arm-lib1asm.patch
cd %(srcdir)s && patch -p1 < %(patchdir)s/gcc-3.4.0-arm-nolibfloat.patch
''')
    configure_flags = (gcc.Gcc_core.configure_flags
                + misc.join_lines ('''
--with-float=soft
#--with-fpu=vfp
'''))