Magellan Linux

Diff of /trunk/mage-buildserver/buildserver-prepare.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2792 by niro, Thu Aug 28 09:38:38 2014 UTC revision 2793 by niro, Thu Aug 28 09:42:57 2014 UTC
# Line 7  source ${BUILDSERVER_CONFIG_DIR}/buildse Line 7  source ${BUILDSERVER_CONFIG_DIR}/buildse
7    
8  source ${BUILDSERVER_LIB_DIR}/buildserver-functions.sh  source ${BUILDSERVER_LIB_DIR}/buildserver-functions.sh
9    
10    ALL_ARCH_PACKAGES=( subversion openssh )
11    NON_SRC_ARCH_PACKAGES=( "${BOOTSTRAP_DEVUTILS}" ccache python scanelf )
12    
13  # fallback  # fallback
14  if [[ -z ${MAGE_PROFILE} ]]  if [[ -z ${MAGE_PROFILE} ]]
15  then  then
# Line 71  do Line 74  do
74   :> ${BUILDROOT}/${arch}/etc/env.d/00mage-buildserver   :> ${BUILDROOT}/${arch}/etc/env.d/00mage-buildserver
75   echo "MAGE_BOOTSTRAP=\"true\"" >> ${BUILDROOT}/${arch}/etc/env.d/00mage-buildserver   echo "MAGE_BOOTSTRAP=\"true\"" >> ${BUILDROOT}/${arch}/etc/env.d/00mage-buildserver
76    
77   # install subversion   for pkg in ${ALL_ARCH_PACKAGES[*]}
78   if [ ! -f ${BUILDROOT}/.stamps/${arch}_subversion-ok ]   do
79   then   runarch-pkg-install "${arch}" "${pkg}"
80   runarch "${arch}" mage install subversion || die "${arch} install subversion"   done
  touch ${BUILDROOT}/.stamps/${arch}_subversion-ok  
  else  
  echo "Warning: subversion already installed for arch '${arch}'"  
  fi  
   
  # install openssh  
  if [ ! -f ${BUILDROOT}/.stamps/${arch}_openssh-ok ]  
  then  
  runarch "${arch}" mage install openssh || die "${arch} install openssh"  
  touch ${BUILDROOT}/.stamps/${arch}_openssh-ok  
  else  
  echo "Warning: openssh already installed for arch '${arch}'"  
  fi  
81    
82     # exclude these pkg from src chroot
83   if [[ ${arch} != src ]]   if [[ ${arch} != src ]]
84   then   then
85   if [ ! -f ${BUILDROOT}/.stamps/${arch}_common-devutils-ok ]   for pkg in ${NON_SRC_ARCH_PACKAGES[*]}
86   then   do
87   runarch "${arch}" mage install "${BOOTSTRAP_DEVUTILS}" || die "${arch} install '${BOOTSTRAP_DEVUTILS}'"   runarch-pkg-install "${arch}" "${pkg}"
88   touch ${BUILDROOT}/.stamps/${arch}_common-devutils-ok   done
  else  
  echo "Warning: '${BOOTSTRAP_DEVUTILS}' already installed for arch '${arch}'"  
  fi  
89    
  # install ccache  
  if [ ! -f ${BUILDROOT}/.stamps/${arch}_ccache-ok ]  
  then  
  runarch "${arch}" mage install ccache || die "${arch} install ccache"  
  touch ${BUILDROOT}/.stamps/${arch}_ccache-ok  
  else  
  echo "Warning: ccache already installed for arch '${arch}'"  
  fi  
90   # setup ccache   # setup ccache
91   if [ ! -f ${BUILDROOT}/.stamps/${arch}_setup-ccache-ok ]   if [ ! -f ${BUILDROOT}/.stamps/${arch}_setup-ccache-ok ]
92   then   then

Legend:
Removed from v.2792  
changed lines
  Added in v.2793