commit:     6b9fe8c78153a1122285cc9213f9a80cd751bc89
Author:     Eric Joldasov <bratishkaerik <AT> getgoogleoff <DOT> me>
AuthorDate: Thu Aug 25 04:20:54 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep 11 18:13:23 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b9fe8c7

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

Signed-off-by: Eric Joldasov <bratishkaerik <AT> getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/26999
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-lang/zig-bin/zig-bin-0.9.1-r1.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dev-lang/zig-bin/zig-bin-0.9.1-r1.ebuild 
b/dev-lang/zig-bin/zig-bin-0.9.1-r1.ebuild
index 9ed2987939d1..b731f0d2c5d7 100644
--- a/dev-lang/zig-bin/zig-bin-0.9.1-r1.ebuild
+++ b/dev-lang/zig-bin/zig-bin-0.9.1-r1.ebuild
@@ -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"

Reply via email to