Permalink
Switch branches/tags
release/0.0.3 gub-release-lilypond-2.15.16-1 gub-release-lilypond-2.15.15-1 gub-release-lilypond-2.15.14-1 gub-release-lilypond-2.15.13-1 gub-release-lilypond-2.15.12-1 gub-release-lilypond-2.15.11-1 gub-release-lilypond-2.15.10-1 gub-release-lilypond-2.15.9-1 gub-release-lilypond-2.15.8-1 gub-release-lilypond-2.15.7-1 gub-release-lilypond-2.15.6-1 gub-release-lilypond-2.15.5-1 gub-release-lilypond-2.15.4-1 gub-release-lilypond-2.15.3-1 gub-release-lilypond-2.15.2-1 gub-release-lilypond-2.15.1-1 gub-release-lilypond-2.15.0-1 gub-release-lilypond-2.14.2-1 gub-release-lilypond-2.14.1-1 gub-release-lilypond-2.14.0-1 gub-release-lilypond-2.13.63-1 gub-release-lilypond-2.13.62-1 gub-release-lilypond-2.13.61-1 gub-release-lilypond-2.13.60-1 gub-release-lilypond-2.13.59-1 gub-release-lilypond-2.13.58-1 gub-release-lilypond-2.13.57-1 gub-release-lilypond-2.13.56-1 gub-release-lilypond-2.13.55-1 gub-release-lilypond-2.13.54-1 gub-release-lilypond-2.13.53-1 gub-release-lilypond-2.13.52-1 gub-release-lilypond-2.13.51-1 gub-release-lilypond-2.13.50-1 gub-release-lilypond-2.13.49-1 gub-release-lilypond-2.13.48-1 gub-release-lilypond-2.13.47-1 gub-release-lilypond-2.13.46-1 gub-release-lilypond-2.13.45-1 gub-release-lilypond-2.13.44-1 gub-release-lilypond-2.13.43-1 gub-release-lilypond-2.13.42-1 gub-release-lilypond-2.13.41-1 gub-release-lilypond-2.13.40-1 gub-release-lilypond-2.13.39-1 gub-release-lilypond-2.13.38-1 gub-release-lilypond-2.13.37-1 gub-release-lilypond-2.13.36-1 gub-release-lilypond-2.13.35-1 gub-release-lilypond-2.13.34-1 gub-release-lilypond-2.13.33-1 gub-release-lilypond-2.13.32-1 gub-release-lilypond-2.13.31-1 gub-release-lilypond-2.13.30-1 gub-release-lilypond-2.13.29-1 gub-release-lilypond-2.13.28-1 gub-release-lilypond-2.13.27-2 gub-release-lilypond-2.13.27-1 gub-release-lilypond-2.13.26-1 gub-release-lilypond-2.13.25-1 gub-release-lilypond-2.13.24-1 gub-release-lilypond-2.13.23-1 gub-release-lilypond-2.13.22-1 gub-release-lilypond-2.13.21-1 gub-release-lilypond-2.13.20-1 gub-release-lilypond-2.13.19-1 gub-release-lilypond-2.13.18-1 gub-release-lilypond-2.13.17-1 gub-release-lilypond-2.13.16-1 gub-release-lilypond-2.13.15-1 gub-release-lilypond-2.13.14-1 gub-release-lilypond-2.13.13-1 gub-release-lilypond-2.13.12-1 gub-release-lilypond-2.13.11-1 gub-release-lilypond-2.13.10-1 gub-release-lilypond-2.13.9-1 gub-release-lilypond-2.13.8-1 gub-release-lilypond-2.13.7-1 gub-release-lilypond-2.13.7-0 gub-release-lilypond-2.13.6-1 gub-release-lilypond-2.13.5-0 gub-release-lilypond-2.13.4-1 gub-release-lilypond-2.12.3-2 gub-release-lilypond-2.12.3-1 build/lilypond-gub/2.12.2-1 build/lilypond-gub/2.12.1-1 build/lilypond-gub/2.12.0-1 build/lilypond-gub/2.11.64-1
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
63 lines (56 sloc) 2.69 KB
from gub import build
from gub import context
class Linux_headers (build.BinaryBuild, build.SdkBuild):
source = 'http://www.mirrorservice.org/sites/ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.34.tar.bz2&name=linux-headers'
# HMm, is this more handy than patch ():pass in BinaryBuild?
# possibly we should simply override install (), but that is
# always a problem because install ()
def stages (self):
return misc.list_insert_before (build.BinaryBuild.stages (self),
'install', 'patch')
@context.subst_method
def linux_arch (self):
return '%(package_arch)s'
subpackage_names = ['']
def patch (self):
self.file_sub ([('[.] [.]config-is-not', '. ./.config-is-not'),],
'%(srcdir)s/scripts/Configure')
self.system ('''
#let's not use patch, and certainly not circumventing patch mechanism
#cd %(srcdir)s && patch -p1 < %(patchdir)s/linux-headers-2.4.34-posix-fix.patch
cd %(srcdir)s && yes yes | make ARCH=%(linux_arch)s oldconfig symlinks include/linux/version.h
cd %(srcdir)s && rm -f include/asm
cd %(srcdir)s && mv include/asm-%(linux_arch)s include/asm
cd %(srcdir)s && rm -rfv include/asm-*
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
def linux_arch (self):
return 'x86_64'
class xLinux_headers__linux__64 (Linux_headers__debian):
# 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.6.18-7_%(package_arch)s.deb&strip=0'