From 26f976fbeaeb1db323e9d14ea401718c9e26acfd Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 27 Aug 2024 18:39:59 -0500 Subject: abuild: Error out on /lib/pkgconfig existence That should be /usr/lib/pkgconfig. There are already some packages being fixed in packages.git that suffer from this issue. --- abuild.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/abuild.in b/abuild.in index 13e9824..35ffaf5 100644 --- a/abuild.in +++ b/abuild.in @@ -678,6 +678,12 @@ postcheck() { find "$dir" -name '*.la' -type f -delete fi + # ensure .pc files are in /usr/lib not /lib + if [ -e "$dir"/lib/pkgconfig ]; then + error "Found /lib/pkgconfig - needs to be moved to /usr/lib" + return 1 + fi + # look for /usr/lib/charset.alias if [ -e "$dir"/usr/lib/charset.alias ] \ && ! options_has "charset.alias"; then -- cgit v1.2.3-70-g09d2