mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-03 07:21:45 -09:00
Since the commit [1] the janet package started failing on the autobuilder when using musl libc: ``` [50/56] Compiling C object libjanet.so.1.35.2.p/meson-generated_.._janet.c.o FAILED: libjanet.so.1.35.2.p/meson-generated_.._janet.c.o /workdir/instance-0/output-1/host/bin/armeb-buildroot-linux-musleabi-gcc -Ilibjanet.so.1.35.2.p -I. -I.. -I../src/include -fdiagnostics-color=always -Wall -Winvalid-pch -std=c99 -O3 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O1 -g3 -fPIC -pthread -fvisibility=hidden -MD -MQ libjanet.so.1.35.2.p/meson-generated_.._janet.c.o -MF libjanet.so.1.35.2.p/meson-generated_.._janet.c.o.d -o libjanet.so.1.35.2.p/meson-generated_.._janet.c.o -c janet.c src/core/util.c: In function 'janet_strerror': src/core/util.c:977:12: error: returning 'int' from a function with return type 'const char *' makes pointer from integer without a cast [-Wint-conversion] [51/56] Compiling C object janet-native.p/meson-generated_.._janet.c.o ``` The commit [2] introduced the issue in v1.35.0, the `strerror` function has different definition on glibc compared to musl. This issue has been addressed in commit [3]. This patch add the upstream commit [3]. [1]31212c4c58package/janet: bump to version 1.35.2 [2]8334504f4e[3]a5d6b22838Fixes: https://autobuild.buildroot.org/results/ff1/ff1d6063c1a79d17cfa9910cca824e704a4a0c67/build-end.log Signed-off-by: Thomas Perale <thomas.perale@mind.be> Signed-off-by: Romain Naour <romain.naour@smile.fr> (cherry picked from commit92a244ba8b) Signed-off-by: Thomas Perale <thomas.perale@mind.be>