Hello community,

here is the log from the commit of package containerd for openSUSE:Factory 
checked in at 2016-08-20 12:27:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/containerd (Old)
 and      /work/SRC/openSUSE:Factory/.containerd.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "containerd"

Changes:
--------
--- /work/SRC/openSUSE:Factory/containerd/containerd.changes    2016-08-17 
12:06:04.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.containerd.new/containerd.changes       
2016-08-20 12:27:23.000000000 +0200
@@ -1,0 +2,9 @@
+Thu Aug 18 09:44:56 UTC 2016 - [email protected]
+
+- Add containerd-test package which contains the source code and the test. This
+  package will be used to run the integration tests.
+- Simplify package build and check sections: Instead of symlinking we default 
to
+  cp -avr. go list gets confused by symlinks hence, we need to copy the source
+  code anyway if we want to run unit tests during package build at some point.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ containerd.spec ++++++
--- /var/tmp/diff_new_pack.MUsFlq/_old  2016-08-20 12:27:24.000000000 +0200
+++ /var/tmp/diff_new_pack.MUsFlq/_new  2016-08-20 12:27:24.000000000 +0200
@@ -82,6 +82,19 @@
 Standalone client for containerd, which allows management of containerd 
containers
 separately from Docker.
 
+%package test
+Summary:        Test package for containerd
+Group:          System/Management
+%ifarch %go_arches
+Requires:       go >= 1.5
+%else
+Requires:       gcc5-go >= 5.0
+%endif
+BuildArch:      noarch
+
+%description test
+Test package for containerd. It contains the source code and the tests.
+
 %prep
 %setup -q
 # Systemd socket activation patches.
@@ -90,10 +103,13 @@
 %patch103 -p1
 
 %build
-# Create buildir,
-export GOPATH=$PWD/vendor
-mkdir -pv $GOPATH/src/github.com/docker/
-ln -svfn $PWD $GOPATH/src/github.com/docker/containerd
+# Do not use symlinks. If you want to run the unit tests for this package at
+# some point during the build and you need to directly use go list directly it
+# will get confused by symlinks.
+export 
GOPATH=${HOME}/go:${HOME}/go/src/github.com/docker/containerd/vendor:${GOPATH}
+mkdir -pv $HOME/go/src/github.com/docker/containerd
+rm -rf $HOME/go/src/github.com/docker/containerd/*
+cp -avr * $HOME/go/src/github.com/docker/containerd
 
 # Build deamon.
 %go_tool build %GO_BUILD_FLAGS -x -o %{daemon}-%{version} 
github.com/docker/%{name}/%{daemon}
@@ -115,6 +131,9 @@
 ln -sf %{_sbindir}/service %{buildroot}/%{_sbindir}/rccontainerd
 %{__install} -D -m644 %SOURCE3 
%{buildroot}/var/adm/fillup-templates/sysconfig.%{name}
 
+install -d -m755 %{buildroot}/usr/src/containerd/
+cp -avr $HOME/go/src/github.com/docker/containerd/* 
%{buildroot}/usr/src/containerd/
+
 %pre
 %service_add_pre %{name}.service %{name}.socket
 
@@ -141,4 +160,9 @@
 %files ctr
 %{_sbindir}/%{name}-%{client}
 
+%files test
+%defattr(-,root,root)
+/usr/src/containerd/
+%exclude /usr/src/containerd/bin
+
 %changelog


Reply via email to