Hello community,

here is the log from the commit of package runc for openSUSE:Factory checked in 
at 2016-05-04 08:19:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/runc (Old)
 and      /work/SRC/openSUSE:Factory/.runc.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "runc"

Changes:
--------
New Changes file:

--- /dev/null   2016-04-07 01:36:33.300037506 +0200
+++ /work/SRC/openSUSE:Factory/.runc.new/runc.changes   2016-05-04 
08:19:56.000000000 +0200
@@ -0,0 +1,73 @@
+-------------------------------------------------------------------
+Fri Apr 29 09:03:24 UTC 2016 - asa...@suse.de
+
+* Update to runC 0.1.1. Changelog from upstream:
+
+  This release includes a bug fix for adding the selinux mount label in the 
specification.
+
+-------------------------------------------------------------------
+Tue Apr 19 09:59:05 UTC 2016 - asa...@suse.de
+
+* Don't use gcc-go for aarch64, since gc has grown support for it and is more
+  stable.
+
+-------------------------------------------------------------------
+Fri Apr 15 10:46:04 UTC 2016 - asa...@suse.de
+
+* Disable seccomp entirely for aarch64 builds, since it is not provided on all
+  SUSE platforms.
+
+-------------------------------------------------------------------
+Wed Apr 13 12:03:09 UTC 2016 - asa...@suse.de
+
+* Update to runC 0.1.0. Changelog from upstream:
+
+  This release updates runc to the OCI runtime specification v0.5.0 and 
includes
+  various fixes and features.
+
+  Features:
+  + cgroups: pid limits and stats
+  + cgroups: kmem stats
+  + systemd cgroup support
+  + libcontainer specconv package
+  + no pivot root option
+  + numeric ids are treated as uid/gid
+  + hook improvements
+
+  Bug Fixes:
+  * log flushing
+  * atomic pid file creation
+  * init error recovery
+  * seccomp logging removed
+  * delete container on aborted start
+  * /dev bind mount handling
+
+-------------------------------------------------------------------
+Wed Mar 30 14:18:18 UTC 2016 - asa...@suse.de
+
+* Install to /usr/sbin.  https://github.com/opencontainers/runc/pull/702
+
+-------------------------------------------------------------------
+Sun Mar 27 14:50:32 UTC 2016 - asa...@suse.de
+
+* Added runC man pages.
+* Recommended criu, since it's required for the checkpoint and restore
+  functionality.
+
+-------------------------------------------------------------------
+Sun Mar 27 10:14:32 UTC 2016 - asa...@suse.de
+
+* Small updates to method of compilation to better match Makefile.
+
+-------------------------------------------------------------------
+Mon Mar 21 12:04:59 UTC 2016 - asa...@suse.de
+
+* Make compilation work on gcc-go only systems (ppc and s390).
+
+-------------------------------------------------------------------
+Mon Mar 21 08:24:02 UTC 2016 - asa...@suse.de
+
+* initial import of runC 0.0.9
+* add patch seccomp-use-pkg-config.patch which allows us to build runC, since
+  they assume that the seccomp.h file lives at /usr/include/seccomp.h.
+

New:
----
  _service
  runc-0.1.1.tar.xz
  runc.changes
  runc.spec
  seccomp-use-pkg-config.patch

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

Other differences:
------------------
++++++ runc.spec ++++++
#
# spec file for package runc
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define go_arches %ix86 x86_64 aarch64
%ifarch %go_arches
%define go_tool go
%define GO_BUILD_FLAGS %{nil}
%else
%define go_tool go-5
%define GO_BUILD_FLAGS "-gccgoflags=-Wl,--add-needed -Wl,--no-as-needed 
-static-libgo -ldl -lseccomp -lselinux -lapparmor"
%endif

%define version_unconverted 0.1.1

