diff options
author | Yao Xinpan <yaoxp@cn.fujitsu.com> | 2014-06-20 14:47:02 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-24 19:54:12 +0100 |
commit | cc480eafe576aa6c56a58f6ef71bf8be705aa8b1 (patch) | |
tree | 8507110725b1afd9db05abb92ddac4f1fdccec12 /meta/recipes-connectivity | |
parent | df7f5847e1aef99e8ca2b7796e44c12728ba9240 (diff) | |
download | poky-cc480eafe576aa6c56a58f6ef71bf8be705aa8b1.tar.gz |
nfs-utils: fix the --with-statdpath= flag
if --with-statdpath= is not the default value, will happen the following questions:
'Failed to open directory sm: No such file or directory'.
Submitted to nfs-utils mailing list here:
http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commitdiff;h=3b1457d219ceb1058d44bacc657581f13437ae40#patch1
This has been accepted into upstream nfs-utils so it will not be needed
for future versions.
(From OE-Core rev: 15dbdfc6a7e3f03862d9c670ffd2ae8f4d9d8b69)
Signed-off-by: Yao Xinpan <yaoxp@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils/0001-statd-fixed-the-with-statdpath-flag.patch | 41 | ||||
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-statd-fixed-the-with-statdpath-flag.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-statd-fixed-the-with-statdpath-flag.patch new file mode 100644 index 0000000000..2ce824cf9e --- /dev/null +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-statd-fixed-the-with-statdpath-flag.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 3b1457d219ceb1058d44bacc657581f13437ae40 Mon Sep 17 00:00:00 2001 | ||
2 | From: Steve Dickson <steved@redhat.com> | ||
3 | Date: Tue, 17 Jun 2014 13:28:53 -0400 | ||
4 | Subject: [PATCH] statd: fixed the --with-statdpath= flag | ||
5 | |||
6 | Create the given path set with --with-statdpath | ||
7 | |||
8 | Signed-off-by: chendt.fnst@cn.fujitsu.com | ||
9 | Reported-by: yaoxp@cn.fujitsu.com | ||
10 | Signed-off-by: Steve Dickson <steved@redhat.com> | ||
11 | Upstream-Status: Backport | ||
12 | --- | ||
13 | Makefile.am | 10 +++++----- | ||
14 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
15 | |||
16 | diff --git a/Makefile.am b/Makefile.am | ||
17 | index ae7cd16..5824adc 100644 | ||
18 | --- a/Makefile.am | ||
19 | +++ b/Makefile.am | ||
20 | @@ -54,13 +54,13 @@ install-data-hook: | ||
21 | touch $(DESTDIR)$(statedir)/xtab; chmod 644 $(DESTDIR)$(statedir)/xtab | ||
22 | touch $(DESTDIR)$(statedir)/etab; chmod 644 $(DESTDIR)$(statedir)/etab | ||
23 | touch $(DESTDIR)$(statedir)/rmtab; chmod 644 $(DESTDIR)$(statedir)/rmtab | ||
24 | - mkdir -p $(DESTDIR)$(statedir)/sm $(DESTDIR)$(statedir)/sm.bak | ||
25 | - touch $(DESTDIR)$(statedir)/state | ||
26 | - chmod go-rwx $(DESTDIR)$(statedir)/sm $(DESTDIR)$(statedir)/sm.bak $(DESTDIR)$(statedir)/state | ||
27 | - -chown $(statduser) $(DESTDIR)$(statedir)/sm $(DESTDIR)$(statedir)/sm.bak $(DESTDIR)$(statedir)/state | ||
28 | + mkdir -p $(DESTDIR)$(statdpath)/sm $(DESTDIR)$(statdpath)/sm.bak | ||
29 | + touch $(DESTDIR)$(statdpath)/state | ||
30 | + chmod go-rwx $(DESTDIR)$(statdpath)/sm $(DESTDIR)$(statdpath)/sm.bak $(DESTDIR)$(statdpath)/state | ||
31 | + -chown $(statduser) $(DESTDIR)$(statdpath)/sm $(DESTDIR)$(statdpath)/sm.bak $(DESTDIR)$(statdpath)/state | ||
32 | |||
33 | uninstall-hook: | ||
34 | rm $(DESTDIR)$(statedir)/xtab | ||
35 | rm $(DESTDIR)$(statedir)/etab | ||
36 | rm $(DESTDIR)$(statedir)/rmtab | ||
37 | - rm $(DESTDIR)$(statedir)/state | ||
38 | + rm $(DESTDIR)$(statdpath)/state | ||
39 | -- | ||
40 | 1.8.4.2 | ||
41 | |||
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb index 8575647473..c813d7f61e 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb | |||
@@ -30,6 +30,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x | |||
30 | file://nfs-mountd.service \ | 30 | file://nfs-mountd.service \ |
31 | file://nfs-statd.service \ | 31 | file://nfs-statd.service \ |
32 | file://nfs-utils-Do-not-pass-CFLAGS-to-gcc-while-building.patch \ | 32 | file://nfs-utils-Do-not-pass-CFLAGS-to-gcc-while-building.patch \ |
33 | file://0001-statd-fixed-the-with-statdpath-flag.patch \ | ||
33 | " | 34 | " |
34 | 35 | ||
35 | SRC_URI[md5sum] = "6e93a7997ca3a1eac56bf219adab72a8" | 36 | SRC_URI[md5sum] = "6e93a7997ca3a1eac56bf219adab72a8" |