abuild: allow packages to install under run

I have some vauge memory that it is conveinent for Docker users that the
state dir under /run exists.

Allow this for alpine 3.20 and revisit later.
This commit is contained in:
Natanael Copa 2024-04-20 08:16:55 +02:00
parent eeca95d195
commit c48f8498e7
1 changed files with 1 additions and 1 deletions

View File

@ -782,7 +782,7 @@ postcheck() {
msg "Running postcheck for $name"
# checking for FHS compat
if ! options_has "!fhs"; then
for i in srv usr/local opt run var/run tmp var/tmp var/lock var/empty home sys proc mnt dev; do
for i in srv usr/local opt var/run tmp var/tmp var/lock var/empty home sys proc mnt dev; do
for j in "$dir"/"$i"/* "$dir"/"$i"/.[!.]* "$dir"/"$i"/..?*; do
if [ -L "$j" ] || [ -e "$j" ]; then
error "Packages must not put anything under /$i"