|
From: | sguelton at redhat dot com |
Subject: | [Bug ld/26626] Provide a hook to customize missing library error handling |
Date: | Mon, 12 Oct 2020 19:35:23 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26626 --- Comment #9 from sguelton at redhat dot com --- Something like that maybe (on good ol' RHEL7)? ``` #!/usr/bin/bash if [ "x$1" != xmissing-lib ] then # silently error exit 1 fi lib="$2" pkgs=$(yum provides "*/lib$lib.so" 2>/dev/null | awk "/$(rpm -E %{_arch}) :/ {print\$1;}") if [ "x$pkgs" != x ] then printf "Consider installing one of the following package:\n\n$pkgs\n" fi ``` -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |