midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

b8dc4b - Followup to last commit.

Authored and Committed by Lucio Andrés Illanes Albornoz (arab, vxp) 8 years ago
    - Followup to last commit.
    - Fixed bzip2 and musl (libc) installation wrt. $PREFIX_LVL/bin/{bz*,ldd}
      symlinks (reported by avih.)
    
        
file modified
+2 -0
006.musl.full.build CHANGED
@@ -54,6 +54,8 @@ fi;
54
54
if ! is_build_script_done build; then
55
55
./lazy -e ${_install} \
56
56
-x build;
57
+ [ "${3}" = native ] && \
58
+ ln -sf ../lib/libc.so ${PREFIX_LVL}/bin/ldd;
57
59
set_build_script_done build finish;
58
60
fi;
59
61
file added
+15
300.bzip2.vars ADDED
@@ -0,0 +1,15 @@
1
+ #
2
+ # . ./build.vars and set -o errexit are assumed.
3
+ #
4
+
5
+ pkg_bzip2_install_post() {
6
+ set -- bzcmp bzegrep bzfgrep bzless;
7
+ while [ ${#} -gt 0 ]; do
8
+ [ -f ${PKG_PREFIX}/bin/${1} ] &&\
9
+ ln -sf $(basename $(readlink ${PKG_PREFIX}/bin/${1}))\
10
+ ${PKG_PREFIX}/bin/${1};
11
+ shift;
12
+ done;
13
+ };
14
+
15
+ # vim:filetype=sh
file modified
+1 -1
build.sh CHANGED
@@ -26,10 +26,10 @@ esac; shift; done;
26
26
clear_env_with_except ${CLEAR_ENV_VARS_EXCEPT};
27
27
check_path_vars ${CHECK_PATH_VARS}; check_prereqs ${PREREQ_CMDS};
28
28
mkdir -p ${PREFIX} ${PREFIX_NATIVE} ${PREFIX_TARGET} ${WORKDIR};
29
+ update_build_status build_start; build_times_init;
29
30
trap clean_build_status HUP INT TERM USR1 USR2;
30
31
31
32
{(
32
- update_build_status build_start; build_times_init;
33
33
log_msg info "Build started by ${BUILD_USER:=${USER}}@${BUILD_HNAME:=$(hostname)} at ${BUILD_DATE_START}.";
34
34
log_env_vars ${LOG_ENV_VARS}; [ ${ARG_CLEAN:-0} -eq 1 ] && clean_prefix;
35
35
BUILD_NFINI=${BUILD_NSKIP:=${BUILD_NFAIL:=${BUILD_NBUILT:=0}}};
file modified
+7 -3
build.subr CHANGED
@@ -45,7 +45,7 @@ clean_prefix() {
45
45
clean_build_status() {
46
46
set -- BUILD_STATUS_IN_PROGRESS_FNAME BUILD_STATUS_PROGRESS_FNAME BUILD_STATUS_TARBALL_PROGRESS_FNAME;
47
47
while [ ${#} -gt 0 ]; do
48
- rm -f ${1}; shift;
48
+ rm -f $(get_var_unsafe ${1}); shift;
49
49
done; touch ${PREFIX}/BUILD_ABORTED_AT_$(date %Y-%m-%d-%H-%M-%S);
50
50
log_msg fail "Build aborted at $(date %Y-%m-%d-%H-%M-%S).";
51
51
};
@@ -306,8 +306,12 @@ update_build_status() {
306
306
touch ${BUILD_STATUS_PROGRESS_FNAME:=${PREFIX}/BUILD_STARTED_AT_${BUILD_DATE_START:=$(date %Y-%m-%d-%H-%M-%S)}};
307
307
;;
308
308
build_finish)
309
- [ -f ${BUILD_STATUS_PROGRESS_FNAME} ] &&\
310
- rm -f ${BUILD_STATUS_PROGRESS_FNAME};
309
+ if [ -f ${BUILD_STATUS_PROGRESS_FNAME} ]; then
310
+ _ubs_bsp_fname=${BUILD_STATUS_PROGRESS_FNAME};
311
+ unset BUILD_STATUS_PROGRESS_FNAME;
312
+ rm -f ${_ubs_bsp_fname};
313
+ unset _ubs_bsp_fname;
314
+ fi;
311
315
touch ${BUILD_STATUS_FINISHED_AT_FNAME:=${PREFIX}/BUILD_FINISHED_AT_$(date ${TIMESTAMP_FMT_STATUS_FILES})};
312
316
rotate_files BUILD_FINISHED_AT_\* 8;
313
317
ln -sf ${BUILD_STATUS_FINISHED_AT_FNAME}\