|
@@ -1,6 +1,6 @@
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
-# This script scans $(HOST_DIR)/{,usr/}{bin,sbin} for all ELF files, and checks
|
|
|
+# This script scans $(HOST_DIR)/{bin,sbin} for all ELF files, and checks
|
|
|
# they have an RPATH to $(HOST_DIR)/{,usr/}lib if they need libraries from
|
|
|
# there.
|
|
|
|
|
@@ -26,7 +26,7 @@ main() {
|
|
|
printf "*** ERROR: package %s installs executables without proper RPATH:\n" "${pkg}"
|
|
|
fi
|
|
|
printf "*** %s\n" "${file}"
|
|
|
- done < <( find "${hostdir}"/{,usr/}{bin,sbin} -type f -exec file {} + 2>/dev/null \
|
|
|
+ done < <( find "${hostdir}"/{bin,sbin} -type f -exec file {} + 2>/dev/null \
|
|
|
|sed -r -e '/^([^:]+):.*\<ELF\>.*\<executable\>.*/!d' \
|
|
|
-e 's//\1/' \
|
|
|
)
|