Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Successful LilyPond build #7

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions arbora.make
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ arbora-installers:
$(foreach p, $(PLATFORMS), $(call INVOKE_INSTALLER_BUILDER,$(p)) $(INSTALL_PACKAGE) &&) true #

nsis:
bin/gub tools::nsis
$(GUB) tools::nsis

update-versions:
python gub/versiondb.py --no-sources --version-db=versiondb/arbora.versions --download --platforms="mingw" --url=http://lilypond.org/blog/janneke/software/arbora
$(PYTHON) gub/versiondb.py --no-sources --version-db=versiondb/arbora.versions --download --platforms="mingw" --url=http://lilypond.org/blog/janneke/software/arbora

print-success:
@echo "success!!"
Expand Down
5 changes: 5 additions & 0 deletions bin/gib
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ Examples:

(options, args) = p.parse_args ()

if not args:
gub_log.error ('error: nothing to do\n')
p.print_help ()
sys.exit (2)

return (options, args)

def check_installer (installer, options, args):
Expand Down
2 changes: 1 addition & 1 deletion bin/gub
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def environment_sanity (settings):
if os.path.exists (environment_file):
environment = dict (pickle.loads (open (environment_file, 'rb').read ()))
# expand any ~ in the PATH
os.environ['PATH'] = ":".join( map( lambda(x):os.path.expanduser(x),
os.environ['PATH'] = ":".join( map( os.path.expanduser,
os.environ['PATH'].split(':')))
differ = []
for key in list (misc.uniq (sorted (environment.keys ()
Expand Down
4 changes: 2 additions & 2 deletions denemo.make
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ denemo-installers:
$(foreach p, $(PLATFORMS), $(call INVOKE_INSTALLER_BUILDER,$(p)) $(INSTALL_PACKAGE) &&) true #

nsis:
bin/gub tools::nsis
$(GUB) tools::nsis

update-versions:
python gub/versiondb.py --no-sources --version-db=versiondb/denemo.versions --download --platforms="mingw" --url=http://lilypond.org/blog/janneke/software/denemo
$(PYTHON) gub/versiondb.py --no-sources --version-db=versiondb/denemo.versions --download --platforms="mingw" --url=http://lilypond.org/blog/janneke/software/denemo

print-success:
@echo "success!!"
Expand Down
2 changes: 1 addition & 1 deletion gub/dependency.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_build_from_file (platform, file_name, name):
and (not cls or issubclass (cls, target.AutoBuild))):
cls = misc.most_significant_in_dict (module.__dict__, class_name.replace ('tools32', 'tools'), '__')
if ((platform == 'tools' or platform == 'tools32')
and (issubclass (cls, target.AutoBuild)
and (not cls or issubclass (cls, target.AutoBuild)
and not issubclass (cls, tools.AutoBuild)
and not issubclass (cls, tools32.AutoBuild))):
cls = None
Expand Down
5 changes: 5 additions & 0 deletions gub/specs/darwin/cross/gcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from gub.specs.cross import gcc as cross_gcc
from gub import loggedos
from gub import cross
from gub import misc

class Gcc__darwin (cross_gcc.Gcc):
source = 'ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-4.1.1/gcc-4.1.1.tar.bz2'
Expand Down Expand Up @@ -57,6 +58,10 @@ class Gcc__darwin__x86 (Gcc__darwin):
dependencies = Gcc__darwin.dependencies + ['tools::mpfr']
configure_command = (''' LDFLAGS='-L%(tools_prefix)s/lib %(rpath)s' '''
+ Gcc__darwin.configure_command)
configure_variables = (Gcc__darwin.configure_variables
+ misc.join_lines ('''
MAKEINFO=no
'''))

class Version_bump_builds_but_needs_a_test_Gcc__darwin__ppc (Gcc__darwin__x86):
pass
Expand Down
4 changes: 4 additions & 0 deletions gub/specs/freebsd/cross/gcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ class Gcc__freebsd (cross_gcc.Gcc):
configure_flags = (cross_gcc.Gcc.configure_flags
+ misc.join_lines ('''
--program-prefix=%(toolchain_prefix)s
'''))
configure_variables = (cross_gcc.Gcc.configure_variables
+ misc.join_lines ('''
MAKEINFO=no
'''))
9 changes: 7 additions & 2 deletions gub/specs/guile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class Guile (target.AutoBuild):
--disable-error-on-warning
--enable-relocation
--enable-rpath
''')
guile_configure_variables = misc.join_lines ('''
have_makeinfo=no
''')
configure_variables = (target.AutoBuild.configure_variables
+ misc.join_lines ('''
Expand All @@ -50,7 +53,8 @@ class Guile (target.AutoBuild):
# without setting the proper LD_LIBRARY_PATH.
configure_command = ('GUILE_FOR_BUILD=%(tools_prefix)s/bin/guile '
+ target.AutoBuild.configure_command
+ guile_configure_flags)
+ guile_configure_flags
+ guile_configure_variables)
compile_command = ('preinstguile=%(tools_prefix)s/bin/guile '
+ target.AutoBuild.compile_command)
subpackage_names = ['doc', 'devel', 'runtime', '']
Expand Down Expand Up @@ -214,7 +218,8 @@ class Guile__tools (tools.AutoBuild, Guile):
''')
configure_command = ('LD_LIBRARY_PATH=%(system_prefix)s/lib:${LD_LIBRARY_PATH-/foe} '
+ tools.AutoBuild.configure_command
+ Guile.guile_configure_flags)
+ Guile.guile_configure_flags
+ Guile.guile_configure_variables)
# FIXME: when configuring, guile runs binaries linked against
# libltdl.
# FIXME: when not x-building, guile runs gen_scmconfig, guile without
Expand Down
2 changes: 1 addition & 1 deletion gub/specs/imagemagick.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from gub import tools

class ImageMagick__tools (tools.AutoBuild):
source = 'http://ftp.surfnet.nl/pub/ImageMagick/ImageMagick-6.5.7-8.tar.gz'
source = 'http://downloads.sourceforge.net/project/imagemagick/old-sources/6.x/6.5/ImageMagick-6.5.7-10.tar.gz'
dependencies = [
'automake',
'bzip2',
Expand Down
1 change: 1 addition & 0 deletions gub/specs/lilypond-doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class LilyPond_doc (lilypond.LilyPond_base):
WEB_TARGETS="offline online"
TARGET_PYTHON=/usr/bin/python
CPU_COUNT=%(cpu_count)s
MISSING_OPTIONAL=dblatex
''')
compile_flags = lilypond.LilyPond_base.compile_flags + ' top-doc doc'
install_flags = (' install-doc install-help2man'
Expand Down
1 change: 1 addition & 0 deletions gub/specs/lilypond-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def test_ball (self):
return '%(uploads)s/lilypond-%(version)s-%(build_number)s.test-output.tar.bz2'
make_flags = misc.join_lines ('''
CPU_COUNT=%(cpu_count)s
MISSING_OPTIONAL=dblatex
''')
compile_flags = lilypond.LilyPond_base.compile_flags + ' test'
#return (lilypond.LilyPond_base.install_command
Expand Down
1 change: 1 addition & 0 deletions gub/specs/texinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

class Texinfo__tools (tools.AutoBuild):
source = 'http://ftp.gnu.org/pub/gnu/texinfo/texinfo-4.13a.tar.gz'
patches = ['texinfo-4.13-dash.patch']
def patch (self):
tools.AutoBuild.patch (self)
# Drop ncurses dependency
Expand Down
2 changes: 1 addition & 1 deletion inkscape.make
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ inkscape-installer: installers
inkscape-installers: installers

update-versions:
python gub/versiondb.py --no-sources --version-db=versiondb/inkscape.versions --download --platforms="mingw" --url=http://lilypond.org/blog/janneke/software/inkscape
$(PYTHON) gub/versiondb.py --no-sources --version-db=versiondb/inkscape.versions --download --platforms="mingw" --url=http://lilypond.org/blog/janneke/software/inkscape

print-success:
@echo installer: uploads/inkscape*$(BUILD_PLATFORM).sh
Expand Down
16 changes: 8 additions & 8 deletions lilypond.make
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ include compilers.make

unlocked-update-versions:
$(info **** **** unlocked-update-versions rule)
python gub/versiondb.py --version-db=$(LILYPOND_VERSIONS) --download --platforms="$(PLATFORMS)"
$(PYTHON) gub/versiondb.py --version-db=$(LILYPOND_VERSIONS) --download --platforms="$(PLATFORMS)"

ifneq ($(findstring cygwin,$(PLATFORMS)),)
# this is downloading the same info 5 times. Can we do this more efficiently?
python gub/versiondb.py --no-sources --version-db=versiondb/freetype2.versions --download --platforms="cygwin"
python gub/versiondb.py --no-sources --version-db=versiondb/fontconfig.versions --download --platforms="cygwin"
python gub/versiondb.py --no-sources --version-db=versiondb/guile.versions --download --platforms="cygwin"
python gub/versiondb.py --no-sources --version-db=versiondb/libtool.versions --download --platforms="cygwin"
python gub/versiondb.py --no-sources --version-db=versiondb/noweb.versions --download --platforms="cygwin"
$(PYTHON) gub/versiondb.py --no-sources --version-db=versiondb/freetype2.versions --download --platforms="cygwin"
$(PYTHON) gub/versiondb.py --no-sources --version-db=versiondb/fontconfig.versions --download --platforms="cygwin"
$(PYTHON) gub/versiondb.py --no-sources --version-db=versiondb/guile.versions --download --platforms="cygwin"
$(PYTHON) gub/versiondb.py --no-sources --version-db=versiondb/libtool.versions --download --platforms="cygwin"
$(PYTHON) gub/versiondb.py --no-sources --version-db=versiondb/noweb.versions --download --platforms="cygwin"
endif

download-cygwin:
Expand Down Expand Up @@ -157,7 +157,7 @@ test-output:

print-success:
$(info **** print-success rule)
python test-lily/upload.py --branch=$(LILYPOND_BRANCH) --url $(LILYPOND_REPO_URL)
$(PYTHON) test-lily/upload.py --branch=$(LILYPOND_BRANCH) --url $(LILYPOND_REPO_URL)
@echo ""
@echo "To upload, run:"
@echo
Expand Down Expand Up @@ -208,7 +208,7 @@ ptools:

nsis:
$(info **** nsis rule)
bin/gub tools::nsis
$(GUB) tools::nsis

################################################################
# docs
Expand Down
2 changes: 1 addition & 1 deletion mingit.make
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mingw:
$(call BUILD,$@,git)

update-versions:
python gub/versiondb.py --no-sources --url http://lilypond.org/git --dbfile versiondb/git.versions --download --platforms="$(PLATFORMS)"
$(PYTHON) gub/versiondb.py --no-sources --url http://lilypond.org/git --dbfile versiondb/git.versions --download --platforms="$(PLATFORMS)"

LAST_GIT=$(shell ls -1 -t uploads/git*.exe|head -1)
TAG=gub-release-mingw-git-$(subst uploads/git-,,$(LAST_GIT))
Expand Down
2 changes: 1 addition & 1 deletion openoffice.make
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ openoffice-installers:
$(call INVOKE_INSTALLER_BUILDER,$(PLATFORMS)) $(INSTALL_PACKAGE)

nsis:
bin/gub tools::nsis
$(GUB) tools::nsis

print-success:
@echo "success!!"
Expand Down
31 changes: 31 additions & 0 deletions patches/texinfo-4.13-dash.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
diff -Nru texinfo-4.13/doc/Makefile.in texinfo-4.13-1/doc/Makefile.in
--- texinfo-4.13/doc/Makefile.in 2008-09-18 20:46:24.000000000 +0200
+++ texinfo-4.13-1/doc/Makefile.in 2013-09-03 13:16:12.024858274 +0200
@@ -489,8 +489,7 @@
change_envvars = unset TEXI2DVI_BUILD_MODE; unset TEXI2DVI_BUILD_DIRECTORY; \
PATH="$(util_srcdir):$${PATH}"; export PATH

-common_texi2dvi_deps = $(common_mandeps) \
- $(util_srcdir)/texi2dvi $(util_srcdir)/texi2pdf
+common_texi2dvi_deps = $(common_mandeps)

all: all-am

diff -Nru texinfo-4.13/util/texi2dvi texinfo-4.13-1/util/texi2dvi
--- texinfo-4.13/util/texi2dvi 2008-09-18 20:46:01.000000000 +0200
+++ texinfo-4.13-1/util/texi2dvi 2013-09-03 13:16:06.064853490 +0200
@@ -129,11 +129,13 @@
}
test_local
test $foo = bar
-) || local () {
+) || eval '
+local () {
case $1 in
*=*) eval "$1";;
esac
}
+'


# cd_orig
4 changes: 2 additions & 2 deletions schikkers-list.make
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ schikkers-list-installers:
$(foreach p, $(PLATFORMS), $(call INVOKE_INSTALLER_BUILDER,$(p)) $(INSTALL_PACKAGE) &&) true #

nsis:
bin/gub tools::nsis
$(GUB) tools::nsis

update-versions:
python gub/versiondb.py --no-sources --version-db=versiondb/schikkers-list.versions --download --platforms="mingw,linux-x86" --url=http://lilypond.org/schikkers-list/download/
$(PYTHON) gub/versiondb.py --no-sources --version-db=versiondb/schikkers-list.versions --download --platforms="mingw,linux-x86" --url=http://lilypond.org/schikkers-list/download/

print-success:
@echo "success!!"
Expand Down