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

Debian/m68k gcj



Hi all,

I’ve built and uploaded gettext (sorry for the unfortunate version
numbering – it’s in fact a binNMU built from unmodified sources)
and db4.8 to unstable with a gcj recompiled against a patched eglibc.
(This gcj ended up in unreleased because I added a patch to have
the sem_wait error printed, except it’s probably no longer needed,
but feeding it upstream might be a good idea nevertheless; attached.)

This means my request to drop Java™ support for m68k on these pak-
kages has been superseded.

As for db4.7, there’s the other build error, but as it’s been
orphaned I’m going to search for it, hopefully fix it and do a
QA upload. (Why does e.g. Perl still depend on it, anyway?)

Still not quite back from VAC (gimme today and tomorrow to catch
up) but back with internet access, if you wondered…

bye,
//mirabilos
-- 
I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence.		-- Coywolf Qi Hunt
diff -u gcj-4.4-4.4.5/debian/rules.patch gcj-4.4-4.4.5/debian/rules.patch
--- gcj-4.4-4.4.5/debian/rules.patch
+++ gcj-4.4-4.4.5/debian/rules.patch
@@ -14,6 +14,7 @@
 
 debian_patches = \
 	svn-updates \
+	boehm-gc-semwait-errno \
 	$(if $(with_linaro_branch),gcc-linaro) \
 
 ifeq ($(with_java),yes)
diff -u gcj-4.4-4.4.5/debian/changelog gcj-4.4-4.4.5/debian/changelog
--- gcj-4.4-4.4.5/debian/changelog
+++ gcj-4.4-4.4.5/debian/changelog
@@ -1,3 +1,10 @@
+gcj-4.4 (4.4.5-9+m68k.1) unreleased; urgency=low
+
+  * Recompile against eglibc_2.11.2-7+m68k.4_m68k.
+  * boehm-gc-semwait-errno.diff: New, to help debugging.
+
+ -- Thorsten Glaser <tg@mirbsd.de>  Tue, 04 Jan 2011 19:14:17 +0000
+
 gcj-4.4 (4.4.5-9) unstable; urgency=low
 
   * Update the packaging corresponding to gcc-4.4 4.4.5-9.
only in patch2:
unchanged:
--- gcj-4.4-4.4.5.orig/debian/patches/boehm-gc-semwait-errno.diff
+++ gcj-4.4-4.4.5/debian/patches/boehm-gc-semwait-errno.diff
@@ -0,0 +1,30 @@
+# DP: display more verbose errors if sem_wait(3) fails
+
+--- gcc-4.4-4.4.5/src/boehm-gc/pthread_stop_world.c~	2007-04-23 21:10:09.000000000 +0000
++++ gcc-4.4-4.4.5/src/boehm-gc/pthread_stop_world.c	2011-01-04 19:09:39.000000000 +0000
+@@ -13,6 +13,9 @@
+   /* Doesn't exist on HP/UX 11.11. */
+ #endif
+ 
++extern const char *sys_errlist[];
++extern int sys_nerr;
++
+ void suspend_self();
+ 
+ #if DEBUG_THREADS
+@@ -427,8 +430,13 @@ void GC_stop_world()
+       }
+     for (i = 0; i < n_live_threads; i++) {
+ 	  while (0 != (code = sem_wait(&GC_suspend_ack_sem))) {
+-	      if (errno != EINTR) {
+-	         GC_err_printf1("Sem_wait returned %ld\n", (unsigned long)code);
++	      int e = errno;
++
++	      if (e != EINTR) {
++	         GC_err_printf3("Sem_wait returned %ld: %s (%d)\n",
++		   (unsigned long)code, e >= sys_nerr ||
++		   sys_errlist[e] == NULL ? "(unknown errno)" :
++		   sys_errlist[e], e);
+ 	         ABORT("sem_wait for handler failed");
+ 	      }
+ 	  }

Reply to: