]> code.ossystems Code Review - openembedded-core.git/commitdiff
glibc: use cross-rpcgen to replace host's rpcgen
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 19 Aug 2015 07:51:01 +0000 (00:51 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Aug 2015 22:43:25 +0000 (23:43 +0100)
There might be unexpected errors when use host's rpcgen.

[YOCTO #8181]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/glibc/glibc_2.22.bb

index 6aaf72260aac9033f4321d7dcd28d99eb39e160e..f0e1fad450cb182b8f9f3bcb19f79efb4a09de00 100644 (file)
@@ -97,10 +97,6 @@ do_configure () {
 # calls for now
 # don't pass CPPFLAGS into configure, since it upsets the kernel-headers
 # version check and doesn't really help with anything
-        if [ -z "`which rpcgen`" ]; then
-                echo "rpcgen not found.  Install glibc-devel."
-                exit 1
-        fi
         (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
         find ${S} -name "configure" | xargs touch
         CPPFLAGS="" oe_runconf
@@ -119,7 +115,7 @@ do_compile () {
                for r in ${rpcsvc}; do
                        h=`echo $r|sed -e's,\.x$,.h,'`
                        rm -f $h
-                       rpcgen -h $r -o $h || bbwarn "${PN}: unable to generate header for $r"
+                       ${B}/sunrpc/cross-rpcgen -h $r -o $h || bbwarn "${PN}: unable to generate header for $r"
                done
        )
        echo "Adjust ldd script"