On 2009/06/03 21:09, Benoit Lecocq wrote:
> Brad a écrit :
> > On Wednesday 27 May 2009 11:02:42 Benoit Lecocq wrote:
> >> Hi,
> >>
> >> This diff updates liboil to the latest release 0.3.16.
> >>
> >> Comments ? OK ?
> >>
> >> Cheers,
> >> benoit
> > 
> > Someone needs to check that this works ok on a macppc
> > (powerpc) system.
> > 
> 
> No macppc available for me.
> 

Has anyone been able to test Benoit's diff on macppc yet? Some programs
are starting to show up that require liboil >=0.3.16.

http://marc.info/?m=124343683421513

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/liboil/Makefile,v
retrieving revision 1.13
diff -N -u Makefile
--- Makefile    22 Aug 2008 11:53:32 -0000      1.13
+++ Makefile    27 May 2009 14:53:02 -0000
@@ -2,9 +2,8 @@
 
 COMMENT=       library of optimized inner loops
 
-DISTNAME=      liboil-0.3.14
-PKGNAME=       ${DISTNAME}p0
-SHARED_LIBS +=  oil-0.3              3.0      # .2.0
+DISTNAME=      liboil-0.3.16
+SHARED_LIBS+=  oil-0.3         4.0     # .3.0
 CATEGORIES=    devel
 
 MASTER_SITES=  ${HOMEPAGE}/download/
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/liboil/distinfo,v
retrieving revision 1.6
diff -N -u distinfo
--- distinfo    20 Mar 2008 18:21:39 -0000      1.6
+++ distinfo    27 May 2009 14:53:02 -0000
@@ -1,5 +1,5 @@
-MD5 (liboil-0.3.14.tar.gz) = ep9xnlBla3lcBsAWcBKoTw==
-RMD160 (liboil-0.3.14.tar.gz) = kc56h8kOAJL9lMTQdeP+CfaQOiE=
-SHA1 (liboil-0.3.14.tar.gz) = XeTu3w9Gc7bETkYtTRyus08hJrY=
-SHA256 (liboil-0.3.14.tar.gz) = pAwJ227iTgOqgfWDKaV+ReVUYqLg9hmzeW1L+ULCPy8=
-SIZE (liboil-0.3.14.tar.gz) = 819559
+MD5 (liboil-0.3.16.tar.gz) = /rsdn5vExED89iLckPi2tw==
+RMD160 (liboil-0.3.16.tar.gz) = Wt0AFR4k7ozFqN+0AiOTaldsv/0=
+SHA1 (liboil-0.3.16.tar.gz) = DWUwzLItgFxSCaGFqUtXURHsNPM=
+SHA256 (liboil-0.3.16.tar.gz) = AJEVsPyIjf4okD/s/oBnB8VEzK1lVOur3rOh2I7B6dE=
+SIZE (liboil-0.3.16.tar.gz) = 855765
Index: patches/patch-configure
===================================================================
RCS file: /cvs/ports/devel/liboil/patches/patch-configure,v
retrieving revision 1.3
diff -N -u patches/patch-configure
--- patches/patch-configure     20 Mar 2008 18:21:39 -0000      1.3
+++ patches/patch-configure     27 May 2009 14:53:02 -0000
@@ -1,66 +0,0 @@
-$OpenBSD: patch-configure,v 1.3 2008/03/20 18:21:39 jasper Exp $
---- configure.orig     Wed Mar 19 16:25:47 2008
-+++ configure  Wed Mar 19 16:30:06 2008
-@@ -16264,7 +16264,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-        } && test -s conftest.$ac_objext; then
--  flag_ok=yes
-+  flag_ok=no
- else
-   echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
-@@ -16324,7 +16324,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-        } && test -s conftest.$ac_objext; then
--  flag_ok=yes
-+  flag_ok=no
- else
-   echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
-@@ -16384,7 +16384,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-        } && test -s conftest.$ac_objext; then
--  flag_ok=yes
-+  flag_ok=no
- else
-   echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
-@@ -16444,7 +16444,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-        } && test -s conftest.$ac_objext; then
--  flag_ok=yes
-+  flag_ok=no
- else
-   echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
-@@ -16504,7 +16504,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-        } && test -s conftest.$ac_objext; then
--  flag_ok=yes
-+  flag_ok=no
- else
-   echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
-@@ -16564,7 +16564,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-        } && test -s conftest.$ac_objext; then
--  flag_ok=yes
-+  flag_ok=no
- else
-   echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
-@@ -16625,6 +16625,8 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-        test ! -s conftest.err
-        } && test -s conftest.$ac_objext; then
-   flag_ok=yes
-+  save_CFLAGS="$save_CFLAGS -maltivec"
-+  CCASFLAGS="$CCASSFLAGS -maltivec"
- else
-   echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
Index: patches/patch-liboil_liboilcpu-powerpc_c
===================================================================
RCS file: /cvs/ports/devel/liboil/patches/patch-liboil_liboilcpu-powerpc_c,v
retrieving revision 1.1
diff -N -u patches/patch-liboil_liboilcpu-powerpc_c
--- patches/patch-liboil_liboilcpu-powerpc_c    22 Aug 2008 11:53:32 -0000      
1.1
+++ patches/patch-liboil_liboilcpu-powerpc_c    27 May 2009 14:53:02 -0000
@@ -1,80 +0,0 @@
-$OpenBSD: patch-liboil_liboilcpu-powerpc_c,v 1.1 2008/08/22 11:53:32 brad Exp $
---- liboil/liboilcpu-powerpc.c.orig    Thu Mar 13 03:22:52 2008
-+++ liboil/liboilcpu-powerpc.c Tue Aug 12 21:04:23 2008
-@@ -54,6 +54,11 @@
- #include <sys/sysctl.h>
- #endif
- 
-+#if defined(__OpenBSD__)
-+#include <sys/param.h>
-+#include <sys/sysctl.h>
-+#include <machine/cpu.h>
-+#endif
- 
- /***** powerpc *****/
- 
-@@ -65,11 +70,13 @@ oil_profile_stamp_tb(void)
-   return ts;
- }
- 
-+#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && 
!defined(__OpenBSD__) && !defined(__APPLE__) && !defined(__linux__)
- static void
- test_altivec (void * ignored)
- {
-   asm volatile ("vor v0, v0, v0\n");
- }
-+#endif
- 
- #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
- static void
-@@ -86,6 +93,24 @@ oil_check_altivec_sysctl_freebsd (void)
- }
- #endif
- 
-+#if defined(__OpenBSD__)
-+static void
-+oil_check_altivec_sysctl_openbsd (void)
-+{
-+  int mib[2], av, ret;
-+  size_t len;
-+
-+  mib[0] = CTL_MACHDEP;
-+  mib[1] = CPU_ALTIVEC;
-+
-+  len = sizeof(av);
-+  ret = sysctl(mib, 2, &av, &len, NULL, 0);
-+  if (!ret && av) {
-+    oil_cpu_flags |= OIL_IMPL_FLAG_ALTIVEC;
-+  }
-+}
-+#endif
-+
- #if defined(__APPLE__)
- static void
- oil_check_altivec_sysctl_darwin (void)
-@@ -151,7 +176,8 @@ out:
- }
- #endif
- 
--void
-+#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && 
!defined(__OpenBSD__) && !defined(__APPLE__) && !defined(__linux__)
-+static void
- oil_check_altivec_fault (void)
- {
-   oil_fault_check_enable ();
-@@ -161,12 +187,15 @@ oil_check_altivec_fault (void)
-   }
-   oil_fault_check_disable ();
- }
-+#endif
- 
- void
- oil_cpu_detect_arch(void)
- {
- #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-   oil_check_altivec_sysctl_freebsd();
-+#elif defined(__OpenBSD__)
-+  oil_check_altivec_sysctl_openbsd();
- #elif defined(__APPLE__)
-   oil_check_altivec_sysctl_darwin();
- #elif defined(__linux__)
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/liboil/pkg/PLIST,v
retrieving revision 1.4
diff -N -u pkg/PLIST
--- pkg/PLIST   20 Mar 2008 18:21:39 -0000      1.4
+++ pkg/PLIST   27 May 2009 14:53:02 -0000
@@ -1,6 +1,6 @@
 @comment $OpenBSD: PLIST,v 1.4 2008/03/20 18:21:39 jasper Exp $
 %%SHARED%%
-bin/oil-bugreport
+...@bin bin/oil-bugreport
 include/liboil-0.3/
 include/liboil-0.3/liboil/
 include/liboil-0.3/liboil/liboil-stdint.h

Reply via email to