From eb1aad3421e85f0f673c128f66e79c4d87f1442920cf3a2d74871e5d0bdce122 Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Wed, 21 Dec 2016 16:38:17 +0000 Subject: [PATCH] Accepting request 447318 from home:jordimassaguerpla:branch:V:c:fix_runc_symlink - add symlink to docker-runc in the post section, as this is how it has been already fixed for some client. fixes bsc#1015661 OBS-URL: https://build.opensuse.org/request/show/447318 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/runc?expand=0&rev=33 --- runc.changes | 6 ++++++ runc.spec | 10 +++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/runc.changes b/runc.changes index 1ad7f3c..ab7296e 100644 --- a/runc.changes +++ b/runc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Dec 21 09:43:06 UTC 2016 - jmassaguerpla@suse.com + +- add symlink to docker-runc in the post section, as this is how it + has been already fixed for some client. fixes bsc#1015661 + ------------------------------------------------------------------- Mon Dec 19 12:49:38 UTC 2016 - jmassaguerpla@suse.com diff --git a/runc.spec b/runc.spec index 4578717..956ee75 100644 --- a/runc.spec +++ b/runc.spec @@ -148,8 +148,6 @@ go test -timeout 3m -tags "$BUILDTAGS" -v $PKG_LIST %{__install} -D -m755 %{name}-%{version} %{buildroot}%{_sbindir}/%{name} install -d -m755 %{buildroot}/usr/src/runc/ cp -avr $HOME/go/src/github.com/opencontainers/runc/* %{buildroot}/usr/src/runc/ -install -d -m755 %{buildroot}/%{_bindir} -ln -s /usr/sbin/runc %{buildroot}/%{_bindir}/docker-runc %ifarch %go_arches %{__install} -d -m755 %{buildroot}%{_mandir}/man8 @@ -158,11 +156,17 @@ ln -s /usr/sbin/runc %{buildroot}/%{_bindir}/docker-runc %fdupes %{buildroot}/%{_prefix} +%post +echo "Running Post Install Script" +if [ ! -e "/usr/bin/docker-runc" ] +then + ln -s /usr/sbin/runc /usr/bin/docker-runc +fi + %files %defattr(-,root,root) %doc README.md LICENSE %{_sbindir}/%{name} -%{_bindir}/docker-runc %ifarch %go_arches %{_mandir}/man8/runc*.8.gz