mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 17:19:23 +00:00
samba: Fix warnings in configure tests for rpath checks
Add a patch to avoid implicit-function-declaration warnings, they will soon become errors with clang 15+ set path for privatelibdir Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
From 28ec4c9323e67cd114a0465015c9f3c2e64e6829 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 27 Aug 2022 13:05:26 -0700
|
||||
Subject: [PATCH] waf: Fix errors with Werror=implicit-function-declaration
|
||||
turned on
|
||||
|
||||
Clang-15 turns this option into errors by default, and it results in
|
||||
rpath check failures
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
buildtools/wafsamba/samba_waf18.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/buildtools/wafsamba/samba_waf18.py b/buildtools/wafsamba/samba_waf18.py
|
||||
index 7a0a08e..c0d2c3e 100644
|
||||
--- a/buildtools/wafsamba/samba_waf18.py
|
||||
+++ b/buildtools/wafsamba/samba_waf18.py
|
||||
@@ -209,7 +209,7 @@ def CHECK_LIBRARY_SUPPORT(conf, rpath=False, version_script=False, msg=None):
|
||||
lib_node.parent.mkdir()
|
||||
lib_node.write('int lib_func(void) { return 42; }\n', 'w')
|
||||
main_node = bld.srcnode.make_node('main.c')
|
||||
- main_node.write('int main(void) {return !(lib_func() == 42);}', 'w')
|
||||
+ main_node.write('int lib_func(void); int main(void) {return !(lib_func() == 42);}', 'w')
|
||||
linkflags = []
|
||||
if version_script:
|
||||
script = bld.srcnode.make_node('ldscript')
|
||||
--
|
||||
2.37.2
|
||||
|
||||
@@ -22,6 +22,7 @@ SRC_URI = "${SAMBA_MIRROR}/stable/samba-${PV}.tar.gz \
|
||||
file://0005-samba-build-dnsserver_common-code.patch \
|
||||
file://0001-Fix-pyext_PATTERN-for-cross-compilation.patch \
|
||||
file://0001-smbtorture-skip-test-case-tfork_cmd_send.patch \
|
||||
file://0001-waf-Fix-errors-with-Werror-implicit-function-declara.patch \
|
||||
"
|
||||
|
||||
SRC_URI:append:libc-musl = " \
|
||||
@@ -113,9 +114,11 @@ EXTRA_OECONF += "--enable-fhs \
|
||||
--with-piddir=/run \
|
||||
--with-sockets-dir=/run/samba \
|
||||
--with-modulesdir=${libdir}/samba \
|
||||
--with-privatelibdir=${libdir}/samba \
|
||||
--with-lockdir=${localstatedir}/lib/samba \
|
||||
--with-cachedir=${localstatedir}/lib/samba \
|
||||
--disable-rpath-install \
|
||||
--disable-rpath \
|
||||
--with-shared-modules=${SAMBA4_MODULES} \
|
||||
--bundled-libraries=${SAMBA4_LIBS} \
|
||||
${@oe.utils.conditional('TARGET_ARCH', 'x86_64', '', '--disable-glusterfs', d)} \
|
||||
|
||||
Reference in New Issue
Block a user