dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Engestrom <eric.engestrom@imgtec.com>
To: Jonathan Gray <jsg@jsg.id.au>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH libdrm] configure.ac: pthread-stubs not present on OpenBSD
Date: Tue, 20 Feb 2018 10:21:38 +0000	[thread overview]
Message-ID: <20180220102138.26ldb5agy6zpbcj3@imgtec.com> (raw)
In-Reply-To: <20180220060914.90400-1-jsg@jsg.id.au>

On Tuesday, 2018-02-20 17:09:14 +1100, Jonathan Gray wrote:
> pthread-stubs is no longer required on OpenBSD and has been removed.
> libpthread parts involved moved to libc.

Great news!
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>

Note that meson needs the same change:
----8<----
diff --git a/meson.build b/meson.build
index d600a906948c0e680885..bd00cdc2cae9f0749180 100644
--- a/meson.build
+++ b/meson.build
@@ -35,8 +35,7 @@ with_install_tests = get_option('install-test-programs')
 
 config = configuration_data()
 
-# TODO: openbsd is guess, the others are correct
-if ['freebsd', 'dragonfly', 'netbsd', 'openbsd'].contains(host_machine.system())
+if ['freebsd', 'dragonfly', 'netbsd'].contains(host_machine.system())
   dep_pthread_stubs = dependency('pthread-stubs', version : '>= 0.4')
 else
   dep_pthread_stubs = []
---->8----

Do you have commit access, or do you want me to push this for you?
No need to send a v2, I'll add the meson bit when I push it, or you can
add it if you push it yourself.

> 
> Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
> ---
>  configure.ac | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 35378b33..d024fcd8 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -65,10 +65,10 @@ AC_CHECK_HEADERS([sys/sysctl.h sys/select.h])
>  LT_PREREQ([2.2])
>  LT_INIT([disable-static])
>  
> -dnl pthread-stubs is mandatory on BSD platforms, due to the nature of the
> +dnl pthread-stubs is mandatory on some BSD platforms, due to the nature of the
>  dnl project. Even then there's a notable issue as described in the project README
>  case "$host_os" in
> -linux* | cygwin* | darwin* | solaris* | *-gnu* | gnu*)
> +linux* | cygwin* | darwin* | solaris* | *-gnu* | gnu* | openbsd*)
>      pthread_stubs_possible="no"
>      ;;
>  * )
> -- 
> 2.16.0
> 
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2018-02-20 10:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-20  6:09 [PATCH libdrm] configure.ac: pthread-stubs not present on OpenBSD Jonathan Gray
2018-02-20 10:21 ` Eric Engestrom [this message]
2018-02-20 11:23   ` Jonathan Gray
2018-02-20 12:18     ` Eric Engestrom
2018-02-20 13:14       ` Jonathan Gray
2018-02-20 15:02   ` Emil Velikov
2018-02-20 15:12     ` Eric Engestrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180220102138.26ldb5agy6zpbcj3@imgtec.com \
    --to=eric.engestrom@imgtec.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jsg@jsg.id.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox