mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-11 09:19:40 +00:00
abuild: remove post_unpack
instead, provide 'update_config_sub' and let aports that needs replace config.sub call it.
This commit is contained in:
parent
8112d2422a
commit
cbee419616
28
abuild.in
28
abuild.in
@ -493,24 +493,6 @@ unpack() {
|
|||||||
default_unpack
|
default_unpack
|
||||||
}
|
}
|
||||||
|
|
||||||
default_post_unpack() {
|
|
||||||
local i
|
|
||||||
options_has "!configsub" && return 0
|
|
||||||
for i in "$srcdir"/*/configure; do
|
|
||||||
[ -x "$i" ] || continue
|
|
||||||
find "${i%/configure}" -name config.sub -o -name config.guess \
|
|
||||||
| while read f; do
|
|
||||||
msg "Replacing ${f##*/}"
|
|
||||||
cp "$datadir"/${f##*/} "$f" || return 1
|
|
||||||
done
|
|
||||||
break
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
post_unpack() {
|
|
||||||
default_post_unpack
|
|
||||||
}
|
|
||||||
|
|
||||||
# cleanup source and package dir
|
# cleanup source and package dir
|
||||||
clean() {
|
clean() {
|
||||||
msg "Cleaning temporary build dirs..."
|
msg "Cleaning temporary build dirs..."
|
||||||
@ -589,6 +571,13 @@ mkusers() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# helper to update config.sub to a recent version
|
||||||
|
update_config_sub() {
|
||||||
|
find . -name config.sub | while read f; do
|
||||||
|
msg "Replacing ${f##*/}"
|
||||||
|
cp "$datadir"/${f##*/} "$f" || return 1
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
runpart() {
|
runpart() {
|
||||||
local part=$1
|
local part=$1
|
||||||
@ -1205,8 +1194,7 @@ build_abuildrepo() {
|
|||||||
if ! apk_up2date || [ -n "$force" ]; then
|
if ! apk_up2date || [ -n "$force" ]; then
|
||||||
logcmd "building $pkgname"
|
logcmd "building $pkgname"
|
||||||
sanitycheck && builddeps && clean && fetch && unpack \
|
sanitycheck && builddeps && clean && fetch && unpack \
|
||||||
&& post_unpack && prepare && mkusers && $_build \
|
&& prepare && mkusers && $_build && rootpkg \
|
||||||
&& rootpkg \
|
|
||||||
|| return 1
|
|| return 1
|
||||||
fi
|
fi
|
||||||
update_abuildrepo_index
|
update_abuildrepo_index
|
||||||
|
Loading…
Reference in New Issue
Block a user