commit: 04b793a41bc866bbfa802654bb271348162184bb Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Wed Mar 13 18:46:54 2024 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Wed Mar 13 18:46:54 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04b793a4
dev-lang/gnat-gpl: no musl and fix strncmp Closes: https://bugs.gentoo.org/926307 Closes: https://bugs.gentoo.org/829178 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch | 4 ++-- profiles/features/musl/package.mask | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch b/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch index 6e26ad680043..681fd47262da 100644 --- a/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch +++ b/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch @@ -66,9 +66,9 @@ ac_cv_func_strncmp_works=yes else + cat >>confdefs.h <<_ACEOF -+ extern int strlen(const char *s); ++ extern long unsigned int strlen(const char *s); + extern char *strcpy(char *dst, const char *src); -+ extern int strncmp(const char *s1, const char *s2, size_t n); ++ extern int strncmp(const char *s1, const char *s2, long unsigned int n); +_ACEOF cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ diff --git a/profiles/features/musl/package.mask b/profiles/features/musl/package.mask index 90328a11703b..7ac418512f2d 100644 --- a/profiles/features/musl/package.mask +++ b/profiles/features/musl/package.mask @@ -1,6 +1,10 @@ # Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Alfredo Tupone <tup...@gentoo.org> (2024-03-13) +# To bootstrap uses an ada compiler built using glibc +dev-lang/gnat-gpl + # Sergey Popov <pinkb...@gentoo.org> (2024-03-05) # games-strategy/seven-kingdoms does not build on musl, # requires glibc-specific locale handling. (#923907)