samba4: fix build on macos
authorSergey V. Lobanov <sergey@lobanov.in>
Tue, 15 Feb 2022 23:48:08 +0000 (02:48 +0300)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Wed, 20 Sep 2023 00:21:19 +0000 (02:21 +0200)
commit368188b05f871c9ad73bf29c87e68be3ee75a098
tree41ed9176e64dcf4b0f966a194d8fc0882a87ea50
parent0dab01d3988c81fff1e31068f5fab1b109cb8288
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>
(cherry picked from commit 510d44d988282abef81011b7281591b1bca88c90)
net/samba4/Makefile
net/samba4/patches/030_wafsamba-replace-echo-n-with-printf.patch [new file with mode: 0644]