From c46ffae60331fb2334eb6c23e668decb3e02b2c9 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Wed, 10 Nov 2010 16:01:35 +0100 Subject: [PATCH] add workaround for Ubuntu 10 builds --- init_buildsystem | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/init_buildsystem b/init_buildsystem index 8fcda9f..a3e55be 100755 --- a/init_buildsystem +++ b/init_buildsystem @@ -812,6 +812,16 @@ for PKG in $PACKAGES_TO_INSTALL_FIRST RUN_LDCONFIG $PACKAGES_TO_INSTALL $PACKAGE perl -ne '$|=1;/^(Configuration file|Installing new config file|Selecting previously deselected|\(Reading database|Unpacking |Setting up|Creating config file|Preparing to replace dpkg)/||/^$/||print' check_exit echo "$PKGID debian" > $BUILD_ROOT/installed-pkg/$PKG + # ugly workaround for upstart system. some packages (procps) try + # to start a service in their configure phase. As we don't have + # a running upstart, we just link the start binary to /bin/true + if test -e "$BUILD_ROOT/sbin/start"; then + if test "$BUILD_ROOT/sbin/start" -ef "$BUILD_ROOT/sbin/initctl" ; then + echo "linking /sbin/start to /bin/true" + mv "$BUILD_ROOT/sbin/start" "$BUILD_ROOT/sbin/start.disabled" + ln -s "/bin/true" "$BUILD_ROOT/sbin/start" + fi + fi continue fi -- 2.7.4