aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authork0r10n <k0r10n.dev@gmail.com>2014-10-17 18:47:02 +0400
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-17 14:51:28 +0000
commit0664a403fd6151666132639a117a2f308bb8c901 (patch)
tree731c6b46bb47616b2a49d58414e35db00017a571 /testing
parent9085b73f09d41af164193a3e0b5e22fcce80d503 (diff)
downloadaports-0664a403fd6151666132639a117a2f308bb8c901.tar.bz2
aports-0664a403fd6151666132639a117a2f308bb8c901.tar.xz
testing/libiodbc: Fix building
Diffstat (limited to 'testing')
-rw-r--r--testing/libiodbc/10-sqltypes-libiodbc-3.52.7.patch10
-rw-r--r--testing/libiodbc/APKBUILD10
2 files changed, 18 insertions, 2 deletions
diff --git a/testing/libiodbc/10-sqltypes-libiodbc-3.52.7.patch b/testing/libiodbc/10-sqltypes-libiodbc-3.52.7.patch
new file mode 100644
index 0000000000..2961cdea2f
--- /dev/null
+++ b/testing/libiodbc/10-sqltypes-libiodbc-3.52.7.patch
@@ -0,0 +1,10 @@
+--- libiodbc-3.52.7/include/sqltypes.h.orig
++++ libiodbc-3.52.7/include/sqltypes.h
+@@ -401,6 +401,7 @@
+ # include <stdlib.h>
+
+ # if defined(__cplusplus) || \
++ defined(__NEED_wchar_t) || \
+ defined(_WCHAR_T) || \
+ defined(_WCHAR_T_DEFINED) || \
+ defined(_WCHAR_T_DEFINED_) || \
diff --git a/testing/libiodbc/APKBUILD b/testing/libiodbc/APKBUILD
index 0165b727f4..04dec09d2d 100644
--- a/testing/libiodbc/APKBUILD
+++ b/testing/libiodbc/APKBUILD
@@ -12,7 +12,8 @@ depends_dev=
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
-source="http://www.iodbc.org/downloads/iODBC/libiodbc-$pkgver.tar.gz"
+source="http://www.iodbc.org/downloads/iODBC/libiodbc-$pkgver.tar.gz
+ 10-sqltypes-libiodbc-3.52.7.patch"
_builddir="$srcdir"/libiodbc-$pkgver
prepare() {
@@ -43,4 +44,9 @@ package() {
find "$pkgdir" -name *.la -print | xargs rm
}
-md5sums="ddbd274cb31d65be6a78da58fc09079a libiodbc-3.52.7.tar.gz"
+md5sums="ddbd274cb31d65be6a78da58fc09079a libiodbc-3.52.7.tar.gz
+c6dfc4ec015d61f9e68e56d234ed2e6f 10-sqltypes-libiodbc-3.52.7.patch"
+sha256sums="d7002cc7e566785f1203f6096dcb49b0aad02a9d9946a8eca5d663ac1a85c0c7 libiodbc-3.52.7.tar.gz
+208d2af418a8917af6bbb85878c413b07a100e17fff869e7f9cd9feef77446c1 10-sqltypes-libiodbc-3.52.7.patch"
+sha512sums="a0274cd40d8fa7445f9442541e7e1d90427273a137fc2d3227e81e8af42fb35a8a38a3601f445ee821a0f88cca732d56cec8b7f08e94492da3aca609063f1a1e libiodbc-3.52.7.tar.gz
+3daf5d15ebfd60d5b90c0e253669f07812afd470dad9a9c8bbfcb558a7a5b6cd9326abc2fcb901d90e53cc45bcdb3f3e633a04b1ac9c0cea0388910e93354ad0 10-sqltypes-libiodbc-3.52.7.patch"