[Gc] fix boehm-gc on Debian/m68k

Thorsten Glaser tg at mirbsd.de
Sat May 7 08:01:02 PDT 2011


tags 624833 + patch
thanks

Dixi quod…

>problem (not tested), and currently am preparing one against
>the Debian package (7.1 still) which will be tested (with the

Okay, this works for me. Also, build log attached, so that you
can update the symbols file (I’m not knowledgeable enough about
them to attempt that myself, yet).

bye,
//mirabilos
-- 
16:47⎜«mika:#grml» .oO(mira ist einfach gut....)      23:22⎜«mikap:#grml»
mirabilos: und dein bootloader ist geil :)    23:29⎜«mikap:#grml» und ich
finds saugeil dass ich ein bsd zum booten mit grml hab, das muss ich dann
gleich mal auf usb-stick installieren	-- Michael Prokop über MirOS bsd4grml
-------------- next part --------------
diff -Nru libgc-7.1/debian/changelog libgc-7.1/debian/changelog
--- libgc-7.1/debian/changelog	2011-03-02 12:48:24.000000000 +0000
+++ libgc-7.1/debian/changelog	2011-05-07 14:23:49.000000000 +0000
@@ -1,3 +1,10 @@
+libgc (1:7.1-7+m68k.1) unreleased; urgency=low
+
+  * d/p/06-m68k-no-getcontext.diff: new, don’t use getcontext(2)
+    on m68k because it’s not implemented there (Closes: #624833)
+
+ -- Thorsten Glaser <tg at mirbsd.de>  Sat, 07 May 2011 14:22:20 +0000
+
 libgc (1:7.1-7) unstable; urgency=low
 
   * Add ppc64 symbol file (Closes: #615469)
diff -Nru libgc-7.1/debian/patches/06-m68k-no-getcontext.diff libgc-7.1/debian/patches/06-m68k-no-getcontext.diff
--- libgc-7.1/debian/patches/06-m68k-no-getcontext.diff	1970-01-01 00:00:00.000000000 +0000
+++ libgc-7.1/debian/patches/06-m68k-no-getcontext.diff	2011-05-07 14:21:54.000000000 +0000
@@ -0,0 +1,13 @@
+Index: libgc-7.1/mach_dep.c
+===================================================================
+--- libgc-7.1.orig/mach_dep.c	2011-05-07 14:21:31.000000000 +0000
++++ libgc-7.1/mach_dep.c	2011-05-07 14:21:44.000000000 +0000
+@@ -175,7 +175,7 @@
+ #   if defined(HAVE_PUSH_REGS)
+       GC_push_regs();
+ #   elif defined(UNIX_LIKE) && !defined(DARWIN) && !defined(ARM32) && \
+-	 !defined(HURD) && !defined(AVR32)
++	 !defined(HURD) && !defined(AVR32) && !defined(M68K)
+       /* Older versions of Darwin seem to lack getcontext(). */
+       /* ARM Linux often doesn't support a real getcontext(). */
+       ucontext_t ctxt;
diff -Nru libgc-7.1/debian/patches/series libgc-7.1/debian/patches/series
--- libgc-7.1/debian/patches/series	2011-03-02 12:48:24.000000000 +0000
+++ libgc-7.1/debian/patches/series	2011-05-07 14:21:24.000000000 +0000
@@ -3,3 +3,4 @@
 03-add-avr32-support.diff
 04-fix-sparc-ftbfs.diff
 
+06-m68k-no-getcontext.diff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgc_7.1-7_m68k.build.gz
Type: application/octet-stream
Size: 12402 bytes
Desc: 
Url : http://napali.hpl.hp.com/pipermail/gc/attachments/20110507/887600a8/libgc_7.1-7_m68k.build-0001.obj


More information about the Gc mailing list