Gentoo Archives: gentoo-portage-dev

From: Fabian Groffen <grobian@g.o>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] [PATCH] 80libraries: add support for Darwin targets
Date: Mon, 25 Jul 2022 15:38:32
Message-Id: Yt648SGNR1K4Chhk@gentoo.org
1 bin/install-qa-check.d/80libraries: support Darwin/Mach-O objects
2
3 Check for dylib on Darwin, so on everything else.
4
5 Signed-off-by: Fabian Groffen <grobian@g.o>
6
7 diff --git a/bin/install-qa-check.d/80libraries b/bin/install-qa-check.d/80libraries
8 index 8dc35bb87..a477ec9cb 100644
9 --- a/bin/install-qa-check.d/80libraries
10 +++ b/bin/install-qa-check.d/80libraries
11 @@ -140,7 +140,9 @@ lib_check() {
12 local abort="no"
13 local a s
14 for a in "${ED%/}"/usr/lib*/*.a ; do
15 - s=${a%.a}.so
16 + [[ ${CHOST} == *-darwin* ]] \
17 + && s=${a%.a}.dylib \
18 + || s=${a%.a}.so
19 if [[ ! -e ${s} ]] ; then
20 s=${s%usr/*}${s##*/usr/}
21 if [[ -e ${s} ]] ; then
22
23 --
24 Fabian Groffen
25 Gentoo on a different level

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies