diff options
author | Pascal Bach <pascal.bach@siemens.com> | 2019-02-14 17:15:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-16 08:19:34 +0000 |
commit | a08083aee5a9a7fd016be9cfbf624975a7dca13d (patch) | |
tree | b64d526e1442c4cfd271cc07a93f065a4a426c15 /meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb | |
parent | d76ab279e6feffd7639ed5035b887a7bb74583f5 (diff) | |
download | poky-a08083aee5a9a7fd016be9cfbf624975a7dca13d.tar.gz |
nfs-utils: build tools with target compiler
Some tools were built with CC_FOR_BUILD which points to the target
compiler. The current patch avoided issues by deleting some of the
binaries during install.
This patch replaces the CC_FOR_BUILD with CC so the tools are built with
the target compiler. This means the binaries no longer need to be
deleted.
I stumbled upon this by trying to globally add "--ffile-prefix-map", which
is not supported by my host GCC, to get rid of some "buildpaths" QA Warnings.
Cc: Robert Yang <liezhi.yang@windriver.com>
(From OE-Core rev: ea98fd17ae38efca13ce97c2e0eaacb8cfde597d)
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb')
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb index 84530f698b..ac4437b925 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb | |||
@@ -26,7 +26,6 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x | |||
26 | file://nfs-mountd.service \ | 26 | file://nfs-mountd.service \ |
27 | file://nfs-statd.service \ | 27 | file://nfs-statd.service \ |
28 | file://proc-fs-nfsd.mount \ | 28 | file://proc-fs-nfsd.mount \ |
29 | file://nfs-utils-Do-not-pass-CFLAGS-to-gcc-while-building.patch \ | ||
30 | file://nfs-utils-debianize-start-statd.patch \ | 29 | file://nfs-utils-debianize-start-statd.patch \ |
31 | file://bugfix-adjust-statd-service-name.patch \ | 30 | file://bugfix-adjust-statd-service-name.patch \ |
32 | file://nfs-utils-musl-limits.patch \ | 31 | file://nfs-utils-musl-limits.patch \ |
@@ -35,6 +34,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x | |||
35 | file://clang-format-string.patch \ | 34 | file://clang-format-string.patch \ |
36 | file://0001-Makefile.am-update-the-path-of-libnfs.a.patch \ | 35 | file://0001-Makefile.am-update-the-path-of-libnfs.a.patch \ |
37 | file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \ | 36 | file://0001-Makefile.am-fix-undefined-function-for-libnsm.a.patch \ |
37 | file://0001-Don-t-build-tools-with-CC_FOR_BUILD.patch \ | ||
38 | " | 38 | " |
39 | SRC_URI_append_libc-glibc = " file://0001-configure.ac-Do-not-fatalize-Wmissing-prototypes.patch" | 39 | SRC_URI_append_libc-glibc = " file://0001-configure.ac-Do-not-fatalize-Wmissing-prototypes.patch" |
40 | SRC_URI_append_libc-musl = " file://nfs-utils-musl-res_querydomain.patch" | 40 | SRC_URI_append_libc-musl = " file://nfs-utils-musl-res_querydomain.patch" |
@@ -147,11 +147,6 @@ do_install_append () { | |||
147 | chown -R rpcuser:rpcuser ${D}${localstatedir}/lib/nfs/statd | 147 | chown -R rpcuser:rpcuser ${D}${localstatedir}/lib/nfs/statd |
148 | chmod 0644 ${D}${localstatedir}/lib/nfs/statd/state | 148 | chmod 0644 ${D}${localstatedir}/lib/nfs/statd/state |
149 | 149 | ||
150 | # the following are built by CC_FOR_BUILD | ||
151 | rm -f ${D}${sbindir}/rpcdebug | ||
152 | rm -f ${D}${sbindir}/rpcgen | ||
153 | rm -f ${D}${sbindir}/locktest | ||
154 | |||
155 | # Make python tools use python 3 | 150 | # Make python tools use python 3 |
156 | sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${sbindir}/mountstats ${D}${sbindir}/nfsiostat | 151 | sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${sbindir}/mountstats ${D}${sbindir}/nfsiostat |
157 | 152 | ||