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
86 lines (78 sloc) 4.33 KB
from gub import gnome
from gub import misc
from gub import tools
from gub import target
from gub import w32
class Glib (target.AutoBuild):
source = 'http://ftp.gnome.org/pub/GNOME/platform/2.27/2.27.91/sources/glib-2.21.5.tar.gz'
##source = 'http://ftp.gnome.org/pub/GNOME/platform/2.25/2.25.5/sources/glib-2.19.5.tar.gz'
dependencies = ['tools::glib', 'tools::libtool', 'gettext-devel']
config_cache_overrides = target.AutoBuild.config_cache_overrides + '''
glib_cv_stack_grows=${glib_cv_stack_grows=no}
'''
if 'stat' in misc.librestrict (): # stats for /USR/include/glib/...
install_flags = (target.AutoBuild.install_flags
+ ' LD_PRELOAD=%(tools_prefix)s/lib/librestrict-open.so')
def patch (self):
target.AutoBuild.patch (self)
self.file_sub ([('GIO_MODULE_DIR', 'getenv ("GIO_MODULE_DIR")')],
'%(srcdir)s/gio/giomodule.c', must_succeed=True)
def update_libtool (self): # linux-x86, linux-ppc, freebsd-x86
target.AutoBuild.update_libtool (self)
self.map_locate (w32.libtool_disable_relink, '%(builddir)s', 'libtool')
#URGME, 2.19.5: relinking libgio is broken, /usr/lib is inserted
'''root/usr/lib/usr/lib -L/usr/lib -lgobject-2.0 -L/home/janneke/vc/gub/target/linux-ppc/install/glib-2.19.5-root/usr/lib/home/janneke/vc/gub/target/linux-ppc/build/glib-2.19.5/gmodule/.libs -lgmodule-2.0 -ldl -lglib-2.0 -Wl,-soname -Wl,libgio-2.0.so.0 -Wl,-version-script -Wl,.libs/libgio-2.0.ver -o .libs/libgio-2.0.so.0.1905.0
/home/janneke/vc/gub/target/linux-ppc/root/usr/cross/bin/powerpc-linux-ld: skipping incompatible /usr/lib/libgobject-2.0.so when searching for -lgobject-2.0
/home/janneke/vc/gub/target/linux-ppc/root/usr/cross/bin/powerpc-linux-ld: skipping incompatible /usr/lib/libgobject-2.0.a when searching for -lgobject-2.0
/home/janneke/vc/gub/target/linux-ppc/root/usr/cross/bin/powerpc-linux-ld: cannot find -lgobject-2.0
collect2: ld returned 1 exit status
libtool: install: error: relink `libgio-2.0.la' with the above command before installing it
make[5]: *** [install-libLTLIBRARIES] Error 1
'''
def install (self):
target.AutoBuild.install (self)
self.system ('rm -f %(install_prefix)s/lib/charset.alias')
class Glib__darwin (Glib):
def configure (self):
Glib.configure (self)
self.file_sub ([('nmedit', '%(target_architecture)s-nmedit')],
'%(builddir)s/libtool')
class Glib__darwin__x86 (Glib__darwin):
# LIBS bugfix from:
# https://bugzilla.gnome.org/show_bug.cgi?id=586150
configure_variables = Glib.configure_variables + ' LIBS=-lresolv'
def compile (self):
self.file_sub ([('(SUBDIRS = .*) tests', r'\1'),
(r'GTESTER = \$.*', ''),
('(am__EXEEXT(_[0-9])? = )gtester.*', r'\1'),
('(am__append(_[0-9])? = )gtester', r'\1')],
'%(builddir)s/glib/Makefile', must_succeed=True)
Glib__darwin.compile (self)
class Glib__mingw (Glib):
dependencies = Glib.dependencies + ['libiconv-devel']
def update_libtool (self): # linux-x86, linux-ppc, freebsd-x86
target.AutoBuild.update_libtool (self)
self.map_locate (w32.libtool_disable_relink, '%(builddir)s', 'libtool')
class Glib__freebsd (Glib):
dependencies = Glib.dependencies + ['libiconv-devel']
configure_variables = Glib.configure_variables + ' CFLAGS=-pthread'
class Glib__freebsd__x86 (Glib__freebsd):
# Must include -pthread in lib flags, because our most beloved
# libtool (2.2.6a) thinks it knows best and blondly strips -pthread
# if it thinks it's a compile flag.
# FIXME: should add fixup to update_libtool ()
make_flags = ' G_THREAD_LIBS=-pthread G_THREAD_LIBS_FOR_GTHREAD=-pthread '
class Glib__tools (tools.AutoBuild, Glib):
dependencies = [
'gettext',
'libtool',
'pkg-config',
]
configure_flags = (tools.AutoBuild.configure_flags
+ ' --build=%(build_architecture)s'
+ ' --host=%(build_architecture)s'
+ ' --target=%(build_architecture)s'
)
def install (self):
tools.AutoBuild.install (self)
self.system ('rm -f %(install_root)s%(packaging_suffix_dir)s%(prefix_dir)s/lib/charset.alias')