summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2021-06-26 16:23:55 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-06-26 16:23:55 -0700
commit5bef2da6c6ceef1c7947571a7cea1bf79d94e9f2 (patch)
treed38c9d477f47b39edbd645ec594bf6db989e3bf3 /metadata
parentmetadata/install-qa-check.d: add virtual/libcrypt dep check (diff)
downloadgentoo-5bef2da6c6ceef1c7947571a7cea1bf79d94e9f2.tar.gz
gentoo-5bef2da6c6ceef1c7947571a7cea1bf79d94e9f2.tar.bz2
gentoo-5bef2da6c6ceef1c7947571a7cea1bf79d94e9f2.zip
metadata/install-qa-check.d: fix some issues with 60libcrypt-deps
Thanks-to: [Arfrever] Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'metadata')
-rw-r--r--metadata/install-qa-check.d/60libcrypt-deps15
1 files changed, 11 insertions, 4 deletions
diff --git a/metadata/install-qa-check.d/60libcrypt-deps b/metadata/install-qa-check.d/60libcrypt-deps
index a822ed8c4676..52220ba97344 100644
--- a/metadata/install-qa-check.d/60libcrypt-deps
+++ b/metadata/install-qa-check.d/60libcrypt-deps
@@ -8,9 +8,16 @@
libcrypt_check() {
if ! type -P scanelf >/dev/null || has binchecks ${PORTAGE_RESTRICT}; then
return
- fi
+ fi
+
+ # skip libcrypt.so providers
+ case "${CATEGORY}/${PN}" in
+ sys-libs/libxcrypt|sys-libs/glibc|sys-libs/musl|sys-libs/uclibc-ng)
+ return
+ ;;
+ esac
- if grep -q virtual/libcrypt <<<${RDEPEND}; then
+ if grep -q "virtual/libcrypt" <<<${RDEPEND}; then
# nothing to do here
return
fi
@@ -18,7 +25,7 @@ libcrypt_check() {
local libcrypt_consumers
# grep outputs newline separated list of files, so it's ok to skip specifying delimiter
IFS= mapfile libcrypt_consumers < <(find "${ED}" -type f -executable \
- -print0 | xargs -0 scanelf -qyRF '%F %n' | grep 'libcrypt.so' 2>/dev/null )
+ -print0 | xargs -0 scanelf -qyRF '%F %n' | grep 'libcrypt\.so' 2>/dev/null )
if [[ -n ${libcrypt_consumers[@]} ]]; then
eqawarn "Binary files linked to libcrypt.so found"
@@ -26,7 +33,7 @@ libcrypt_check() {
eqawarn
eqatag -v virtual-libcrypt.missing "${libcrypt_consumers[@]%% *}"
eqawarn
- eqawarn "Please add virtual/libcrypt dependency"
+ eqawarn "Please add virtual/libcrypt:= dependency"
eqawarn "Gentoo Bug: https://bugs.gentoo.org/699422"
fi