diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-09-28 07:52:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-09-28 07:52:52 +0000 |
commit | 933aeece766e79536a0b97ba40c6f06a6ea5b66a (patch) | |
tree | dd2e55caebb17c0abdbecbea23ddf02a6cfd4484 /main | |
parent | c6cec0839527fcb1b59f468bb6a5eeef5a41b4d9 (diff) | |
download | aports-933aeece766e79536a0b97ba40c6f06a6ea5b66a.tar.bz2 aports-933aeece766e79536a0b97ba40c6f06a6ea5b66a.tar.xz |
main/wine: upgrade to 1.3.29
Diffstat (limited to 'main')
-rw-r--r-- | main/wine/0001-d3dx9_36-avoid-using-fabsf-fmaxf.patch | 62 | ||||
-rw-r--r-- | main/wine/APKBUILD | 8 |
2 files changed, 67 insertions, 3 deletions
diff --git a/main/wine/0001-d3dx9_36-avoid-using-fabsf-fmaxf.patch b/main/wine/0001-d3dx9_36-avoid-using-fabsf-fmaxf.patch new file mode 100644 index 0000000000..e046af735d --- /dev/null +++ b/main/wine/0001-d3dx9_36-avoid-using-fabsf-fmaxf.patch @@ -0,0 +1,62 @@ +From b630b7aa0a086affabfb9533b5c64ef8505768dd Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Wed, 28 Sep 2011 06:03:59 +0000 +Subject: [PATCH] d3dx9_36: avoid using fabsf/fmaxf +Reply-To: wine-devel <wine-devel@winehq.org> + +This fixes compiling on Alpine Linux and other uClibc based distros. + +This is related bug 28247 and commit 4cddd5ffdf0c568445365c6c62e7788d7dbbca7d +--- + dlls/d3dx9_36/tests/mesh.c | 14 +++++++------- + 1 files changed, 7 insertions(+), 7 deletions(-) + +diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c +index 6a78e64..c09607f 100644 +--- a/dlls/d3dx9_36/tests/mesh.c ++++ b/dlls/d3dx9_36/tests/mesh.c +@@ -6160,7 +6160,7 @@ static void check_vertex_components(int line, int mesh_number, int vertex_number + { + FLOAT *got = (FLOAT*)(got_ptr + decl_ptr->Offset); + FLOAT *exp = (FLOAT*)(exp_ptr + decl_ptr->Offset); +- FLOAT diff = fabsf(*got - *exp); ++ FLOAT diff = abs(*got - *exp); + ok_(__FILE__,line)(diff <= FLT_EPSILON, "Mesh %d: Got %f for vertex %d %s, expected %f.\n", + mesh_number, *got, vertex_number, usage_strings[decl_ptr->Usage], *exp); + break; +@@ -6169,7 +6169,7 @@ static void check_vertex_components(int line, int mesh_number, int vertex_number + { + D3DXVECTOR2 *got = (D3DXVECTOR2*)(got_ptr + decl_ptr->Offset); + D3DXVECTOR2 *exp = (D3DXVECTOR2*)(exp_ptr + decl_ptr->Offset); +- FLOAT diff = fmaxf(fabsf(got->x - exp->x), fabsf(got->y - exp->y)); ++ FLOAT diff = max(abs(got->x - exp->x), abs(got->y - exp->y)); + ok_(__FILE__,line)(diff <= FLT_EPSILON, "Mesh %d: Got (%f, %f) for vertex %d %s, expected (%f, %f).\n", + mesh_number, got->x, got->y, vertex_number, usage_strings[decl_ptr->Usage], exp->x, exp->y); + break; +@@ -6178,8 +6178,8 @@ static void check_vertex_components(int line, int mesh_number, int vertex_number + { + D3DXVECTOR3 *got = (D3DXVECTOR3*)(got_ptr + decl_ptr->Offset); + D3DXVECTOR3 *exp = (D3DXVECTOR3*)(exp_ptr + decl_ptr->Offset); +- FLOAT diff = fmaxf(fabsf(got->x - exp->x), fabsf(got->y - exp->y)); +- diff = fmaxf(diff, fabsf(got->z - exp->z)); ++ FLOAT diff = max(abs(got->x - exp->x), abs(got->y - exp->y)); ++ diff = max(diff, abs(got->z - exp->z)); + ok_(__FILE__,line)(diff <= FLT_EPSILON, "Mesh %d: Got (%f, %f, %f) for vertex %d %s, expected (%f, %f, %f).\n", + mesh_number, got->x, got->y, got->z, vertex_number, usage_strings[decl_ptr->Usage], exp->x, exp->y, exp->z); + break; +@@ -6188,9 +6188,9 @@ static void check_vertex_components(int line, int mesh_number, int vertex_number + { + D3DXVECTOR4 *got = (D3DXVECTOR4*)(got_ptr + decl_ptr->Offset); + D3DXVECTOR4 *exp = (D3DXVECTOR4*)(exp_ptr + decl_ptr->Offset); +- FLOAT diff = fmaxf(fabsf(got->x - exp->x), fabsf(got->y - exp->y)); +- diff = fmaxf(diff, fabsf(got->z - exp->z)); +- diff = fmaxf(diff, fabsf(got->w - exp->w)); ++ FLOAT diff = max(abs(got->x - exp->x), abs(got->y - exp->y)); ++ diff = max(diff, abs(got->z - exp->z)); ++ diff = max(diff, abs(got->w - exp->w)); + ok_(__FILE__,line)(diff <= FLT_EPSILON, "Mesh %d: Got (%f, %f, %f, %f) for vertex %d %s, expected (%f, %f, %f, %f).\n", + mesh_number, got->x, got->y, got->z, got->w, vertex_number, usage_strings[decl_ptr->Usage], exp->x, exp->y, exp->z, got->w); + break; +-- +1.7.6.1 + diff --git a/main/wine/APKBUILD b/main/wine/APKBUILD index e74ae5f376..3f9c2c3e23 100644 --- a/main/wine/APKBUILD +++ b/main/wine/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=wine -pkgver=1.3.28 -pkgrel=1 +pkgver=1.3.29 +pkgrel=0 pkgdesc="A compatibility layer for running Windows programs" url="http://www.winehq.com" arch="x86" @@ -15,6 +15,7 @@ makedepends="fontconfig-dev openldap-dev libxslt-dev libxxf86dga-dev gstreamer-dev gst-plugins-base-dev paxctl autoconf automake" source="http://ibiblio.org/pub/linux/system/emulators/$pkgname/$pkgname-$pkgver.tar.bz2 + 0001-d3dx9_36-avoid-using-fabsf-fmaxf.patch " _builddir="$srcdir"/$pkgname-$pkgver @@ -46,4 +47,5 @@ package() { "$pkgdir"/usr/bin/wine } -md5sums="70574d609161cec8523804cd9364bcd2 wine-1.3.28.tar.bz2" +md5sums="6c4159ef53c81faf5e52f29211ac50de wine-1.3.29.tar.bz2 +65325cfcef7bffc954b9253f8d1dd2c5 0001-d3dx9_36-avoid-using-fabsf-fmaxf.patch" |