dev-lang/zig-bin: add notes regarding standard library and patches

Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/26999
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Eric Joldasov
2022-08-25 10:20:54 +06:00
committed by Sam James
parent 8ca3ca21d4
commit 6b9fe8c781

View File

@@ -19,6 +19,11 @@ RDEPEND="!dev-lang/zig"
SRC_URI+=" https://codeberg.org/BratishkaErik/distfiles/media/branch/master/zig-0.9.1-fix-detecting-abi.patch"
# Zig provides its standard library in source form "/opt/zig-bin-{PV}/lib/",
# and all other Zig libraries are meant to be consumed in source form,
# because they can use compile-time mechanics (and it is easier for distributions to patch them)
# Here we use this feature for fixing programs that use standard library
# Note: Zig build system is also part of standard library, so we can fix it too
PATCHES=(
"${FILESDIR}/${P}-fix-bad-hostname-segfault.patch"
"${DISTDIR}/zig-0.9.1-fix-detecting-abi.patch"