]> git.ipfire.org Git - people/stevee/pakfire.git/blob - tools/quality-agent.d/050-libs-x86_64
Cleanup database and add indexes.
[people/stevee/pakfire.git] / tools / quality-agent.d / 050-libs-x86_64
1 #!/bin/bash
2
3 . $(dirname ${0})/qa-include
4
5 DESC="Shared libs in /lib or /usr/lib are not allowed."
6
7 check() {
8 local failed=0
9
10 # Do nothing on other platforms.
11 [ "$(uname -m)" = "x86_64" ] || return ${failed}
12
13 local file
14 for file in $(find ${BUILDROOT}/lib ${BUILDROOT}/usr/lib -maxdepth 1 -name "*.so*" 2>/dev/null); do
15 file_is_elf ${file} >/dev/null 2>&1 || continue
16
17 log_error " Unallowed location for library: ${file}"
18 failed=1
19 done
20
21 return ${failed}
22 }
23
24 run