commit: b1589285ccdda25dd0a9b7c058484ca031e0c45f Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Thu Jan 30 11:52:55 2025 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Thu Jan 30 17:44:08 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1589285
dev-lang/crystal: do not link against prebuilt libgc https://github.com/crystal-lang/crystal/issues/12035#issuecomment-2522606612 https://github.com/crystal-lang/distribution-scripts/tree/master/linux#linux-x86_64-static-build > The x86_64 crystal build is built inside an alpine linux container as a > statically linked binary using musl libc. libgc is built on debian to make > it work on glibc. Bug: https://bugs.gentoo.org/931100 Bug: https://bugs.gentoo.org/929123 Bug: https://bugs.gentoo.org/929989 Signed-off-by: Alfred Wingate <parona <AT> protonmail.com> Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> .../crystal/{crystal-1.15.0.ebuild => crystal-1.15.0-r1.ebuild} | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dev-lang/crystal/crystal-1.15.0.ebuild b/dev-lang/crystal/crystal-1.15.0-r1.ebuild similarity index 89% rename from dev-lang/crystal/crystal-1.15.0.ebuild rename to dev-lang/crystal/crystal-1.15.0-r1.ebuild index 4ceb85f7e207..18e05915d1a8 100644 --- a/dev-lang/crystal/crystal-1.15.0.ebuild +++ b/dev-lang/crystal/crystal-1.15.0-r1.ebuild @@ -55,6 +55,15 @@ PATCHES=( "${FILESDIR}/${PN}-0.27.0-gentoo-tests-long-unix-2.patch" ) +src_prepare() { + default + + # Link against system boehm-gc instead of upstream prebuilt static library + # bug #929123, #929989 and #931100 + # https://github.com/crystal-lang/crystal/issues/12035#issuecomment-2522606612 + rm "${WORKDIR}/crystal-${BV}"/lib/crystal/libgc.a || die +} + src_configure() { local bootstrap_path="${WORKDIR}/${PN}-${BV}/bin" if [[ ! -d "${bootstrap_path}" ]] ; then
