mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-02 02:42:22 +08:00

* samba4: add riscv64 support Required for sifiveu target. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> * samba4: update waf-cross-answers * update waf-cross-answers for 4.14.x Signed-off-by: Andrew Sim <andrewsimz@gmail.com> * samba4: fix build on macos This commit fixes two issues on macos: 1. Added a patch to fix 'echo -n' issue with MacOS shell (backported from upstream) 2. Redefined sys.platform='linux' for target build if build host is MacOS (otherwise, build script tries to use MacOS logic for OpenWrt(Linux) target build) Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in> * samba4: update to 4.14.14 * update to 4.14.14 * fixes: CVE-2022-2031, CVE-2022-32744, CVE-2022-32745, CVE-2022-32746, CVE-2022-32742 Signed-off-by: Andrew Sim <andrewsimz@gmail.com> Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> Signed-off-by: Andrew Sim <andrewsimz@gmail.com> Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in> Co-authored-by: Zoltan HERPAI <wigyori@uid0.hu> Co-authored-by: Andrew Sim <andrewsimz@gmail.com> Co-authored-by: Sergey V. Lobanov <sergey@lobanov.in>
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
From: https://gitlab.com/samba-team/samba/-/commit/29f11005f56ebc2202e7883ea4d9ca7e7a46d9bb
|
|
|
|
From 29f11005f56ebc2202e7883ea4d9ca7e7a46d9bb Mon Sep 17 00:00:00 2001
|
|
From: "Sergey V. Lobanov" <sergey@lobanov.in>
|
|
Date: Thu, 10 Feb 2022 00:02:17 +0300
|
|
Subject: [PATCH] wafsamba: replace 'echo -n' with printf
|
|
|
|
This patch makes samba_cross.py compatible with old bash (e.g. 3.2)
|
|
|
|
Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
|
|
Reviewed-by: Christof Schmitt <cs@samba.org>
|
|
Reviewed-by: Andreas Schneider <asn@samba.org>
|
|
|
|
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
|
|
Autobuild-Date(master): Fri Feb 11 07:58:57 UTC 2022 on sn-devel-184
|
|
---
|
|
buildtools/wafsamba/samba_cross.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/buildtools/wafsamba/samba_cross.py
|
|
+++ b/buildtools/wafsamba/samba_cross.py
|
|
@@ -134,7 +134,7 @@ class cross_Popen(Utils.subprocess.Popen
|
|
cross_answers_incomplete = True
|
|
add_answer(ca_file, msg, ans)
|
|
(retcode, retstring) = ans
|
|
- args = ['/bin/sh', '-c', "echo -n '%s'; exit %d" % (retstring, retcode)]
|
|
+ args = ['/bin/sh', '-c', "printf %%s '%s'; exit %d" % (retstring, retcode)]
|
|
real_Popen.__init__(*(obj, args), **kw)
|
|
|
|
|