[packages/mock] fix path to stat binary
glen
glen at pld-linux.org
Sun Jun 15 18:43:32 CEST 2014
commit 116c013a8731638b3fa267f314dd91262dc3160a
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Jun 15 15:14:56 2014 +0300
fix path to stat binary
mock.spec | 4 +++-
path-stat.patch | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/mock.spec b/mock.spec
index 6ab3aa6..cd38340 100644
--- a/mock.spec
+++ b/mock.spec
@@ -4,13 +4,14 @@
Summary: Builds packages inside chroots
Name: mock
Version: 1.1.38
-Release: 0.6
+Release: 0.7
License: GPL v2+
Group: Development/Tools
Source0: https://git.fedorahosted.org/cgit/mock.git/snapshot/%{name}-%{version}.tar.xz
# Source0-md5: dc3d5c4ed6657d158a30d949f7baac88
Patch0: no-srpm-header.patch
Patch1: config.patch
+Patch2: path-stat.patch
URL: https://fedoraproject.org/wiki/Projects/Mock
BuildRequires: autoconf
BuildRequires: automake
@@ -67,6 +68,7 @@ bash-completion for Mock.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
# keep for reference to build pld files
install -d sample-configs
diff --git a/path-stat.patch b/path-stat.patch
new file mode 100644
index 0000000..58706b2
--- /dev/null
+++ b/path-stat.patch
@@ -0,0 +1,11 @@
+--- mock-1.1.38/py/mockbuild/util.py~ 2014-06-14 18:08:55.000000000 +0300
++++ mock-1.1.38/py/mockbuild/util.py 2014-06-15 15:12:08.895436057 +0300
+@@ -444,7 +444,7 @@
+ return env
+
+ def get_fs_type(path):
+- cmd = '/usr/bin/stat -f -L -c %%T %s' % path
++ cmd = 'stat -f -L -c %%T %s' % path
+ p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
+ p.wait()
+ return p.stdout.readline().strip()
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mock.git/commitdiff/116c013a8731638b3fa267f314dd91262dc3160a
More information about the pld-cvs-commit
mailing list