#!/bin/sh # Output suitable for LD_LIBRARY_MASK="..." in /etc/findbrokenpkgs/arch.conf # Needs LD_LIBRARY_MASK="" in said file to collect state of all missing libraries # findbrokenpkgs -nc -nw 2>&1 | \ awk ' BEGIN { FS="needs missing" } / needs missing / { split($2,a," ") for (l in a) arr[a[l]]=1 } END { x=0 for (l in arr) { if (x==1) printf " %s",l else { x=1 printf "%s",l } } printf "\n" } ' | \ xargs -n1 | sort -u | xargs