samba4: fix build on macos
authorSergey V. Lobanov <sergey@lobanov.in>
Tue, 15 Feb 2022 23:48:08 +0000 (02:48 +0300)
committerRosen Penev <rosenp@gmail.com>
Sun, 22 May 2022 20:40:48 +0000 (13:40 -0700)
commit510d44d988282abef81011b7281591b1bca88c90
treed393c1c6c729f6c5846e727902a5c36f9d8b793b
parentd0cd7eb5bf704cb8e314214f462c79d8f5b08632
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>
net/samba4/Makefile
net/samba4/patches/030_wafsamba-replace-echo-n-with-printf.patch [new file with mode: 0644]