[opensuse-buildservice] Package installation after build fails, requirements NOT installed
Not sure this is the correct list, as it might be an OBS problem, but also might be some wrong-doing on my side ;) I have a relative simple package installing Collabora online office via a docker-compose script and creating the neccessary proxying into the container: https://build.opensuse.org/package/view_file/server:eGroupWare/egroupware-co... Package works on CentOS and Debian/Ubuntu, but I can not get it working on openSUSE/SLES :( To me it seems the package test at the end of the build tries to install the package without it dependencies and then obviously fails: https://build.opensuse.org/package/live_build_log/server:eGroupWare/egroupwa... Thought adding the dependencies additonal as BuildRequirements also does not fix the problem either. Is there a way to stop the packaging test to run the post script (which tries to start docker and apache)? Or any other ideas to get a package like that build for openSUSE/SLES? Ralf -- Ralf Becker EGroupware GmbH [www.egroupware.org] Handelsregister HRB Kaiserslautern 3587 Geschäftsführer Birgit und Ralf Becker Leibnizstr. 17, 67663 Kaiserslautern, Germany Telefon +49 631 31657-0
Try asking in opensuse-packaging@. Looks like your install script is trying to use a service and fails if that isn't started. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi Andreas, thanks for your answer :) Am 24.05.19 um 11:57 schrieb Andreas Schwab:
Try asking in opensuse-packaging@. Looks like your install script is trying to use a service and fails if that isn't started.
It tries to start the service, if it's not running: [ 46s] Created symlink /etc/systemd/system/multi-user.target.wants/docker.service -> /usr/lib/systemd/system/docker.service. [ 46s] Failed to connect to bus: No such file or directory But it fails, because of the build environment. I understand that it is though for the package install check to successful start something like the docker daemon, in all types of build-environments. I would expect to have a simple way to tell the package building: a) run complete install check (default) b) install package but do NOT run post (as it will fail for various - understandable - reasons) c) skip tests install-tests completly Ralf -- Ralf Becker EGroupware GmbH [www.egroupware.org] Handelsregister HRB Kaiserslautern 3587 Geschäftsführer Birgit und Ralf Becker Leibnizstr. 17, 67663 Kaiserslautern, Germany Telefon +49 631 31657-0
Am 24.05.19 um 13:33 schrieb Ralf Becker:
Hi Andreas,
thanks for your answer :)
Am 24.05.19 um 11:57 schrieb Andreas Schwab:
Try asking in opensuse-packaging@. Looks like your install script is trying to use a service and fails if that isn't started.
It tries to start the service, if it's not running:
[ 46s] Created symlink /etc/systemd/system/multi-user.target.wants/docker.service -> /usr/lib/systemd/system/docker.service. [ 46s] Failed to connect to bus: No such file or directory
But it fails, because of the build environment.
I understand that it is though for the package install check to successful start something like the docker daemon, in all types of build-environments.
Ugly hack from our in-house OBS instance, that my cow-orkers have found: ----------------------------------------- %post chkconfig FOOBAR on || true # in kiwi environment: ### ZYPP_CONF=/var/cache/kiwi/zypper/zypp.conf.25480 ### PBL_SKIP_BOOT_TEST=1 # in obs environment: ### PNAME=FOOBAR ### YAST_IS_RUNNING=instsys ### BUILD_ROOT=/ if [ -n "$BUILD_ROOT" ] && [ "$YAST_IS_RUNNING" = instsys ] && [ "$PNAME" = "%{name}" ]; then echo "INFO: not restarting FOOBAR in build service environment" elif [ "$PBL_SKIP_BOOT_TEST" = 1 ] && echo "$ZYPP_CONF" | grep -q '/kiwi/'; then echo "INFO: not restarting FOOBAR in kiwi environment" else # restart. stop does not hurt if it is not running %if 0%{?rhel} >= 7 || 0%{?suse_version} > 1200 systemctl stop FOOBAR systemctl start FOOBAR %else /etc/init.d/FOOBAR stop /etc/init.d/FOOBAR start %endif fi true ----------------------------------------- As you can see, it is doing things you should not do in a %post script (always starting the service...), but the part mentioned in the comments could help you. Have fun, -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Andreas Schwab
-
Ralf Becker
-
Stefan Seyfried