Re: unbreak devel/ffcall on powerpc

2015-08-01 Thread Landry Breuil
On Thu, Jul 30, 2015 at 03:34:07PM +0200, Tobias Ulmer wrote:
> Our libtool is more strict, and can not find static lib objects when
> renamed. Only affects powerpc (rs6000) object rules. Bump for good
> measure. trampoline.c didn't change, was just regenerated.
> 
> compile tested on powerpc, clisp build is on its way.
> 
> ok?

Fixes the build here too, ok. Havent tested clisp.



unbreak devel/ffcall on powerpc

2015-07-30 Thread Tobias Ulmer
Our libtool is more strict, and can not find static lib objects when
renamed. Only affects powerpc (rs6000) object rules. Bump for good
measure. trampoline.c didn't change, was just regenerated.

compile tested on powerpc, clisp build is on its way.

ok?

Index: Makefile
===
RCS file: /home/vcs/cvs/openbsd/ports/devel/ffcall/Makefile,v
retrieving revision 1.26
diff -u -p -r1.26 Makefile
--- Makefile18 Jun 2015 06:05:00 -  1.26
+++ Makefile30 Jul 2015 13:19:04 -
@@ -6,7 +6,7 @@ ONLY_FOR_ARCHS= alpha amd64 hppa i386 mi
 COMMENT=   foreign function call libraries
 
 DISTNAME=  ffcall-1.10
-REVISION = 2
+REVISION = 3
 SHARED_LIBS=   avcall  1.0 \
callback1.0
 CATEGORIES=devel
Index: patches/patch-avcall_Makefile_in
===
RCS file: 
/home/vcs/cvs/openbsd/ports/devel/ffcall/patches/patch-avcall_Makefile_in,v
retrieving revision 1.5
diff -u -p -r1.5 patch-avcall_Makefile_in
--- patches/patch-avcall_Makefile_in23 Aug 2010 14:16:09 -  1.5
+++ patches/patch-avcall_Makefile_in30 Jul 2015 13:19:04 -
@@ -1,7 +1,7 @@
 $OpenBSD: patch-avcall_Makefile_in,v 1.5 2010/08/23 14:16:09 jasper Exp $
 avcall/Makefile.in.origSun Jan 25 09:34:21 2004
-+++ avcall/Makefile.in Sat Apr 25 21:42:02 2009
-@@ -120,7 +120,7 @@ avcall-rs6000.lo : $(srcdir)/avcall-rs6000-aix.old.s $
+--- avcall/Makefile.in.origSun Jan 25 18:34:21 2004
 avcall/Makefile.in Thu Jul 30 14:59:25 2015
+@@ -120,13 +120,11 @@ avcall-rs6000.lo : $(srcdir)/avcall-rs6000-aix.old.s $
case "$(OS)" in \
  aix3*) syntax=aix.old;; \
  aix*) syntax=aix.new;; \
@@ -10,3 +10,10 @@ $OpenBSD: patch-avcall_Makefile_in,v 1.5
  macos* | darwin*) syntax=macos;; \
  *) syntax=sysv4;; \
esac; \
+-  $(LIBTOOL_COMPILE) $(CC) @GCC_X_NONE@ -c 
$(srcdir)/avcall-rs6000-$${syntax}.s ; \
+-  cp avcall-rs6000-$${syntax}.lo avcall-rs6000.lo ; rm -f 
avcall-rs6000-$${syntax}.lo ; \
+-  if test -f avcall-rs6000-$${syntax}.o; then mv 
avcall-rs6000-$${syntax}.o avcall-rs6000.o; fi
++  $(LIBTOOL_COMPILE) $(CC) @GCC_X_NONE@ -c 
$(srcdir)/avcall-rs6000-$${syntax}.s -o avcall-rs6000.lo
+ 
+ avcall-m88k.lo : $(srcdir)/avcall-m88k.s
+   $(LIBTOOL_COMPILE) $(CC) @GCC_X_NONE@ -c $(srcdir)/avcall-m88k.s
Index: patches/patch-callback_trampoline_r_Makefile_in
===
RCS file: patches/patch-callback_trampoline_r_Makefile_in
diff -N patches/patch-callback_trampoline_r_Makefile_in
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-callback_trampoline_r_Makefile_in 30 Jul 2015 13:19:04 
-
@@ -0,0 +1,13 @@
+$OpenBSD$
+--- callback/trampoline_r/Makefile.in.orig Thu Jul 30 15:10:21 2015
 callback/trampoline_r/Makefile.in  Thu Jul 30 15:11:45 2015
+@@ -101,7 +101,8 @@ cache-rs6000.lo : $(srcdir)/cache-rs6000-sysv4.s $(src
+ macos* | darwin*) syntax=macos;; \
+ *) syntax=sysv4;; \
+   esac; \
+-  $(LIBTOOL_COMPILE) $(CC) @GCC_X_NONE@ -c 
$(srcdir)/cache-rs6000-$${syntax}.s ; mv -f cache-rs6000-$${syntax}.o 
cache-rs6000.o ; mv -f cache-rs6000-$${syntax}.lo cache-rs6000.lo
++  $(LIBTOOL_COMPILE) $(CC) @GCC_X_NONE@ -c 
$(srcdir)/cache-rs6000-$${syntax}.s \
++  -o cache-rs6000.lo
+ 
+ cache-convex.lo : $(srcdir)/cache-convex.s
+   $(LIBTOOL_COMPILE) $(CC) @GCC_X_NONE@ -c $(srcdir)/cache-convex.s
Index: patches/patch-callback_trampoline_r_trampoline_c
===
RCS file: 
/home/vcs/cvs/openbsd/ports/devel/ffcall/patches/patch-callback_trampoline_r_trampoline_c,v
retrieving revision 1.3
diff -u -p -r1.3 patch-callback_trampoline_r_trampoline_c
--- patches/patch-callback_trampoline_r_trampoline_c23 Sep 2010 13:38:33 
-  1.3
+++ patches/patch-callback_trampoline_r_trampoline_c30 Jul 2015 13:19:04 
-
@@ -7,8 +7,8 @@ stack instead.
 
 Also fix powerpc and mips64.
 
 callback/trampoline_r/trampoline.c.origMon Jan 26 07:00:05 2004
-+++ callback/trampoline_r/trampoline.c Fri Jul 30 14:34:10 2010
+--- callback/trampoline_r/trampoline.c.origMon Jan 26 16:00:05 2004
 callback/trampoline_r/trampoline.c Thu Jul 30 13:51:51 2015
 @@ -21,7 +21,7 @@
  #endif
  #endif
@@ -18,7 +18,7 @@ Also fix powerpc and mips64.
  #define __rs6000netbsd__
  #else
  #if !defined(_AIX)
-@@ -196,8 +196,12 @@ extern RETGETPAGESIZETYPE getpagesize ();
+@@ -196,12 +196,16 @@ extern RETGETPAGESIZETYPE getpagesize ();
  #ifdef linux
  #include 
  #else
@@ -27,11 +27,15 @@ Also fix powerpc and mips64.
 +#else
  #ifdef HAVE_SYS_CACHECTL_H
  #include 
-+#endif
  #endif
  #endif
  #endif
-@@ -259,11 +259,11 @@ extern void __TR_clear_cache();
+ #endif
++#endif
+ #ifdef __m88k__
+ #include 
+ #endif
+@@ -259,11 +263,11 @@ extern void __TR_clear_cache