summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-08-19 00:51:01 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-24 23:46:54 +0100
commitf62afbf633afcaddcb2b0ba6efa39b375fcfa2ef (patch)
tree8c174242fb886b6abfef24ff639b6f9631aadb3e /meta
parentee80b725aa6b59ba59d38c710bd9e07950eb24f7 (diff)
downloadpoky-f62afbf633afcaddcb2b0ba6efa39b375fcfa2ef.tar.gz
glibc: use cross-rpcgen to replace host's rpcgen
There might be unexpected errors when use host's rpcgen. [YOCTO #8181] (From OE-Core rev: 7daac5798ac9e64efe00d8fca3adc463858a185d) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/glibc/glibc_2.22.bb6
1 files changed, 1 insertions, 5 deletions
diff --git a/meta/recipes-core/glibc/glibc_2.22.bb b/meta/recipes-core/glibc/glibc_2.22.bb
index 6aaf72260a..f0e1fad450 100644
--- a/meta/recipes-core/glibc/glibc_2.22.bb
+++ b/meta/recipes-core/glibc/glibc_2.22.bb
@@ -97,10 +97,6 @@ do_configure () {
97# calls for now 97# calls for now
98# don't pass CPPFLAGS into configure, since it upsets the kernel-headers 98# don't pass CPPFLAGS into configure, since it upsets the kernel-headers
99# version check and doesn't really help with anything 99# version check and doesn't really help with anything
100 if [ -z "`which rpcgen`" ]; then
101 echo "rpcgen not found. Install glibc-devel."
102 exit 1
103 fi
104 (cd ${S} && gnu-configize) || die "failure in running gnu-configize" 100 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
105 find ${S} -name "configure" | xargs touch 101 find ${S} -name "configure" | xargs touch
106 CPPFLAGS="" oe_runconf 102 CPPFLAGS="" oe_runconf
@@ -119,7 +115,7 @@ do_compile () {
119 for r in ${rpcsvc}; do 115 for r in ${rpcsvc}; do
120 h=`echo $r|sed -e's,\.x$,.h,'` 116 h=`echo $r|sed -e's,\.x$,.h,'`
121 rm -f $h 117 rm -f $h
122 rpcgen -h $r -o $h || bbwarn "${PN}: unable to generate header for $r" 118 ${B}/sunrpc/cross-rpcgen -h $r -o $h || bbwarn "${PN}: unable to generate header for $r"
123 done 119 done
124 ) 120 )
125 echo "Adjust ldd script" 121 echo "Adjust ldd script"