mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-24 16:10:05 -07:00
kiss: Drop hardcoded musl reference.
This replaces the package based exemption with one based on C and POSIX shared library names, removing the hardcoded reference to musl and adding support for more C libraries. This needs testing with non-musl systems. Specifically, the dependency fixer which runs post-build in 'kiss build' should /not/ display anything related to your C library. If it does, please open an issue.
This commit is contained in:
parent
e18826eaf8
commit
554940cd7b
9
kiss
9
kiss
@ -448,6 +448,13 @@ pkg_fixdeps() {
|
||||
# Resolve path symlinks to find the real location to the library.
|
||||
cd -P "${dep%/*}" 2>/dev/null || continue
|
||||
|
||||
# Skip files owned by libc and POSIX.
|
||||
case ${dep##*/} in
|
||||
"" | ld-* | libpthread.so* | lib[cm].so* | libdl.so* |\
|
||||
librt.so* | libtrace.so* | libxnet.so*)
|
||||
continue
|
||||
esac
|
||||
|
||||
# Figure out which package owns the file.
|
||||
dep=$(grep -lFx "${PWD#"$KISS_ROOT"}/${dep##*/}" "$@")
|
||||
dep=${dep%/*} dep=${dep##*/}
|
||||
@ -456,7 +463,7 @@ pkg_fixdeps() {
|
||||
# Skip listing these packages as dependencies.
|
||||
# The pkg_name portions are to workaround incorrect detections
|
||||
# from -bin or -esr packages.
|
||||
""|musl|gcc|llvm|"${pkg_name%%-bin}"|\
|
||||
""|gcc|llvm|"${pkg_name%%-bin}"|\
|
||||
"${pkg_name%%-esr}"|"${pkg_name%%-esr-bin}") ;;
|
||||
|
||||
*) printf '%s\n' "$dep"
|
||||
|
Loading…
Reference in New Issue
Block a user