diff options
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 28 |
1 files changed, 8 insertions, 20 deletions
@@ -493,24 +493,6 @@ 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 clean() { msg "Cleaning temporary build dirs..." @@ -589,6 +571,13 @@ mkusers() { 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() { local part=$1 @@ -1205,8 +1194,7 @@ build_abuildrepo() { if ! apk_up2date || [ -n "$force" ]; then logcmd "building $pkgname" sanitycheck && builddeps && clean && fetch && unpack \ - && post_unpack && prepare && mkusers && $_build \ - && rootpkg \ + && prepare && mkusers && $_build && rootpkg \ || return 1 fi update_abuildrepo_index |