update to 0.3.9

Most changes (since 0.3.6) were done in 0.3.7 appearently, where no
changelog doesn't exist for. I see many additions of MMX/SSE optimized
functions. The rest is bugfixes.

Pkgsrc patch: SSE2/3 are disabled on i386 for now because gcc doesn't
ensure stack alignment for automatic 128-bit variables. Future liboil
versions will work around this. See
http://lists.freedesktop.org/archives/liboil/2006-August/000102.html
and
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=368991
This commit is contained in:
drochner 2006-10-19 14:27:33 +00:00
parent 6154f96bd4
commit 2c2df4f925
4 changed files with 72 additions and 40 deletions

View file

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.7 2006/09/03 22:55:33 rillig Exp $
# $NetBSD: Makefile,v 1.8 2006/10/19 14:27:33 drochner Exp $
#
DISTNAME= liboil-0.3.6
DISTNAME= liboil-0.3.9
CATEGORIES= devel
MASTER_SITES= http://liboil.freedesktop.org/download/
@ -13,7 +13,7 @@ GNU_CONFIGURE= yes
USE_LIBTOOL= yes
CONFIGURE_ARGS+= --disable-glib # Only used by examples.
CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc
#CONFIGURE_ARGS+= --enable-debug
PKGCONFIG_OVERRIDE+= liboil-uninstalled.pc.in
PKGCONFIG_OVERRIDE+= liboil.pc.in

View file

@ -1,4 +1,6 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2006/01/15 19:51:56 jmmv Exp $
@comment $NetBSD: PLIST,v 1.2 2006/10/19 14:27:33 drochner Exp $
bin/oil-bugreport
include/liboil-0.3/liboil/liboil-stdint.h
include/liboil-0.3/liboil/liboil.h
include/liboil-0.3/liboil/liboilclasses.h
include/liboil-0.3/liboil/liboilcpu.h
@ -15,37 +17,38 @@ include/liboil-0.3/liboil/liboiltest.h
include/liboil-0.3/liboil/liboiltypes.h
lib/liboil-0.3.la
lib/pkgconfig/liboil-0.3.pc
share/doc/liboil/ch01.html
share/doc/liboil/ch02.html
share/doc/liboil/home.png
share/doc/liboil/index.html
share/doc/liboil/index.sgml
share/doc/liboil/left.png
share/doc/liboil/liboil-liboilclass-unstable.html
share/doc/liboil/liboil-liboilcpu.html
share/doc/liboil/liboil-liboildebug.html
share/doc/liboil/liboil-liboilfuncs-conv.html
share/doc/liboil/liboil-liboilfuncs-copy.html
share/doc/liboil/liboil-liboilfuncs-dct.html
share/doc/liboil/liboil-liboilfuncs-doc.html
share/doc/liboil/liboil-liboilfuncs-math.html
share/doc/liboil/liboil-liboilfuncs-math8x8.html
share/doc/liboil/liboil-liboilfuncs-pixel.html
share/doc/liboil/liboil-liboilimpl-unstable.html
share/doc/liboil/liboil-liboilinit-unstable.html
share/doc/liboil/liboil-liboilinit.html
share/doc/liboil/liboil-liboiljunk.html
share/doc/liboil/liboil-liboilmacros.html
share/doc/liboil/liboil-liboilparameter.html
share/doc/liboil/liboil-liboilprofile.html
share/doc/liboil/liboil-liboilprototype.html
share/doc/liboil/liboil-liboilrandom.html
share/doc/liboil/liboil-liboiltest.html
share/doc/liboil/liboil-liboiltypes.html
share/doc/liboil/liboil.devhelp
share/doc/liboil/right.png
share/doc/liboil/style.css
share/doc/liboil/up.png
@dirrm share/doc/liboil
share/gtk-doc/html/liboil/ch01.html
share/gtk-doc/html/liboil/ch02.html
share/gtk-doc/html/liboil/home.png
share/gtk-doc/html/liboil/index.html
share/gtk-doc/html/liboil/index.sgml
share/gtk-doc/html/liboil/left.png
share/gtk-doc/html/liboil/liboil-liboilclass-unstable.html
share/gtk-doc/html/liboil/liboil-liboilcpu.html
share/gtk-doc/html/liboil/liboil-liboildebug.html
share/gtk-doc/html/liboil/liboil-liboilfuncs-conv.html
share/gtk-doc/html/liboil/liboil-liboilfuncs-copy.html
share/gtk-doc/html/liboil/liboil-liboilfuncs-dct.html
share/gtk-doc/html/liboil/liboil-liboilfuncs-doc.html
share/gtk-doc/html/liboil/liboil-liboilfuncs-math.html
share/gtk-doc/html/liboil/liboil-liboilfuncs-math8x8.html
share/gtk-doc/html/liboil/liboil-liboilfuncs-pixel.html
share/gtk-doc/html/liboil/liboil-liboilimpl-unstable.html
share/gtk-doc/html/liboil/liboil-liboilinit-unstable.html
share/gtk-doc/html/liboil/liboil-liboilinit.html
share/gtk-doc/html/liboil/liboil-liboiljunk.html
share/gtk-doc/html/liboil/liboil-liboilmacros.html
share/gtk-doc/html/liboil/liboil-liboilparameter.html
share/gtk-doc/html/liboil/liboil-liboilprofile.html
share/gtk-doc/html/liboil/liboil-liboilprototype.html
share/gtk-doc/html/liboil/liboil-liboilrandom.html
share/gtk-doc/html/liboil/liboil-liboiltest.html
share/gtk-doc/html/liboil/liboil-liboiltypes.html
share/gtk-doc/html/liboil/liboil.devhelp
share/gtk-doc/html/liboil/liboil.devhelp2
share/gtk-doc/html/liboil/right.png
share/gtk-doc/html/liboil/style.css
share/gtk-doc/html/liboil/up.png
@dirrm share/gtk-doc/html/liboil
@dirrm include/liboil-0.3/liboil
@dirrm include/liboil-0.3

