The Samba-Bugzilla – Attachment 8907 Details for
Bug 9888
Use generic check for OpenBSD platform.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cherry-pick for 4.0
0001-More-generic-check-for-OpenBSD-platform.patch (text/plain), 3.06 KB, created by
Björn Jacke
on 2013-05-21 14:51:34 UTC
(
hide
)
Description:
cherry-pick for 4.0
Filename:
MIME Type:
Creator:
Björn Jacke
Created:
2013-05-21 14:51:34 UTC
Size:
3.06 KB
patch
obsolete
>From b5b407a3e23ead30c745e9c8c8cd52abf8627065 Mon Sep 17 00:00:00 2001 >From: Vadim Zhukov <persgray@gmail.com> >Date: Fri, 17 May 2013 12:43:08 +0400 >Subject: [PATCH] More generic check for OpenBSD platform >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >OpenBSD versioning is different from many other >projects, and, say, 5.0 does not differ from 4.9 more than from 5.1. So the >right approach will be to check that platform name starts with "openbsd" >instead. This is also the thing OpenBSD developers do when patching other >software, so this patch is consistent with already existing practicies. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=9888 > >Reviewed-by: Lars Müller <lars@samba.org> >Reviewed-by: Björn Jacke <bj@sernet.de> > >Autobuild-User(master): Björn Jacke <bj@sernet.de> >Autobuild-Date(master): Fri May 17 17:58:16 CEST 2013 on sn-devel-104 >(cherry picked from commit 2fda6c47f4aa46dbb42028732207a94821881c67) >--- > buildtools/wafsamba/samba_autoconf.py | 4 ++-- > lib/ldb/wscript | 2 +- > wscript | 2 +- > 3 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py >index 65c66f3..fe110bd 100644 >--- a/buildtools/wafsamba/samba_autoconf.py >+++ b/buildtools/wafsamba/samba_autoconf.py >@@ -776,9 +776,9 @@ def SETUP_CONFIGURE_CACHE(conf, enable): > def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(conf): > # we don't want any libraries or modules to rely on runtime > # resolution of symbols >- if sys.platform != "openbsd4" and sys.platform != "openbsd5": >+ if not sys.platform.startswith("openbsd"): > conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True) > >- if sys.platform != "openbsd4" and sys.platform != "openbsd5" and conf.env.undefined_ignore_ldflags == []: >+ if not sys.platform.startswith("openbsd") and conf.env.undefined_ignore_ldflags == []: > if conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup']): > conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup'] >diff --git a/lib/ldb/wscript b/lib/ldb/wscript >index 1ae5438..983d5a2 100755 >--- a/lib/ldb/wscript >+++ b/lib/ldb/wscript >@@ -64,7 +64,7 @@ def configure(conf): > > # we don't want any libraries or modules to rely on runtime > # resolution of symbols >- if sys.platform != "openbsd4" and sys.platform != "openbsd5": >+ if not sys.platform.startswith("openbsd"): > conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True) > > conf.DEFINE('HAVE_CONFIG_H', 1, add_to_cflags=True) >diff --git a/wscript b/wscript >index de518ac..645deb2 100644 >--- a/wscript >+++ b/wscript >@@ -148,7 +148,7 @@ def configure(conf): > # allows us to find problems on our development hosts faster. > # It also results in faster load time. > >- if sys.platform != "openbsd4": >+ if not sys.platform.startswith("openbsd"): > conf.env.asneeded_ldflags = conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True) > > if not conf.CHECK_NEED_LC("-lc not needed"): >-- >1.8.2.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
lars
:
review+
Actions:
View
Attachments on
bug 9888
:
8890
|
8895
|
8896
|
8899
| 8907