unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#25921: pkgsrc patches: Dragonfly support
@ 2017-03-01 20:27 Thomas Klausner
  2017-03-14 11:27 ` Andy Wingo
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Klausner @ 2017-03-01 20:27 UTC (permalink / raw)
  To: 25921; +Cc: Greg Troxel

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

Hi!

We have a couple of patches in pkgsrc for guile which I'd like to see
merged.

The attached ones are for supporting DragonFly
(https://www.dragonflybsd.org/) better.

Can you please merge them?
 Thomas

[-- Attachment #2: patch-lib_signal.in.h --]
[-- Type: text/plain, Size: 507 bytes --]

$NetBSD: patch-lib_signal.in.h,v 1.1 2016/12/03 03:15:33 marino Exp $

DragonFly support.

--- lib/signal.in.h.orig	2016-06-29 09:12:27 UTC
+++ lib/signal.in.h
@@ -61,6 +61,7 @@
 #if (@GNULIB_PTHREAD_SIGMASK@ || defined GNULIB_POSIXCHECK) \
     && ((defined __APPLE__ && defined __MACH__) \
         || defined __FreeBSD__ || defined __OpenBSD__ || defined __osf__ \
+        || defined __DragonFly__ \
         || defined __sun || defined __ANDROID__) \
     && ! defined __GLIBC__
 # include <pthread.h>

[-- Attachment #3: patch-libguile_threads.c --]
[-- Type: text/plain, Size: 449 bytes --]

$NetBSD: patch-libguile_threads.c,v 1.1 2016/12/03 03:15:33 marino Exp $

DragonFly support.

--- libguile/threads.c.orig	2016-06-20 20:35:06 UTC
+++ libguile/threads.c
@@ -2252,7 +2252,7 @@ scm_ia64_ar_bsp (const void *opaque)
   return (void *) ctx->uc_mcontext.sc_ar_bsp;
 }
 # endif /* linux */
-# ifdef __FreeBSD__
+# if defined __FreeBSD__ || defined __DragonFly__
 #  include <ucontext.h>
 void *
 scm_ia64_register_backing_store_base (void)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#25921: pkgsrc patches: Dragonfly support
  2017-03-01 20:27 bug#25921: pkgsrc patches: Dragonfly support Thomas Klausner
@ 2017-03-14 11:27 ` Andy Wingo
  2017-03-15 18:04   ` Thomas Klausner
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Wingo @ 2017-03-14 11:27 UTC (permalink / raw)
  To: Thomas Klausner; +Cc: 25921-done

On Wed 01 Mar 2017 21:27, Thomas Klausner <tk@giga.or.at> writes:

> $NetBSD: patch-lib_signal.in.h,v 1.1 2016/12/03 03:15:33 marino Exp $
>
> DragonFly support.
>
> --- lib/signal.in.h.orig	2016-06-29 09:12:27 UTC
> +++ lib/signal.in.h
> @@ -61,6 +61,7 @@
>  #if (@GNULIB_PTHREAD_SIGMASK@ || defined GNULIB_POSIXCHECK) \
>      && ((defined __APPLE__ && defined __MACH__) \
>          || defined __FreeBSD__ || defined __OpenBSD__ || defined __osf__ \
> +        || defined __DragonFly__ \
>          || defined __sun || defined __ANDROID__) \
>      && ! defined __GLIBC__
>  # include <pthread.h>
>

This file comes from gnulib.  Can you send this patch there?
bug-gnulib@gnu.org.  That way you will fix it once and reap the benefits
many places.

> $NetBSD: patch-libguile_threads.c,v 1.1 2016/12/03 03:15:33 marino Exp $
>
> DragonFly support.
>
> --- libguile/threads.c.orig	2016-06-20 20:35:06 UTC
> +++ libguile/threads.c
> @@ -2252,7 +2252,7 @@ scm_ia64_ar_bsp (const void *opaque)
>    return (void *) ctx->uc_mcontext.sc_ar_bsp;
>  }
>  # endif /* linux */
> -# ifdef __FreeBSD__
> +# if defined __FreeBSD__ || defined __DragonFly__
>  #  include <ucontext.h>
>  void *

This is for ia64 support which AFAIU DragonFly doesn't do; I think you
can drop this one.

Closing this one as I think there's nothing for me to do here.

Andy





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#25921: pkgsrc patches: Dragonfly support
  2017-03-14 11:27 ` Andy Wingo
@ 2017-03-15 18:04   ` Thomas Klausner
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Klausner @ 2017-03-15 18:04 UTC (permalink / raw)
  To: Andy Wingo; +Cc: 25921-done

On Tue, Mar 14, 2017 at 12:27:18PM +0100, Andy Wingo wrote:
> On Wed 01 Mar 2017 21:27, Thomas Klausner <tk@giga.or.at> writes:
> 
> > $NetBSD: patch-lib_signal.in.h,v 1.1 2016/12/03 03:15:33 marino Exp $
> >
> > DragonFly support.
> >
> > --- lib/signal.in.h.orig	2016-06-29 09:12:27 UTC
> > +++ lib/signal.in.h
> > @@ -61,6 +61,7 @@
> >  #if (@GNULIB_PTHREAD_SIGMASK@ || defined GNULIB_POSIXCHECK) \
> >      && ((defined __APPLE__ && defined __MACH__) \
> >          || defined __FreeBSD__ || defined __OpenBSD__ || defined __osf__ \
> > +        || defined __DragonFly__ \
> >          || defined __sun || defined __ANDROID__) \
> >      && ! defined __GLIBC__
> >  # include <pthread.h>
> >
> 
> This file comes from gnulib.  Can you send this patch there?
> bug-gnulib@gnu.org.  That way you will fix it once and reap the benefits
> many places.

I sent this upstream and learned that it's probably unnecessary, so
I've removed it from pkgsrc.

> > $NetBSD: patch-libguile_threads.c,v 1.1 2016/12/03 03:15:33 marino Exp $
> >
> > DragonFly support.
> >
> > --- libguile/threads.c.orig	2016-06-20 20:35:06 UTC
> > +++ libguile/threads.c
> > @@ -2252,7 +2252,7 @@ scm_ia64_ar_bsp (const void *opaque)
> >    return (void *) ctx->uc_mcontext.sc_ar_bsp;
> >  }
> >  # endif /* linux */
> > -# ifdef __FreeBSD__
> > +# if defined __FreeBSD__ || defined __DragonFly__
> >  #  include <ucontext.h>
> >  void *
> 
> This is for ia64 support which AFAIU DragonFly doesn't do; I think you
> can drop this one.

Ok, removed too.

Thanks for the feedback!
 Thomas





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-15 18:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-01 20:27 bug#25921: pkgsrc patches: Dragonfly support Thomas Klausner
2017-03-14 11:27 ` Andy Wingo
2017-03-15 18:04   ` Thomas Klausner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).