diff options
author | Zheng Junling <zhengjunling@huawei.com> | 2014-12-03 12:38:30 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-31 10:18:58 +0000 |
commit | c54b9fb2edb56be167260dacec0be4c883b9c9e6 (patch) | |
tree | 5364e062e6d83204e1306fc2b3112f4d9cfc6177 /meta | |
parent | 64271845dca62806372a89c1eb8b1e12eadb034b (diff) | |
download | poky-c54b9fb2edb56be167260dacec0be4c883b9c9e6.tar.gz |
openssh: fix using the original config files in srcdir
Currently, we install our own ssh_config and sshd_config into ${S} in
do_compile_append() task. So when finishing compiling, their .out files
are generated by the original files, rather than by our own files.
In most cases, installing "$(CONFIGFILES)" in Makefile will generate .out
files again, and then installing "install-sysconf", which will install
these two files into $(DESTDIR), thus we get what we expect.
However, when parallel installing, "install-sysconf" may be installed
before "$(CONFIGFILES)" sometimes. In this rare case, the .out files
generated in the first time rather than those in the second time will be
installed into $(DESTDIR), and thus we get an unexpect result.
This patch fixes this bug through transfering the installing of our own
files from do_compile_append() into do_configure_prepend().
(From OE-Core rev: 6a60a4ba8d8e529882daa33140c9a2fc08714fb2)
(From OE-Core rev: af1096b7e1e9c15d83fb44739d449fcbaf70c220)
Signed-off-by: Zheng Junling <zhengjunling@huawei.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-connectivity/openssh/openssh_6.6p1.bb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh_6.6p1.bb b/meta/recipes-connectivity/openssh/openssh_6.6p1.bb index 047a895aae..e4468c17c3 100644 --- a/meta/recipes-connectivity/openssh/openssh_6.6p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_6.6p1.bb | |||
@@ -75,16 +75,13 @@ CACHED_CONFIGUREVARS += "ac_cv_path_PATH_PASSWD_PROG=${bindir}/passwd" | |||
75 | EXTRA_OECONF_append_libc-uclibc=" --without-pam" | 75 | EXTRA_OECONF_append_libc-uclibc=" --without-pam" |
76 | 76 | ||
77 | do_configure_prepend () { | 77 | do_configure_prepend () { |
78 | install -m 0644 ${WORKDIR}/sshd_config ${B}/ | ||
79 | install -m 0644 ${WORKDIR}/ssh_config ${B}/ | ||
78 | if [ ! -e acinclude.m4 -a -e aclocal.m4 ]; then | 80 | if [ ! -e acinclude.m4 -a -e aclocal.m4 ]; then |
79 | cp aclocal.m4 acinclude.m4 | 81 | cp aclocal.m4 acinclude.m4 |
80 | fi | 82 | fi |
81 | } | 83 | } |
82 | 84 | ||
83 | do_compile_append () { | ||
84 | install -m 0644 ${WORKDIR}/sshd_config ${S}/ | ||
85 | install -m 0644 ${WORKDIR}/ssh_config ${S}/ | ||
86 | } | ||
87 | |||
88 | do_install_append () { | 85 | do_install_append () { |
89 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then | 86 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then |
90 | install -D -m 0755 ${WORKDIR}/sshd ${D}${sysconfdir}/pam.d/sshd | 87 | install -D -m 0755 ${WORKDIR}/sshd ${D}${sysconfdir}/pam.d/sshd |