7 |
|
|
8 |
source ${BUILDSERVER_LIB_DIR}/buildserver-functions.sh |
source ${BUILDSERVER_LIB_DIR}/buildserver-functions.sh |
9 |
|
|
10 |
ALL_ARCH_PACKAGES=( subversion openssh ) |
NON_SRC_ARCH_PACKAGES+=( "${BOOTSTRAP_DEVUTILS}" ) |
|
NON_SRC_ARCH_PACKAGES=( "${BOOTSTRAP_DEVUTILS}" ccache python scanelf ) |
|
11 |
|
|
12 |
# fallback |
# fallback |
13 |
if [[ -z ${MAGE_PROFILE} ]] |
if [[ -z ${MAGE_PROFILE} ]] |
24 |
# create buildroot layout |
# create buildroot layout |
25 |
install -d ${BUILDROOT}/.stamps |
install -d ${BUILDROOT}/.stamps |
26 |
install -d ${BUILDROOT}/ssh |
install -d ${BUILDROOT}/ssh |
27 |
for arch in ${BUILD_ARCH[*]} src |
for arch in $(enum-all-arch-types) |
28 |
do |
do |
29 |
install -d ${BUILDROOT}/${arch} |
install -d ${BUILDROOT}/${arch} |
30 |
install -d ${BUILDROOT}/mage-tree/${arch} |
install -d ${BUILDROOT}/mage-tree/${arch} |
31 |
install -d ${BUILDROOT}/packages/${arch} |
install -d ${BUILDROOT}/packages/${arch} |
32 |
install -d ${BUILDROOT}/meta/${arch} |
install -d ${BUILDROOT}/meta/${arch} |
33 |
install -d ${BUILDROOT}/build-info/${arch} |
install -d ${BUILDROOT}/build-info/${arch} |
34 |
|
install -d ${BUILDROOT}/log/smage/${arch} |
35 |
done |
done |
36 |
|
|
37 |
# |
# |
38 |
# arch specific |
# arch specific |
39 |
# |
# |
40 |
for arch in src ${BUILD_ARCH[*]} |
for arch in $(enum-all-arch-types) |
41 |
do |
do |
42 |
if [ ! -f ${BUILDROOT}/.stamps/${arch}_bootstrap-ok ] |
if [ ! -f ${BUILDROOT}/.stamps/${arch}_bootstrap-ok ] |
43 |
then |
then |
56 |
# create initial mage-tree for all arches |
# create initial mage-tree for all arches |
57 |
${BUILDSERVER_LIB_DIR}/buildserver-setup-mage-tree.sh |
${BUILDSERVER_LIB_DIR}/buildserver-setup-mage-tree.sh |
58 |
|
|
59 |
for arch in src ${BUILD_ARCH[*]} |
for arch in $(enum-all-arch-types) |
60 |
do |
do |
61 |
# honor any proxy settings |
# honor any proxy settings |
62 |
:> ${BUILDROOT}/${arch}/etc/env.d/01proxy |
:> ${BUILDROOT}/${arch}/etc/env.d/01proxy |
95 |
fi |
fi |
96 |
|
|
97 |
# update-ca-certificates |
# update-ca-certificates |
98 |
runarch "${arch}" update-ca-certificates # no die here, cmd may missing |
if [ -x ${BUILDROOT}/${arch}/usr/sbin/update-ca-certificates ] |
99 |
|
then |
100 |
|
runarch "${arch}" update-ca-certificates # no die here, cmd may missing |
101 |
|
fi |
102 |
|
|
103 |
# create list of protected packages |
# create list of protected packages |
104 |
echo "BUILDSERVER_CACHE_DIR=\"${BUILDSERVER_CACHE_DIR}\"" > ${BUILDROOT}/${arch}/.runrc |
echo "BUILDSERVER_CACHE_DIR=\"${BUILDSERVER_CACHE_DIR}\"" > ${BUILDROOT}/${arch}/.runrc |