From 8d2c903bee89abe26bbedcb9c87d9b4977ca5887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 27 Sep 2013 14:06:45 +0000 Subject: main/freetds: fix includes (to build against musl) --- main/freetds/APKBUILD | 15 ++++++++++++--- main/freetds/fix-includes.patch | 10 ++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 main/freetds/fix-includes.patch (limited to 'main/freetds') diff --git a/main/freetds/APKBUILD b/main/freetds/APKBUILD index d980ccd541..3c6b2a5a5b 100644 --- a/main/freetds/APKBUILD +++ b/main/freetds/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Michael Mason pkgname=freetds pkgver=0.92.79 -pkgrel=0 +pkgrel=1 pkgdesc="Tabular Datastream Library" url="http://www.freetds.org/" arch="all" @@ -12,11 +12,13 @@ makedepends="unixodbc-dev readline-dev libiconv-dev libtool autoconf automake" install= subpackages="$pkgname-doc $pkgname-dev" source="ftp://ftp.freetds.org/pub/freetds/stable/$pkgname-$pkgver.tar.gz - freetds-libiconv.patch" + freetds-libiconv.patch + fix-includes.patch" _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" + update_config_sub || return 1 for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; @@ -46,4 +48,11 @@ package() { } md5sums="b97e9bdd3f461af3e8ea559404582f70 freetds-0.92.79.tar.gz -d2c26724048dd5c73af7f1c48c8ddf29 freetds-libiconv.patch" +d2c26724048dd5c73af7f1c48c8ddf29 freetds-libiconv.patch +9b58f810335051cd27939ed3d23549be fix-includes.patch" +sha256sums="06b9b3fe797552d93365f1f1f84051f6c292bb0f9fca06a3475852700cf71f50 freetds-0.92.79.tar.gz +8616c79ec80db274200f27028c2a6ec616f9e6494d2cb2591f7bd3c4575c7677 freetds-libiconv.patch +abf74427b80f122b91bad324410b0a7b4afc8de96acc65be5abd08dbe4be7b44 fix-includes.patch" +sha512sums="d5ede1312ee0c5ad4ed787c243a5e3242f25e4470d9201922df5736883c1c4652fa3483544dc78a945c37d006b173ffa35ba5a0ecfbb67a68b046667a7b51236 freetds-0.92.79.tar.gz +1dd76053477a23428355a704b0b0d5ee652e4c55d4beb46c43ab8c5d5d0eaa6d29accc4a8a1c41e42f4ac20521549b8d6c379773106d6d46299e96ba45a045ce freetds-libiconv.patch +bea9d52c052f2eb93836f33c58154dc8d3c19b73d0ad64cfcd9b2bc6f5e27787263977eeb5d91ebe9cb30fda6df32b6bb53a03e2350060b790a7c8a86fb352fa fix-includes.patch" diff --git a/main/freetds/fix-includes.patch b/main/freetds/fix-includes.patch new file mode 100644 index 0000000000..cd538534c9 --- /dev/null +++ b/main/freetds/fix-includes.patch @@ -0,0 +1,10 @@ +--- freetds-0.92.79.orig/src/apps/tsql.c ++++ freetds-0.92.79/src/apps/tsql.c +@@ -33,6 +33,7 @@ + # endif + #endif + ++#include + #include + #include + #include -- cgit v1.2.3