[Bug 1112748] New: Selinux prevents docker-io from updating /etc/passwd within a container
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1112748
Bug ID: 1112748
Summary: Selinux prevents docker-io from updating /etc/passwd
within a container
Product: Fedora
Version: 20
Component: docker-io
Severity: high
Assignee: lsm5(a)redhat.com
Reporter: artaxerxes2(a)iname.com
QA Contact: extras-qa(a)fedoraproject.org
CC: admiller(a)redhat.com, golang(a)lists.fedoraproject.org,
hushan.jia(a)gmail.com, lsm5(a)redhat.com,
mattdm(a)redhat.com, mgoldman(a)redhat.com, s(a)shk.io,
vbatts(a)redhat.com
Description of problem:
Running a certain docker command fails to run the container as expected since
selinux intercept a call to update /etc/passwd within the container.
Version-Release number of selected component (if applicable):
Docker version 1.0.0, build 63fe64c/1.0.0
selinux policy version is 29
How reproducible: always
Steps to Reproduce:
1. # yum upgrade
2. # yum install docker-io
3. add username to the docker group and restart the daemon
4. verify 'getenforce' returns 'Enforcing'
5. docker run -t -i -p 80:80 -p 20022:22 oskarhane/docker-wordpress-nginx-ssh
Actual results:
140624 15:34:46 mysqld_safe Logging to syslog.
140624 15:34:46 mysqld_safe Starting mysqld daemon with databases from
/var/lib/mysql
mysql root password: Yohraequ2eiB
wordpress password: ieHie5toi0zo
ssh password: se2Gai9eengu
usermod: failure while writing changes to /etc/passwd
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 58606 100 58606 0 0 60339 0 --:--:-- --:--:-- --:--:-- 62148
Archive: nginx-helper.1.8.1.zip
nginx-helper.1.8.1 packaged
creating: /usr/share/nginx/www/wp-content/plugins/nginx-helper/
inflating: /usr/share/nginx/www/wp-content/plugins/nginx-helper/readme.txt
creating: /usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/admin.php
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/install.php
creating: /usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/lib/
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/lib/nginx-sidebar.php
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/lib/nginx-general.php
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/lib/nginx-support.php
creating: /usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/
creating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/config.json
creating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/font/
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/font/nginx-fontello.eot
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/font/nginx-fontello.svg
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/font/nginx-fontello.ttf
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/font/nginx-fontello.woff
creating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/css/
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/css/nginx-fontello.css
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx.js
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/rtp-social-icons-32-32.png
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/logo.png
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/style.css
extracting:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-icon-32x32.png
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/nginx-helper.php
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/compatibility.php
creating: /usr/share/nginx/www/wp-content/plugins/nginx-helper/languages/
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/languages/nginx-helper.mo
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/languages/nginx-helper.po
inflating: /usr/share/nginx/www/wp-content/plugins/nginx-helper/purger.php
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 38126 100 38126 0 0 151k 0 --:--:-- --:--:-- --:--:-- 154k
Archive: wp-ffpc.1.5.0.zip
wp-ffpc.1.5.0 packaged
creating: /usr/share/nginx/www/wp-content/plugins/wp-ffpc/
inflating: /usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-ffpc-acache.php
inflating: /usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-ffpc-class.php
inflating: /usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-ffpc.php
inflating:
/usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-ffpc-nginx-sample.conf
inflating: /usr/share/nginx/www/wp-content/plugins/wp-ffpc/readme.txt
inflating:
/usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-ffpc-backend.php
inflating: /usr/share/nginx/www/wp-content/plugins/wp-ffpc/uninstall.php
creating: /usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-common/
inflating:
/usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-common/wp-admin.css
inflating:
/usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-common/wp-plugin-abstract.php
inflating:
/usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-common/wp-plugin-utilities.php
sed: warning: failed to set default file creation context to
system_u:object_r:svirt_sandbox_file_t:s0:c8,c525: Permission deniedStarting
memcached: memcached.
140624 15:34:59 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid
ended
/usr/local/lib/python2.7/dist-packages/supervisor-3.0-py2.7.egg/supervisor/options.py:295:
UserWarning: Supervisord is running as root and it is searching for its
configuration file in default locations (including its current working
directory); you probably want to specify a "-c" argument specifying an absolute
path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
2014-06-24 15:35:00,547 CRIT Supervisor running as root (no user in config
file)
2014-06-24 15:35:00,646 INFO RPC interface 'supervisor' initialized
2014-06-24 15:35:00,646 CRIT Server 'unix_http_server' running without any HTTP
authentication checking
2014-06-24 15:35:00,646 INFO supervisord started with pid 380
2014-06-24 15:35:01,648 INFO spawned: 'nginx' with pid 391
2014-06-24 15:35:01,650 INFO spawned: 'mysqld' with pid 392
2014-06-24 15:35:01,651 INFO spawned: 'php5-fpm' with pid 393
2014-06-24 15:35:01,652 INFO spawned: 'ssh' with pid 394
2014-06-24 15:35:02,756 INFO success: nginx entered RUNNING state, process has
stayed up for > than 1 seconds (startsecs)
2014-06-24 15:35:02,757 INFO success: mysqld entered RUNNING state, process has
stayed up for > than 1 seconds (startsecs)
2014-06-24 15:35:02,757 INFO success: php5-fpm entered RUNNING state, process
has stayed up for > than 1 seconds (startsecs)
2014-06-24 15:35:02,757 INFO success: ssh entered RUNNING state, process has
stayed up for > than 1 seconds (startsecs)
Expected results:
140624 15:36:48 mysqld_safe Logging to syslog.
140624 15:36:48 mysqld_safe Starting mysqld daemon with databases from
/var/lib/mysql
mysql root password: Eehujoh3ooyo
wordpress password: nana8aiTh6ju
ssh password: Eengoo2liMie
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 58606 100 58606 0 0 38969 0 0:00:01 0:00:01 --:--:-- 39412
Archive: nginx-helper.1.8.1.zip
nginx-helper.1.8.1 packaged
creating: /usr/share/nginx/www/wp-content/plugins/nginx-helper/
creating: /usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/install.php
creating: /usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/lib/
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/lib/nginx-general.php
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/lib/nginx-sidebar.php
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/lib/nginx-support.php
creating: /usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/logo.png
extracting:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-icon-32x32.png
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/rtp-social-icons-32-32.png
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx.js
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/style.css
creating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/
creating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/font/
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/font/nginx-fontello.ttf
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/font/nginx-fontello.woff
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/font/nginx-fontello.svg
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/font/nginx-fontello.eot
creating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/css/
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/css/nginx-fontello.css
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/assets/nginx-helper-icons/config.json
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/admin/admin.php
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/nginx-helper.php
inflating: /usr/share/nginx/www/wp-content/plugins/nginx-helper/readme.txt
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/compatibility.php
creating: /usr/share/nginx/www/wp-content/plugins/nginx-helper/languages/
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/languages/nginx-helper.mo
inflating:
/usr/share/nginx/www/wp-content/plugins/nginx-helper/languages/nginx-helper.po
inflating: /usr/share/nginx/www/wp-content/plugins/nginx-helper/purger.php
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 38126 100 38126 0 0 49638 0 --:--:-- --:--:-- --:--:-- 49903
Archive: wp-ffpc.1.5.0.zip
wp-ffpc.1.5.0 packaged
creating: /usr/share/nginx/www/wp-content/plugins/wp-ffpc/
inflating:
/usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-ffpc-nginx-sample.conf
inflating: /usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-ffpc-class.php
creating: /usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-common/
inflating:
/usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-common/wp-admin.css
inflating:
/usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-common/wp-plugin-abstract.php
inflating:
/usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-common/wp-plugin-utilities.php
inflating: /usr/share/nginx/www/wp-content/plugins/wp-ffpc/uninstall.php
inflating: /usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-ffpc.php
inflating: /usr/share/nginx/www/wp-content/plugins/wp-ffpc/readme.txt
inflating: /usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-ffpc-acache.php
inflating:
/usr/share/nginx/www/wp-content/plugins/wp-ffpc/wp-ffpc-backend.php
Starting memcached: memcached.
/usr/local/lib/python2.7/dist-packages/supervisor-3.0-py2.7.egg/supervisor/options.py:295:
UserWarning: Supervisord is running as root and it is searching for its
configuration file in default locations (including its current working
directory); you probably want to specify a "-c" argument specifying an absolute
path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
2014-06-24 15:37:02,595 CRIT Supervisor running as root (no user in config
file)
2014-06-24 15:37:02,603 INFO RPC interface 'supervisor' initialized
2014-06-24 15:37:02,603 CRIT Server 'unix_http_server' running without any HTTP
authentication checking
2014-06-24 15:37:02,603 INFO supervisord started with pid 385
140624 15:37:03 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid
ended
2014-06-24 15:37:03,606 INFO spawned: 'nginx' with pid 396
2014-06-24 15:37:03,607 INFO spawned: 'mysqld' with pid 397
2014-06-24 15:37:03,608 INFO spawned: 'php5-fpm' with pid 398
2014-06-24 15:37:03,609 INFO spawned: 'ssh' with pid 399
2014-06-24 15:37:04,716 INFO success: nginx entered RUNNING state, process has
stayed up for > than 1 seconds (startsecs)
2014-06-24 15:37:04,716 INFO success: mysqld entered RUNNING state, process has
stayed up for > than 1 seconds (startsecs)
2014-06-24 15:37:04,716 INFO success: php5-fpm entered RUNNING state, process
has stayed up for > than 1 seconds (startsecs)
2014-06-24 15:37:04,716 INFO success: ssh entered RUNNING state, process has
stayed up for > than 1 seconds (startsecs)
Additional info:
If selinux is set to non-enforcing (setenforce 0), then the problem disappears.
Looking at the audit.log file there is nothing related to failed update around
the time of the usermod command is launched.
I tried the exact same steps on CentOS 6.5 and had no issue at all, even in
Enforcing mode.
--
You are receiving this mail because:
You are on the CC list for the bug.
9 years, 11 months
[golang-github-fsouza-go-dockerclient] Update to newer version for Kubernetes work
by Colin Walters
commit 90a714d2538edba7ea2735c20c862b464c14f53b
Author: Colin Walters <walters(a)verbum.org>
Date: Tue Jul 22 13:33:19 2014 -0400
Update to newer version for Kubernetes work
golang-github-fsouza-go-dockerclient.spec | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/golang-github-fsouza-go-dockerclient.spec b/golang-github-fsouza-go-dockerclient.spec
index 7868ddb..de2cba0 100644
--- a/golang-github-fsouza-go-dockerclient.spec
+++ b/golang-github-fsouza-go-dockerclient.spec
@@ -1,16 +1,16 @@
%global debug_package %{nil}
%global import_path github.com/fsouza/go-dockerclient
%global gopath %{_datadir}/gocode
-%global commit d639515f70e535d4bbff8499992beeb48d8bf340
+%global commit a735a3dbbfdd1822886f6b4235318c8809b41538
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: golang-github-fsouza-go-dockerclient
Version: 0
-Release: 0.2.git%{shortcommit}%{?dist}
+Release: 0.3.git%{shortcommit}%{?dist}
Summary: Client for the Docker remote API
License: BSD
URL: https://%{import_path}
-Source0: https://%{import_path}/archive/%{commit}/go-dockerclient-%{shortcommit}.tar.gz
+Source0: https://%{import_path}/archive/%{commit}/%{name}-%{commit}.tar.gz
%if 0%{?fedora} >= 19
BuildArch: noarch
%else
@@ -35,7 +35,7 @@ This package contains library source intended for building other packages
which use fsouza/go-dockerclient.
%prep
-%setup -n go-dockerclient-%{commit}
+%setup -n %{name}-%{commit}
%build
@@ -59,6 +59,9 @@ done
%{gopath}/src/%{import_path}/utils/*.go
%changelog
+* Tue Jul 22 2014 Colin Walters <walters(a)redhat.com>
+- Update to newer version for Kubernetes work
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 0-0.2.gitd639515
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9 years, 11 months
[golang-github-gorilla-context/el6] Update to latest commit, use golang macros
by Lokesh Mandvekar
commit c618607ab797042a17ec0c7b6be576eff27f7aca
Author: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
Date: Mon Jul 21 22:30:48 2014 -0500
Update to latest commit, use golang macros
modified: .gitignore
modified: golang-github-gorilla-context.spec
modified: sources
.gitignore | 1 +
golang-github-gorilla-context.spec | 31 ++++++++++++++++---------------
sources | 2 +-
3 files changed, 18 insertions(+), 16 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index aeb0c96..b147d66 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/context-708054d.tar.gz
/context-b06ed15.tar.gz
+/context-14f550f.tar.gz
diff --git a/golang-github-gorilla-context.spec b/golang-github-gorilla-context.spec
index a13bafd..2bee75a 100644
--- a/golang-github-gorilla-context.spec
+++ b/golang-github-gorilla-context.spec
@@ -1,20 +1,18 @@
-%global debug_package %{nil}
%global import_path github.com/gorilla/context
-%global gopath %{_datadir}/gocode
-%global commit b06ed15e1c7a08fa1ba783fe94fff89127587f9e
+%global commit 14f550f51af52180c2eefed15e5fd18d63c0a64a
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: golang-github-gorilla-context
Version: 0
-Release: 0.24.git%{shortcommit}%{?dist}
+Release: 0.25.git%{shortcommit}%{?dist}
Summary: A golang registry for global request variables
License: BSD
URL: http://www.gorillatoolkit.org/pkg/context
Source0: https://%{import_path}/archive/%{commit}/context-%{shortcommit}.tar.gz
-%if 0%{?fedora} >= 19
+%if 0%{?fedora}
BuildArch: noarch
%else
-ExclusiveArch: %{ix86} x86_64 %{arm}
+ExclusiveArch: %{go_arches}
%endif
%description
@@ -26,8 +24,9 @@ sessions values to be saved at the end of a request. There are several
other common uses.
%package devel
-BuildRequires: golang
-Requires: golang
+# Earliest NVR containing relevant golang macros
+BuildRequires: golang >= 1.2.1-3
+Requires: golang >= 1.2.1-3
Summary: A golang registry for global request variables
Provides: golang(%{import_path}) = %{version}-%{release}
@@ -48,23 +47,25 @@ which use gorilla/context.
%build
%install
-install -d %{buildroot}/%{gopath}/src/%{import_path}
-cp -av *.go %{buildroot}/%{gopath}/src/%{import_path}
+install -d -p %{buildroot}%{gopath}/src/%{import_path}
+cp -pav *.go %{buildroot}%{gopath}/src/%{import_path}
%check
-GOPATH=%{buildroot}/%{gopath} go test %{import_path}
+GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}
%files devel
%defattr(-,root,root,-)
%doc LICENSE README.md
-%dir %attr(755,root,root) %{gopath}
-%dir %attr(755,root,root) %{gopath}/src
-%dir %attr(755,root,root) %{gopath}/src/github.com
%dir %attr(755,root,root) %{gopath}/src/github.com/gorilla
-%dir %attr(755,root,root) %{gopath}/src/github.com/gorilla/context
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}
%{gopath}/src/%{import_path}/*.go
%changelog
+* Mon Jul 21 2014 Lokesh Mandvekar <lsm5(a)fedoraproject.org> - 0-0.25.git
+- update to commit 14f550f51a for docker 1.1.0 (and 1.1.1)
+- use golang packaging macros wherever applicable
+- do not own directories owned by 'golang' package
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 0-0.24.gitb06ed15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index 41e4678..96b7f07 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fe04a949a67afd80cb8f9a04609883f8 context-b06ed15.tar.gz
+1a9701c9c4c9354d5152244e505aba5e context-14f550f.tar.gz
9 years, 11 months
[golang-github-gorilla-context/f19] Update to latest commit, use golang macros
by Lokesh Mandvekar
commit 49047abca9ec77f16064683f863a1210b354443a
Author: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
Date: Mon Jul 21 22:30:48 2014 -0500
Update to latest commit, use golang macros
modified: .gitignore
modified: golang-github-gorilla-context.spec
modified: sources
.gitignore | 1 +
golang-github-gorilla-context.spec | 31 ++++++++++++++++---------------
sources | 2 +-
3 files changed, 18 insertions(+), 16 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index aeb0c96..b147d66 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/context-708054d.tar.gz
/context-b06ed15.tar.gz
+/context-14f550f.tar.gz
diff --git a/golang-github-gorilla-context.spec b/golang-github-gorilla-context.spec
index a13bafd..2bee75a 100644
--- a/golang-github-gorilla-context.spec
+++ b/golang-github-gorilla-context.spec
@@ -1,20 +1,18 @@
-%global debug_package %{nil}
%global import_path github.com/gorilla/context
-%global gopath %{_datadir}/gocode
-%global commit b06ed15e1c7a08fa1ba783fe94fff89127587f9e
+%global commit 14f550f51af52180c2eefed15e5fd18d63c0a64a
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: golang-github-gorilla-context
Version: 0
-Release: 0.24.git%{shortcommit}%{?dist}
+Release: 0.25.git%{shortcommit}%{?dist}
Summary: A golang registry for global request variables
License: BSD
URL: http://www.gorillatoolkit.org/pkg/context
Source0: https://%{import_path}/archive/%{commit}/context-%{shortcommit}.tar.gz
-%if 0%{?fedora} >= 19
+%if 0%{?fedora}
BuildArch: noarch
%else
-ExclusiveArch: %{ix86} x86_64 %{arm}
+ExclusiveArch: %{go_arches}
%endif
%description
@@ -26,8 +24,9 @@ sessions values to be saved at the end of a request. There are several
other common uses.
%package devel
-BuildRequires: golang
-Requires: golang
+# Earliest NVR containing relevant golang macros
+BuildRequires: golang >= 1.2.1-3
+Requires: golang >= 1.2.1-3
Summary: A golang registry for global request variables
Provides: golang(%{import_path}) = %{version}-%{release}
@@ -48,23 +47,25 @@ which use gorilla/context.
%build
%install
-install -d %{buildroot}/%{gopath}/src/%{import_path}
-cp -av *.go %{buildroot}/%{gopath}/src/%{import_path}
+install -d -p %{buildroot}%{gopath}/src/%{import_path}
+cp -pav *.go %{buildroot}%{gopath}/src/%{import_path}
%check
-GOPATH=%{buildroot}/%{gopath} go test %{import_path}
+GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}
%files devel
%defattr(-,root,root,-)
%doc LICENSE README.md
-%dir %attr(755,root,root) %{gopath}
-%dir %attr(755,root,root) %{gopath}/src
-%dir %attr(755,root,root) %{gopath}/src/github.com
%dir %attr(755,root,root) %{gopath}/src/github.com/gorilla
-%dir %attr(755,root,root) %{gopath}/src/github.com/gorilla/context
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}
%{gopath}/src/%{import_path}/*.go
%changelog
+* Mon Jul 21 2014 Lokesh Mandvekar <lsm5(a)fedoraproject.org> - 0-0.25.git
+- update to commit 14f550f51a for docker 1.1.0 (and 1.1.1)
+- use golang packaging macros wherever applicable
+- do not own directories owned by 'golang' package
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 0-0.24.gitb06ed15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index 41e4678..96b7f07 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fe04a949a67afd80cb8f9a04609883f8 context-b06ed15.tar.gz
+1a9701c9c4c9354d5152244e505aba5e context-14f550f.tar.gz
9 years, 11 months
[golang-github-gorilla-context/f20] Update to latest commit, use golang macros
by Lokesh Mandvekar
commit f5f749eb450c51650cb6316c2d5dfd12a7fd1969
Author: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
Date: Mon Jul 21 22:30:48 2014 -0500
Update to latest commit, use golang macros
modified: .gitignore
modified: golang-github-gorilla-context.spec
modified: sources
.gitignore | 1 +
golang-github-gorilla-context.spec | 31 ++++++++++++++++---------------
sources | 2 +-
3 files changed, 18 insertions(+), 16 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index aeb0c96..b147d66 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/context-708054d.tar.gz
/context-b06ed15.tar.gz
+/context-14f550f.tar.gz
diff --git a/golang-github-gorilla-context.spec b/golang-github-gorilla-context.spec
index a13bafd..2bee75a 100644
--- a/golang-github-gorilla-context.spec
+++ b/golang-github-gorilla-context.spec
@@ -1,20 +1,18 @@
-%global debug_package %{nil}
%global import_path github.com/gorilla/context
-%global gopath %{_datadir}/gocode
-%global commit b06ed15e1c7a08fa1ba783fe94fff89127587f9e
+%global commit 14f550f51af52180c2eefed15e5fd18d63c0a64a
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: golang-github-gorilla-context
Version: 0
-Release: 0.24.git%{shortcommit}%{?dist}
+Release: 0.25.git%{shortcommit}%{?dist}
Summary: A golang registry for global request variables
License: BSD
URL: http://www.gorillatoolkit.org/pkg/context
Source0: https://%{import_path}/archive/%{commit}/context-%{shortcommit}.tar.gz
-%if 0%{?fedora} >= 19
+%if 0%{?fedora}
BuildArch: noarch
%else
-ExclusiveArch: %{ix86} x86_64 %{arm}
+ExclusiveArch: %{go_arches}
%endif
%description
@@ -26,8 +24,9 @@ sessions values to be saved at the end of a request. There are several
other common uses.
%package devel
-BuildRequires: golang
-Requires: golang
+# Earliest NVR containing relevant golang macros
+BuildRequires: golang >= 1.2.1-3
+Requires: golang >= 1.2.1-3
Summary: A golang registry for global request variables
Provides: golang(%{import_path}) = %{version}-%{release}
@@ -48,23 +47,25 @@ which use gorilla/context.
%build
%install
-install -d %{buildroot}/%{gopath}/src/%{import_path}
-cp -av *.go %{buildroot}/%{gopath}/src/%{import_path}
+install -d -p %{buildroot}%{gopath}/src/%{import_path}
+cp -pav *.go %{buildroot}%{gopath}/src/%{import_path}
%check
-GOPATH=%{buildroot}/%{gopath} go test %{import_path}
+GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}
%files devel
%defattr(-,root,root,-)
%doc LICENSE README.md
-%dir %attr(755,root,root) %{gopath}
-%dir %attr(755,root,root) %{gopath}/src
-%dir %attr(755,root,root) %{gopath}/src/github.com
%dir %attr(755,root,root) %{gopath}/src/github.com/gorilla
-%dir %attr(755,root,root) %{gopath}/src/github.com/gorilla/context
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}
%{gopath}/src/%{import_path}/*.go
%changelog
+* Mon Jul 21 2014 Lokesh Mandvekar <lsm5(a)fedoraproject.org> - 0-0.25.git
+- update to commit 14f550f51a for docker 1.1.0 (and 1.1.1)
+- use golang packaging macros wherever applicable
+- do not own directories owned by 'golang' package
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 0-0.24.gitb06ed15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index 41e4678..96b7f07 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fe04a949a67afd80cb8f9a04609883f8 context-b06ed15.tar.gz
+1a9701c9c4c9354d5152244e505aba5e context-14f550f.tar.gz
9 years, 11 months