View file

@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.1.1.1 2006/01/15 19:51:56 jmmv Exp $
$NetBSD: distinfo,v 1.2 2006/10/19 14:27:33 drochner Exp $
SHA1 (liboil-0.3.6.tar.gz) = 43cfdfeace05006bfeaacc30f1feeece657595a2
RMD160 (liboil-0.3.6.tar.gz) = f86830c0c9101e8fbe22879f930fb61d23b0139a
Size (liboil-0.3.6.tar.gz) = 714947 bytes
SHA1 (liboil-0.3.9.tar.gz) = 9b8126c4ae26f32c4131c7e8df8b2c61e7e1973a
RMD160 (liboil-0.3.9.tar.gz) = b77d754028d97cff2138c4d899e00959a34eb750
Size (liboil-0.3.9.tar.gz) = 833083 bytes
SHA1 (patch-aa) = 7f030d1ad86805b21bfb7bc9343fe73337ecd359

View file

@ -0,0 +1,28 @@
$NetBSD: patch-aa,v 1.1 2006/10/19 14:27:33 drochner Exp $
--- liboil/liboilcpu.c.orig 2006-05-23 02:07:56.000000000 +0200
+++ liboil/liboilcpu.c
@@ -518,6 +518,14 @@ oil_cpu_detect_cpuid (void)
OIL_WARNING("L2 cache: %d kbytes, %d assoc, %d lines/tag, %d line size\n",
(ecx>>16)&0xffff, (ecx>>12)&0xf, (ecx>>8)&0xf, ecx&0xff);
}
+
+#ifdef __i386__
+ /*
+ * gcc (4.1) doesn't get the alignment of automatic __m128i variables
+ * right, leading to GPFs depending on stack alignment on function call.
+ */
+ oil_cpu_flags &= ~(OIL_IMPL_FLAG_SSE2 | OIL_IMPL_FLAG_SSE3);
+#endif
}
/* Reduce the set of CPU capabilities detected by whatever detection mechanism
@@ -542,7 +550,7 @@ oil_cpu_detect_kernel_support (void)
OIL_IMPL_FLAG_MMXEXT | OIL_IMPL_FLAG_SSE3);
}
#endif
-#if !defined(__linux__) && !defined(__FreeBSD__)
+#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
/* If we don't know that the operating system supports SSE, don't trust that
* it will properly support it.
*/