swupdate: add upstream patch to fix musl build issue
authorJörg Krause <joerg.krause@embedded.rocks>
Thu, 18 Jan 2018 12:51:21 +0000 (13:51 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 18 Jan 2018 21:11:48 +0000 (22:11 +0100)
commit34a075bdd2bc7ba95c00f869f799d5fbf3bf2bb4
tree0487f04b8cae316e54d5614f158a7b91e3ea54eb
parentd2e29fccdffbbd9e9a0a9749d91e368a2b091910
swupdate: add upstream patch to fix musl build issue

Add upstream patch to fix build issue with the musl C library, as musl
does not provide the GNU extension `strndupa()` breaking the build with
an undefined reference:

```
ipc/lib.a(network_ipc.o): In function `ipc_postupdate':
network_ipc.c:(.text.ipc_postupdate+0x39): undefined reference to `strndupa'
```

The upstream patch provides a compatibility header file adding a definition
of `strndupa` if it is not already defined.

Backported from:
https://github.com/sbabic/swupdate/commit/9867a9d6a21e6b0b9bcba57c3e2398fe671cea17

Fixes:
http://autobuild.buildroot.net/results/f674219225d0b67d0bc78fd10b47a865250746f4/
http://autobuild.buildroot.net/results/d2b0cfcfec583d203af1b26152f14ded3ebd3eee/
http://autobuild.buildroot.net/results/1d0cbd1eb9b1b70bd9f4d1c4fae431baee9d105c/

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/swupdate/0001-compat.h-introduce-compatibility-header.patch [new file with mode: 0644]