Name:           runc
Version:        0.1.1
Release:        0
Summary:        Tool for spawning and running OCI containers
License:        Apache-2.0
Group:          System/Management
Url:            https://github.com/opencontainers/runc
Source:         %{name}-%{version}.tar.xz
Patch0:         seccomp-use-pkg-config.patch
%ifarch %go_arches
BuildRequires:  go >= 1.5
BuildRequires:  go-go-md2man
%else
BuildRequires:  gcc5-go >= 5.0
%endif
BuildRequires:  libapparmor-devel
# Seccomp isn't supported on aarch64.
%ifnarch aarch64
BuildRequires:  libseccomp-devel
%endif
BuildRequires:  libselinux-devel
Recommends:     criu
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
runc is a CLI tool for spawning and running containers according to the OCI
specification. It is designed to be as minimal as possible, and is the workhorse
of Docker. It was originally designed to be a replacement for LXC within Docker,
and has grown to become a separate project entirely.

%prep
%setup -q -n %{name}-%{version}
# Apply the vendor'd patch to the right subdirectory.
%patch0 -p1 -d Godeps/_workspace/src/github.com/seccomp/libseccomp-golang

%build
# Create buildir,
export GOPATH=$PWD/Godeps/_workspace
mkdir -pv $GOPATH/src/github.com/opencontainers/
ln -svfn $PWD $GOPATH/src/github.com/opencontainers/runc

# Build all features.
export BUILDTAGS="apparmor selinux"

# Seccomp isn't supported on aarch64.
%ifnarch aarch64
export BUILDTAGS="$BUILDTAGS seccomp"
%endif

# Build runc.
%go_tool build %GO_BUILD_FLAGS -tags "$BUILDTAGS" -x -o %{name}-%{version} 
github.com/opencontainers/%{name}

# Build man pages, this can only be done on arches where we can build go-md2man.
%ifarch %go_arches
man/md2man-all.sh
%endif

%install
%{__install} -D -m755 %{name}-%{version} %{buildroot}%{_sbindir}/%{name}

%ifarch %go_arches
%{__install} -d -m755 %{buildroot}%{_mandir}/man8
%{__install} -m644 man/man8/runc*.8 %{buildroot}%{_mandir}/man8
%endif

%files
%defattr(-,root,root)
%doc README.md LICENSE
%{_sbindir}/%{name}

%ifarch %go_arches
%{_mandir}/man8/runc*.8.gz
%endif
++++++ _service ++++++
<services>
  <service name="tar_scm" mode="disabled">
    <param name="url">https://github.com/opencontainers/runc.git</param>
    <param name="scm">git</param>
    <param name="filename">runc</param>
    <param name="versionformat">0.1.1</param>
    <param name="revision">v0.1.1</param>
    <param name="exclude">.git</param>
  </service>
  <service name="recompress" mode="disabled">
    <param name="file">*.tar</param>
    <param name="compression">xz</param>
  </service>
  <service name="set_version" mode="disabled">
    <param name="basename">runc</param>
  </service>
</services>
++++++ seccomp-use-pkg-config.patch ++++++
>From 37d7332d4b4159cc3ca09a020319da2492b66a4e Mon Sep 17 00:00:00 2001
From: Aleksa Sarai <asa...@suse.de>
Date: Mon, 21 Mar 2016 19:01:33 +1100
Subject: [PATCH] seccomp: use pkg-config for cgo flag generation

Not all distributions package libseccomp in the same way, but pkg-config
allows the same configuration to work on different distributions. Switch
to using pkg-config to automatically figure out what the correct
commandline flags are for libseccomp.

Signed-off-by: Aleksa Sarai <asa...@suse.de>
---
 seccomp.go          | 2 +-
 seccomp_internal.go | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/seccomp.go b/seccomp.go
index cebafdfae841..de847378d927 100644
--- a/seccomp.go
+++ b/seccomp.go
@@ -20,7 +20,7 @@ import (
 
 // C wrapping code
 
-// #cgo LDFLAGS: -lseccomp
+// #cgo pkg-config: libseccomp
 // #include <stdlib.h>
 // #include <seccomp.h>
 import "C"
diff --git a/seccomp_internal.go b/seccomp_internal.go
index 306ed17570be..04095f664879 100644
--- a/seccomp_internal.go
+++ b/seccomp_internal.go
@@ -15,7 +15,7 @@ import (
 // Get the seccomp header in scope
 // Need stdlib.h for free() on cstrings
 
-// #cgo LDFLAGS: -lseccomp
+// #cgo pkg-config: libseccomp
 /*
 #include <stdlib.h>
 #include <seccomp.h>
-- 
2.7.3


Reply via email to