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