From 9e423e441de436d195d569688f567bbefe56bc61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <bgyorgy@archlinux.org> Date: Wed, 25 Dec 2013 08:45:03 +0000 Subject: [PATCH] Fix build, temporary disable .install file (FS#35814) --- PKGBUILD | 17 +++-- ...814191d16fd3c571d93035247db039254fc1.patch | 29 +++++++++ ...e46966bfa05015fb9fb20c68da844ab88028.patch | 63 +++++++++++++++++++ 3 files changed, 105 insertions(+), 4 deletions(-) create mode 100644 lilypond.git-1ca9814191d16fd3c571d93035247db039254fc1.patch create mode 100644 lilypond.git-7705e46966bfa05015fb9fb20c68da844ab88028.patch diff --git a/PKGBUILD b/PKGBUILD index 58d4644..7374eb5 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ pkgname=lilypond pkgver=2.16.2 -pkgrel=3 +pkgrel=4 pkgdesc="An automated music engraving system" arch=('i686' 'x86_64') url="http://lilypond.org" @@ -14,9 +14,13 @@ depends=('guile1.8' 'python2' 'texlive-core' 'ghostscript' 'pango' 'fontconfig') makedepends=('flex' 'bison' 'gettext' 'mftrace' 'texinfo' 'fontforge' 't1utils' 'gsfonts' 'texi2html') options=('emptydirs') -install=lilypond.install -source=(http://download.linuxaudio.org/lilypond/sources/v2.16/$pkgname-$pkgver.tar.gz) -md5sums=('6db27f17d47e4f66a3b0716c65db3041') +#install=lilypond.install +source=(http://download.linuxaudio.org/lilypond/sources/v2.16/$pkgname-$pkgver.tar.gz + lilypond.git-1ca9814191d16fd3c571d93035247db039254fc1.patch + lilypond.git-7705e46966bfa05015fb9fb20c68da844ab88028.patch) +md5sums=('6db27f17d47e4f66a3b0716c65db3041' + '121ac86f1004338ae20ad55a5690c0ad' + 'fa5073506f0e4dd96fb1858e3a75e08e') prepare() { cd "$srcdir/$pkgname-$pkgver" @@ -31,6 +35,10 @@ prepare() { sed -i 's|GUILE_LDFLAGS=.*|GUILE_LDFLAGS="`pkg-config --libs guile-1.8`"|' configure rm -rf python/out/ + + # Fix build + patch -Np1 -i "$srcdir/lilypond.git-1ca9814191d16fd3c571d93035247db039254fc1.patch" + patch -Np1 -i "$srcdir/lilypond.git-7705e46966bfa05015fb9fb20c68da844ab88028.patch" } build() { @@ -38,6 +46,7 @@ build() { export PYTHON=/usr/bin/python2 export GUILE=/usr/bin/guile1.8 export GUILE_CONFIG=/usr/bin/guile-config1.8 + export LDFLAGS="$LDFLAGS -lpthread" ./configure --prefix=/usr --disable-documentation make } diff --git a/lilypond.git-1ca9814191d16fd3c571d93035247db039254fc1.patch b/lilypond.git-1ca9814191d16fd3c571d93035247db039254fc1.patch new file mode 100644 index 0000000..57b5b8e --- /dev/null +++ b/lilypond.git-1ca9814191d16fd3c571d93035247db039254fc1.patch @@ -0,0 +1,29 @@ +From: Julien Rioux <julien.rioux@gmail.com> +Date: Mon, 28 Oct 2013 20:42:43 +0000 (+0100) +Subject: Build: Fix compilation with GNU make 4.0 +X-Git-Tag: release/2.17.95-1~4^2 +X-Git-Url: http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=commitdiff_plain;h=1ca9814191d16fd3c571d93035247db039254fc1;hp=025f0236ebab947e6fe2047f20b7f74f4cec3fc4 + +Build: Fix compilation with GNU make 4.0 + +Fix "recipes commence before first target" error. + +Patch from Thomas Klausner. +--- + +diff --git a/stepmake/stepmake/po-targets.make b/stepmake/stepmake/po-targets.make +index 8919dab..8a0dd76 100644 +--- a/stepmake/stepmake/po-targets.make ++++ b/stepmake/stepmake/po-targets.make +@@ -37,10 +37,10 @@ ifneq ($(strip $(ALL_PO_SOURCES)),) + --keyword=_ --keyword=_f --keyword=_i \ + $(XGETTEXT_FLAGS) $(ALL_PO_SOURCES) + endif +-endif + sed -i '1,2d' $(po-outdir)/$(package).po + sed -i -e 's/^\# This file is distributed.*/$(sed-header)/' $(po-outdir)/$(package).po + sed -i -e 's/^\"Content-Type: text\/plain.*/$(sed-content)/' $(po-outdir)/$(package).po ++endif + + + po-update: po diff --git a/lilypond.git-7705e46966bfa05015fb9fb20c68da844ab88028.patch b/lilypond.git-7705e46966bfa05015fb9fb20c68da844ab88028.patch new file mode 100644 index 0000000..ad0c3d4 --- /dev/null +++ b/lilypond.git-7705e46966bfa05015fb9fb20c68da844ab88028.patch @@ -0,0 +1,63 @@ +From: Werner Lemberg <wl@gnu.org> +Date: Thu, 5 Dec 2013 14:01:48 +0000 (+0100) +Subject: Issue 3694: Use standard inclusion scheme for FreeType headers. +X-Git-Url: http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=commitdiff_plain;h=7705e46966bfa05015fb9fb20c68da844ab88028;hp=88435714e762229ebe2715bcf6863eb89c1f8dff + +Issue 3694: Use standard inclusion scheme for FreeType headers. + +The most recent FreeType release (2.5.1) has changed locations for header +files. Using the standard way, this is not visible to applications. +--- + +diff --git a/lily/freetype-error.cc b/lily/freetype-error.cc +index 00e5cae..88af76c 100644 +--- a/lily/freetype-error.cc ++++ b/lily/freetype-error.cc +@@ -31,7 +31,7 @@ const struct Freetype_error_message + const char *err_msg; + } ft_errors[] = + +-#include <freetype/fterrors.h> ++#include FT_ERRORS_H + + ; + +diff --git a/lily/open-type-font.cc b/lily/open-type-font.cc +index df6a744..837a1f2 100644 +--- a/lily/open-type-font.cc ++++ b/lily/open-type-font.cc +@@ -23,7 +23,7 @@ + + using namespace std; + +-#include <freetype/tttables.h> ++#include FT_TRUETYPE_TABLES_H + + #include "dimensions.hh" + #include "freetype.hh" +diff --git a/lily/pango-font.cc b/lily/pango-font.cc +index ee986fc..b148a5b 100644 +--- a/lily/pango-font.cc ++++ b/lily/pango-font.cc +@@ -22,7 +22,7 @@ + #define PANGO_ENABLE_BACKEND + + #include <pango/pangoft2.h> +-#include <freetype/ftxf86.h> ++#include FT_XFREE86_H + + #include <map> + #include <cstdio> +diff --git a/lily/ttf.cc b/lily/ttf.cc +index eaeb67a..6d7f97b 100644 +--- a/lily/ttf.cc ++++ b/lily/ttf.cc +@@ -20,7 +20,7 @@ + #include <cstdio> + #include "freetype.hh" + +-#include <freetype/tttables.h> ++#include FT_TRUETYPE_TABLES_H + + #include "international.hh" + #include "memory-stream.hh" -- GitLab