diff options
author | Ted Alff | 2019-06-02 21:46:03 -0400 |
---|---|---|
committer | Ted Alff | 2019-06-02 21:46:03 -0400 |
commit | f3f57d6a06cf5b96655e6e24abb37c7afb9bb5a7 (patch) | |
tree | e8cfaee92fd100a6077104080a763d445932202d /xfconf-warn.sh | |
parent | 723c3703e2d572672f0f2665b870af73e975f459 (diff) | |
download | aur-f3f57d6a06cf5b96655e6e24abb37c7afb9bb5a7.tar.gz |
Move library incompatibility checks to a pacman hook
Diffstat (limited to 'xfconf-warn.sh')
-rwxr-xr-x | xfconf-warn.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/xfconf-warn.sh b/xfconf-warn.sh new file mode 100755 index 000000000000..07b5e597aae3 --- /dev/null +++ b/xfconf-warn.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +printf "$(tput setaf 1)$(tput bold) ==> WARNING: $(tput sgr0)" +echo "List of packages which are linked against legacy xfconf (4.12.x)" +echo "Please rebuild manually." +echo "pacman -Sb <package>" +pkgs=( $( echo "`pacman -Qoq /usr/include/xfce4` `pacman -Qoq /usr/lib/xfce4`" | grep -v xfconf-devel | sort -u ) ) +for pkg in ${pkgs[@]} ; do + mapfile -t files < <(pacman -Qlq $pkg | grep -v /$) + grep -Fq 'libxfconf-0.so.2' "${files[@]}" <&- 2>/dev/null && echo " >> $pkg" +done |