pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/liboil Patches for upstream commit c77faaaa2fc48...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/79e61f1a04c0
branches:  trunk
changeset: 539174:79e61f1a04c0
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri Feb 29 16:58:14 2008 +0000

description:
Patches for upstream commit c77faaaa2fc48586902878ba33bd01286654dcb6:
- Add workaround for older versions of gas that don't have SSE3 support

Reported in PR pkg/38126.

diffstat:

 devel/liboil/distinfo         |   4 +-
 devel/liboil/patches/patch-aa |  84 +++++++++++++++++++++++++++++++++++++++++++
 devel/liboil/patches/patch-af |  20 ++++++++++
 3 files changed, 107 insertions(+), 1 deletions(-)

diffs (128 lines):

diff -r 6158b3f3ea72 -r 79e61f1a04c0 devel/liboil/distinfo
--- a/devel/liboil/distinfo     Fri Feb 29 16:44:55 2008 +0000
+++ b/devel/liboil/distinfo     Fri Feb 29 16:58:14 2008 +0000
@@ -1,9 +1,11 @@
-$NetBSD: distinfo,v 1.10 2008/02/28 19:28:24 drochner Exp $
+$NetBSD: distinfo,v 1.11 2008/02/29 16:58:14 tnn Exp $
 
 SHA1 (liboil-0.3.13.tar.gz) = 1c08d92810a76afce7a2cba2b5f969a096ecf8a0
 RMD160 (liboil-0.3.13.tar.gz) = aefcf9c7a100b5faff3449573bff6238db0bdb34
 Size (liboil-0.3.13.tar.gz) = 813995 bytes
+SHA1 (patch-aa) = d0adb03ef3a1eb5daf059cbfd53bba0ce8338fb1
 SHA1 (patch-ab) = 36a06f38f34f43ab6d181f4e9028f7b9adf5332b
 SHA1 (patch-ac) = 8ccb2b0323b337902c384f4bdda856ca1cc2b023
 SHA1 (patch-ad) = 9d38917949c5f7b06229587f2338de7d1745147f
 SHA1 (patch-ae) = ca873368c23a5e3bd7475e9aeb64ffb74e7e2ea7
+SHA1 (patch-af) = 9a6a42eb98f0c41d2a9fc5da91eb084864d3f16e
diff -r 6158b3f3ea72 -r 79e61f1a04c0 devel/liboil/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/liboil/patches/patch-aa     Fri Feb 29 16:58:14 2008 +0000
@@ -0,0 +1,84 @@
+$NetBSD: patch-aa,v 1.8 2008/02/29 16:58:14 tnn Exp $
+
+--- configure.orig     2008-02-29 17:53:58.000000000 +0100
++++ configure
+@@ -16369,6 +16369,79 @@ fi
+ 
+ 
+ 
++  { echo "$as_me:$LINENO: checking if compiler supports 'pmaddubsw %%mm0, %%mm0' asm instruction" >&5
++echo $ECHO_N "checking if compiler supports 'pmaddubsw %%mm0, %%mm0' asm instruction... $ECHO_C" >&6; }
++
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++#ifndef __GNUC__
++#error Not GCC
++#endif
++#ifdef __GNUC_MINOR__
++#if (__GNUC__ * 1000 + __GNUC_MINOR__) < 3004
++#error GCC before 3.4 has critical bugs compiling inline assembly
++#endif
++#endif
++__asm__ ("pmaddubsw %%mm0, %%mm0"::)
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (ac_try="$ac_compile"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
++  (eval "$ac_compile") 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && {
++       test -z "$ac_c_werror_flag" ||
++       test ! -s conftest.err
++       } && test -s conftest.$ac_objext; then
++  flag_ok=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++      flag_ok=no
++fi
++
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++
++  if test "X$flag_ok" = Xyes ; then
++    HAVE_SSSE3_ASM=yes
++    true
++  else
++    HAVE_SSSE3_ASM=no
++    true
++  fi
++  { echo "$as_me:$LINENO: result: $flag_ok" >&5
++echo "${ECHO_T}$flag_ok" >&6; }
++
++if test "x$HAVE_SSSE3_ASM" = xyes ; then
++
++cat >>confdefs.h <<\_ACEOF
++#define HAVE_SSSE3_ASM 1
++_ACEOF
++
++fi
++
++
+ cat >>confdefs.h <<\_ACEOF
+ #define OIL_EXPORTS 1
+ _ACEOF
diff -r 6158b3f3ea72 -r 79e61f1a04c0 devel/liboil/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/liboil/patches/patch-af     Fri Feb 29 16:58:14 2008 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-af,v 1.1 2008/02/29 16:58:14 tnn Exp $
+
+--- liboil/i386_amd64/mas.c.orig       2008-02-22 20:59:17.000000000 +0100
++++ liboil/i386_amd64/mas.c
+@@ -735,6 +735,7 @@ mas8_u8_sym_mmx_5 (uint8_t *d, const uin
+ }
+ OIL_DEFINE_IMPL_FULL (mas8_u8_sym_mmx_5, mas8_u8_sym_l15, OIL_IMPL_FLAG_MMX|OIL_IMPL_FLAG_MMXEXT);
+ 
++#ifdef HAVE_SSSE3_ASM
+ void
+ mas8_u8_sym_mmx_6 (uint8_t *d, const uint8_t *s1_np7, const int16_t *s2_8,
+         const int16_t *s3_2, int n)
+@@ -798,6 +799,7 @@ mas8_u8_sym_mmx_6 (uint8_t *d, const uin
+       : "ecx");
+ }
+ OIL_DEFINE_IMPL_FULL (mas8_u8_sym_mmx_6, mas8_u8_sym_l15, OIL_IMPL_FLAG_MMX|OIL_IMPL_FLAG_MMXEXT|OIL_IMPL_FLAG_SSSE3);
++#endif
+ 
+ #ifdef ENABLE_BROKEN_IMPLS
+ /* This only works for the taps array: -1, 3, -7, 21, 21, -7, 3, -1 */



Home | Main Index | Thread Index | Old Index