mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-26 08:52:16 +00:00
abuild: allow skip FHS check
some package (alpine-baselayout) needs to create /usr/local/bin etc.
This commit is contained in:
parent
cabbc874e6
commit
41e28f11ba
14
abuild.in
14
abuild.in
@ -548,12 +548,14 @@ postcheck() {
|
||||
local dir="$1" name="$2" i=
|
||||
msg "Running postcheck for $name"
|
||||
# checking for FHS compat
|
||||
for i in "$dir"/srv/* "$dir"/usr/local/* "$dir"/opt/*; do
|
||||
if [ -e "$i" ]; then
|
||||
error "Packages must not put anything under /srv, /usr/local or /opt"
|
||||
return 1
|
||||
fi
|
||||
done
|
||||
if ! options_has "!fhs"; then
|
||||
for i in "$dir"/srv/* "$dir"/usr/local/* "$dir"/opt/*; do
|
||||
if [ -e "$i" ]; then
|
||||
error "Packages must not put anything under /srv, /usr/local or /opt"
|
||||
return 1
|
||||
fi
|
||||
done
|
||||
fi
|
||||
# look for *.la files
|
||||
i=$(find "$dir" -name '*.la' | sed "s|^$dir|\t|")
|
||||
if [ -n "$i" ] && ! options_has "libtool"; then
|
||||
|
Loading…
Reference in New Issue
Block a user