X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=meta-starlingx%2Fmeta-stx-integ%2Frecipes-devtools%2Fperl%2Flibsocket6-perl%2F0001-socket6-perl-fix-configure-error.patch;fp=meta-starlingx%2Fmeta-stx-integ%2Frecipes-devtools%2Fperl%2Flibsocket6-perl%2F0001-socket6-perl-fix-configure-error.patch;h=07745c8e63097c4fb1ea10067537f08f802caa06;hb=e0634c6eaf2fe2641a0fb90e84a5defb880b1335;hp=0000000000000000000000000000000000000000;hpb=210d0f78485e760dffcdd3f630f59cec797f3f11;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-integ/recipes-devtools/perl/libsocket6-perl/0001-socket6-perl-fix-configure-error.patch b/meta-starlingx/meta-stx-integ/recipes-devtools/perl/libsocket6-perl/0001-socket6-perl-fix-configure-error.patch new file mode 100644 index 0000000..07745c8 --- /dev/null +++ b/meta-starlingx/meta-stx-integ/recipes-devtools/perl/libsocket6-perl/0001-socket6-perl-fix-configure-error.patch @@ -0,0 +1,34 @@ +From b33a6a83687fc58cd5f662d44ba8819498cb80a4 Mon Sep 17 00:00:00 2001 +From: Changqing Li +Date: Thu, 9 Aug 2018 14:10:32 +0800 +Subject: [PATCH] socket6-perl: fix configure error + +only do IPv6_CHECK_INET_NTOP when not cross compile to fix below +error: checking for working inet_ntop..., configure: error: +cannot run test program while cross compiling + +Upstream-Status: Inappropriate [oe specific] + +Signed-off-by: Changqing Li +--- + configure.in | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/configure.in b/configure.in +index 1fe22e1..1a7cf94 100644 +--- a/configure.in ++++ b/configure.in +@@ -63,7 +63,9 @@ if test $ac_cv_lib_inet6_getaddrinfo = yes; then + INET6LIBS="-L$ipv6_cv_dir/lib -linet6" + fi + +-IPv6_CHECK_INET_NTOP() ++if test "$cross_compiling" != yes; then ++ IPv6_CHECK_INET_NTOP() ++fi + IPv6_CHECK_SA_LEN() + IPv6_CHECK_SIN6_SCOPE_ID() + IPv6_CHECK_SOCKLEN_T() +-- +2.7.4 +