Redirect stderr to a file in ${wrksrc} for run_func().

So that you can use 'set -x' in a template and see the output.

--HG--
extra : convert_revision : 7b3225b2ed3f1fab410c43af12f5d5f66f8504d7
This commit is contained in:
Juan RP 2010-04-29 16:04:09 +02:00
parent c05b8185be
commit 6baa28a6e3
3 changed files with 24 additions and 12 deletions

View file

@ -58,7 +58,8 @@ configure_src_phase()
cd $wrksrc || msg_error "unexistent build directory [$wrksrc]."
# Run pre_configure func.
run_func pre_configure 2>/dev/null || msg_error "pre_configure stage failed!"
run_func pre_configure 2>${wrksrc}/.xbps_pre_configure.log \
|| msg_error "pre_configure stage failed!"
# Export configure_env vars.
for f in ${configure_env}; do
@ -114,7 +115,8 @@ configure_src_phase()
fi
# Run post_configure func.
run_func post_configure 2>/dev/null || msg_error "post_configure stage failed!"
run_func post_configure 2>${wrksrc}/.xbps_post_configure.log \
|| msg_error "post_configure stage failed!"
# unset configure_env vars.
for f in ${configure_env}; do