echo 'export PATH=/usr/lib/icecc/bin:/opt/icecream/bin:/usr/bin:$PATH' >> "$BUILD_ROOT"/var/lib/build/ccache/bin/$i
echo "ccache $i \"\$@\"" >> "$BUILD_ROOT"/var/lib/build/ccache/bin/$i
chmod 755 "$BUILD_ROOT"/var/lib/build/ccache/bin/$i
- echo "Installed ccache wrapper as '$BUILD_ROOT'/var/lib/build/ccache/bin/$i"
+ echo "Installed ccache wrapper as $BUILD_ROOT/var/lib/build/ccache/bin/$i"
done
fi
mkdir -p "$BUILD_ROOT/.ccache"
}
pkg_runscripts_arch() {
- if test -e "'$BUILD_ROOT'/.init_b_cache/scripts/$PKG.post" ; then
+ if test -e "$BUILD_ROOT/.init_b_cache/scripts/$PKG.post" ; then
echo "running $PKG postinstall script"
( cd "$BUILD_ROOT" && chroot "$BUILD_ROOT" ".init_b_cache/scripts/$PKG.post" < /dev/null )
rm -f "$BUILD_ROOT/.init_b_cache/scripts/$PKG.post"
}
deb_setup() {
- mkdir -p $"BUILD_ROOT"/var/lib/dpkg
- mkdir -p $"BUILD_ROOT"/var/log
- mkdir -p $"BUILD_ROOT"/etc/default
- :>> $"BUILD_ROOT"/var/lib/dpkg/status
- :>> $"BUILD_ROOT"/var/lib/dpkg/available
- :>> $"BUILD_ROOT"/var/log/dpkg.log
- :>> $"BUILD_ROOT"/etc/ld.so.conf
- :>> $"BUILD_ROOT"/etc/default/rcS
+ mkdir -p "$BUILD_ROOT"/var/lib/dpkg
+ mkdir -p "$BUILD_ROOT"/var/log
+ mkdir -p "$BUILD_ROOT"/etc/default
+ :>> "$BUILD_ROOT"/var/lib/dpkg/status
+ :>> "$BUILD_ROOT"/var/lib/dpkg/available
+ :>> "$BUILD_ROOT"/var/log/dpkg.log
+ :>> "$BUILD_ROOT"/etc/ld.so.conf
+ :>> "$BUILD_ROOT"/etc/default/rcS
}
pkg_initdb_deb() {
deb_setup
# force dpkg into database to make epoch test work
- if ! test "'$BUILD_ROOT'/.init_b_cache/rpms/dpkg.deb" -ef "'$BUILD_ROOT'/.init_b_cache/dpkg.deb" ; then
- rm -f $"BUILD_ROOT"/.init_b_cache/dpkg.deb
- cp $"BUILD_ROOT"/.init_b_cache/rpms/dpkg.deb $"BUILD_ROOT"/.init_b_cache/dpkg.deb || cleanup_and_exit 1
+ if ! test "$BUILD_ROOT/.init_b_cache/rpms/dpkg.deb" -ef "$BUILD_ROOT/.init_b_cache/dpkg.deb" ; then
+ rm -f "$BUILD_ROOT"/.init_b_cache/dpkg.deb
+ cp "$BUILD_ROOT"/.init_b_cache/rpms/dpkg.deb "$BUILD_ROOT"/.init_b_cache/dpkg.deb || cleanup_and_exit 1
fi
- deb_chroot $"BUILD_ROOT" dpkg --install --force-depends .init_b_cache/dpkg.deb >/dev/null 2>&1
+ deb_chroot "$BUILD_ROOT" dpkg --install --force-depends .init_b_cache/dpkg.deb >/dev/null 2>&1
}
pkg_prepare_deb() {
}
pkg_install_deb() {
- ( deb_chroot $"BUILD_ROOT" dpkg --install --force-depends .init_b_cache/$PKG.deb 2>&1 || touch $"BUILD_ROOT"/exit ) | \
+ ( deb_chroot "$BUILD_ROOT" dpkg --install --force-depends .init_b_cache/$PKG.deb 2>&1 || touch "$BUILD_ROOT"/exit ) | \
perl -ne '$|=1;/^(Configuration file|Installing new config file|Selecting previously deselected|Selecting previously unselected|\(Reading database|Unpacking |Setting up|Creating config file|Preparing to replace dpkg|Preparing to unpack )/||/^$/||print'
# ugly workaround for upstart system. some packages (procps) try
# to start a service in their configure phase. As we don't have