Skip to contentSkip to conversation

socat: upgrade to 1.7.2.4

PATCH Superseded Hongxu Jia 2 participants 8 messages May 27, 2014 – May 28, 2014

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Hongxu Jia

author
#0 lore raw

v2 cover socat: upgrade to 1.7.2.4

Change in V2:
- Add descriptions about what was the problem that was encountered while upgrading to 1.7.2.4.

The following changes since commit 894df445fa71a170397c6e0b4960a89ef20a4230:

guile: Update to 2.0.11 version (2014-05-21 19:50:21 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib hongxu/socat
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/socat

Hongxu Jia (3):
socat: upgrade to 1.7.2.4
socat: fix supporting cross compiling
socat: fix linux/errqueue.h not found

 .../recipes-connectivity/socat/socat/compile.patch | 163 +++++++++++----------
 .../socat/socat/fix-cross-compiling-failed.patch   |  34 +++++
 .../socat/fix-linux-errqueue.h-not-found.patch     |  40 +++++
 .../socat/{socat_1.7.2.3.bb => socat_1.7.2.4.bb}   |  14 +-
 4 files changed, 166 insertions(+), 85 deletions(-)
 create mode 100644 meta/recipes-connectivity/socat/socat/fix-cross-compiling-failed.patch
 create mode 100644 meta/recipes-connectivity/socat/socat/fix-linux-errqueue.h-not-found.patch
 rename meta/recipes-connectivity/socat/{socat_1.7.2.3.bb => socat_1.7.2.4.bb} (70%)
Signature · 1 line
1.8.1.2
author
#1 lore raw

PATCH v2 1/3 socat: upgrade to 1.7.2.4

---
 .../recipes-connectivity/socat/socat/compile.patch | 163 +++++++++++----------
 .../socat/{socat_1.7.2.3.bb => socat_1.7.2.4.bb}   |  12 +-
 2 files changed, 90 insertions(+), 85 deletions(-)
 rename meta/recipes-connectivity/socat/{socat_1.7.2.3.bb => socat_1.7.2.4.bb} (75%)
meta/recipes-connectivity/socat/socat/compile.patch +83 -80
index 4d1a0b6..1486e41 100644
@@ -1,15 +1,16 @@
 Upstream-Status: Inappropriate [configuration]
 
 The patch is from http://git.openembedded.org/openembedded/tree/recipes/socat/files/compile.patch
-and was rebased to socat-1.7.2.0.
+and was rebased to socat-1.7.2.4.
+Signed-off-by: Hongxu Jia <[email protected]>
+---
+ configure.in | 294 ++++++++++++++++++++++++++++++-----------------------------
+ 1 file changed, 148 insertions(+), 146 deletions(-)
 
-Signed-off-by: Dexuan Cui <[email protected]>
-Fri Dec 16 17:12:17 CST 2011
-
-diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
---- socat-1.7.2.0.orig/configure.in	2011-12-04 21:34:16.000000000 +0800
-+++ socat-1.7.2.0/configure.in	2011-12-16 17:08:59.698367071 +0800
-@@ -88,7 +88,7 @@
+diff --git a/configure.in b/configure.in
+--- a/configure.in
++++ b/configure.in
+@@ -95,7 +95,7 @@ AC_SEARCH_LIBS([res_9_init], [resolv])
  
  
  dnl Check for extra socket library (for Solaris)
@@ -18,7 +19,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent))
  AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt))
  
-@@ -102,7 +102,7 @@
+@@ -128,7 +128,7 @@ AC_CACHE_VAL(sc_cv_have_prototype_hstrerror,
   [sc_cv_have_prototype_hstrerror=yes]);
   CFLAGS="$CFLAGS1"])
  if test $sc_cv_have_prototype_hstrerror = yes; then
@@ -27,7 +28,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_have_prototype_hstrerror)
  
-@@ -111,83 +111,83 @@
+@@ -137,83 +137,83 @@ AC_MSG_CHECKING(whether to include help)
  AC_ARG_ENABLE(help, [  --disable-help          disable help],
  	      [case "$enableval" in
  	       no) AC_MSG_RESULT(no);;
@@ -131,7 +132,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  		*)
  		    AC_MSG_RESULT(no);;
  		esac])
-@@ -196,9 +196,9 @@
+@@ -222,9 +222,9 @@ AC_MSG_CHECKING(whether to include IPv4 support)
  AC_ARG_ENABLE(ip4, [  --disable-ip4           disable IPv4 support],
  	      [case "$enableval" in
  	       no) AC_MSG_RESULT(no);;
@@ -143,7 +144,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  
  AC_MSG_CHECKING(whether to include IPv6 support)
  AC_ARG_ENABLE(ip6, [  --disable-ip6           disable IPv6 support],
-@@ -209,7 +209,7 @@
+@@ -235,7 +235,7 @@ AC_ARG_ENABLE(ip6, [  --disable-ip6           disable IPv6 support],
  	      [ AC_MSG_RESULT(yes);  WITH_IP6=1 ])
  if test "$WITH_IP6"; then
    AC_CHECK_HEADERS([netinet/ip6.h],
@@ -152,7 +153,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
      [AC_MSG_WARN([include file netinet/ip6.h not found, disabling IP6])],
      [AC_INCLUDES_DEFAULT
       #ifdef HAVE_NETINET_IN_H
-@@ -242,17 +242,17 @@
+@@ -268,17 +268,17 @@ AC_MSG_CHECKING(whether to include raw IP support)
  AC_ARG_ENABLE(rawip, [  --disable-rawip         disable raw IP support],
  	      [case "$enableval" in
  	       no) AC_MSG_RESULT(no);;
@@ -163,7 +164,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
 +	       [AC_DEFINE(WITH_RAWIP, [1], [With rawip]) AC_MSG_RESULT(yes)])
  
  AC_MSG_CHECKING(whether to include generic socket support)
- AC_ARG_ENABLE(rawsocket, [  --disable-genericsocket disable generic socket support],
+ AC_ARG_ENABLE(genericsocket, [  --disable-genericsocket disable generic socket support],
  	      [case "$enableval" in
  	       no) AC_MSG_RESULT(no);;
 -	       *) AC_DEFINE(WITH_GENERICSOCKET) AC_MSG_RESULT(yes);;
@@ -171,10 +172,10 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  	       esac],
 -	       [AC_DEFINE(WITH_GENERICSOCKET) AC_MSG_RESULT(yes)])
 +	       [AC_DEFINE(WITH_GENERICSOCKET, [1], [With genericsocket]) AC_MSG_RESULT(yes)])
- AC_MSG_CHECKING(whether to include raw network interface support)
+ AC_MSG_CHECKING(whether to include generic network interface support)
  AC_ARG_ENABLE(interface, [  --disable-interface  disable network interface support],
  	      [case "$enableval" in
-@@ -262,35 +262,35 @@
+@@ -288,35 +288,35 @@ AC_ARG_ENABLE(interface, [  --disable-interface  disable network interface suppo
  	       [AC_MSG_RESULT(yes);  WITH_INTERFACE=1 ])
  if test "$WITH_INTERFACE"; then
    AC_CHECK_HEADER(netpacket/packet.h,
@@ -217,7 +218,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  
  AC_MSG_CHECKING(whether to include SCTP support)
  AC_ARG_ENABLE(sctp, [  --disable-sctp           disable SCTP support],
-@@ -310,7 +310,7 @@
+@@ -336,7 +336,7 @@ AC_CACHE_VAL(sc_cv_define_ipproto_sctp,
  [sc_cv_define_ipproto_sctp=no])])
  AC_MSG_RESULT($sc_cv_define_ipproto_sctp)
  if test $sc_cv_define_ipproto_sctp = yes; then
@@ -226,7 +227,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  else
     AC_MSG_WARN([IPPROTO_SCTP undefined, disabling SCTP support])
  fi
-@@ -320,65 +320,65 @@
+@@ -346,65 +346,65 @@ AC_MSG_CHECKING(whether to include listen support)
  AC_ARG_ENABLE(listen, [  --disable-listen        disable listen support],
  	      [case "$enableval" in
  	       no) AC_MSG_RESULT(no);;
@@ -308,7 +309,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  
  AC_MSG_CHECKING(whether to include readline support)
  AC_ARG_ENABLE(readline, [  --disable-readline      disable readline support],
-@@ -423,10 +423,10 @@
+@@ -449,10 +449,10 @@ if test -n "$WITH_READLINE"; then
      
      if test -n "$sc_usable_readline_found"; then
        AC_MSG_RESULT(yes)
@@ -323,7 +324,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
        break
      else
        AC_MSG_RESULT(no)
-@@ -469,7 +469,7 @@
+@@ -495,7 +495,7 @@ if test -n "$WITH_OPENSSL"; then
        done])
    ])
    if test "$sc_cv_have_openssl_ssl_h" = "yes"; then
@@ -332,7 +333,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
    fi
    AC_MSG_NOTICE(checked for openssl/ssl.h... $sc_cv_have_openssl_ssl_h)
  fi	# end checking for openssl/ssl.h
-@@ -501,7 +501,7 @@
+@@ -527,7 +527,7 @@ if test -n "$WITH_OPENSSL" -a "$sc_cv_have_openssl_ssl_h" = 'yes'; then
      ]
    )
    if test "$sc_cv_have_libssl" = 'yes'; then
@@ -341,7 +342,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
    fi
    AC_MSG_RESULT($sc_cv_have_libssl)
  fi
-@@ -529,7 +529,7 @@
+@@ -555,7 +555,7 @@ fi
  #fi
  if test -n "$WITH_OPENSSL"; then
    if test "$sc_cv_have_openssl_ssl_h" = "yes" -a "$sc_cv_have_libssl" = "yes"; then
@@ -350,7 +351,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
    else
      AC_MSG_WARN([not all components of OpenSSL found, disabling it]);
    fi
-@@ -577,7 +577,7 @@
+@@ -604,7 +604,7 @@ if test -n "$WITH_FIPS"; then
      )]
    )
    if test "$sv_cv_have_openssl_fips_h" = "yes"; then
@@ -359,7 +360,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
    fi
    AC_MSG_NOTICE(checked for openssl/fips.h... $sc_cv_have_openssl_ssl_h)
  fi
-@@ -608,15 +608,15 @@
+@@ -635,15 +635,15 @@ if test -n "$WITH_FIPS" -a "$sc_cv_have_openssl_fips_h" = 'yes'; then
      ]
    )
    if test "$sc_cv_have_libcrypto" = 'yes'; then
@@ -378,7 +379,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
    else
      AC_MSG_WARN([not all components of OpenSSL FIPS found, disabling it]);
    fi
-@@ -637,17 +637,17 @@
+@@ -664,17 +664,17 @@ if ! test "$ac_cv_header_linux_if_tun_h" = 'yes'; then
  fi
  #
  if test -n "$WITH_TUN"; then
@@ -399,7 +400,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  		 SYCLS="sycls.c"; SSLCLS="sslcls.c"; AC_MSG_RESULT(yes)])
  AC_SUBST(SYCLS)
  AC_SUBST(SSLCLS)
-@@ -656,31 +656,31 @@
+@@ -683,31 +683,31 @@ AC_MSG_CHECKING(whether to include file descriptor analyzer)
  AC_ARG_ENABLE(filan, [  --disable-filan         disable file descriptor analyzer],
  	      [case "$enableval" in
  	       no) FILAN=""; AC_MSG_RESULT(no);;
@@ -443,7 +444,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  
  #AC_SUBST(V_INCL)
  
-@@ -697,7 +697,7 @@
+@@ -724,7 +724,7 @@ AC_STRUCT_ST_RDEV
  AC_HEADER_TIME
  
  dnl Check for extra realtime library (for Solaris)
@@ -452,7 +453,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  #AC_CHECK_FUNC(nanosleep, , AC_CHECK_LIB(rt, nanosleep))
  
  dnl Checks for library functions.
-@@ -719,7 +719,7 @@
+@@ -760,7 +760,7 @@ AC_CACHE_VAL(sc_cv_type_longlong,
  [sc_cv_type_longlong=yes],
  [sc_cv_type_longlong=no])])
  if test $sc_cv_type_longlong = yes; then
@@ -461,7 +462,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_type_longlong)
  
-@@ -735,7 +735,7 @@
+@@ -776,7 +776,7 @@ AC_CACHE_VAL(sc_cv_type_socklen,
  [sc_cv_type_socklen=yes],
  [sc_cv_type_socklen=no])])
  if test $sc_cv_type_socklen = yes; then
@@ -470,7 +471,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_type_socklen)
  
-@@ -745,7 +745,7 @@
+@@ -786,7 +786,7 @@ AC_CACHE_VAL(sc_cv_type_stat64,
  [sc_cv_type_stat64=yes],
  [sc_cv_type_stat64=no])])
  if test $sc_cv_type_stat64 = yes; then
@@ -479,7 +480,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_type_stat64)
  
-@@ -755,7 +755,7 @@
+@@ -796,7 +796,7 @@ AC_CACHE_VAL(sc_cv_type_off64,
  [sc_cv_type_off64=yes],
  [sc_cv_type_off64=no])])
  if test $sc_cv_type_off64 = yes; then
@@ -488,7 +489,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_type_off64)
  
-@@ -765,7 +765,7 @@
+@@ -806,7 +806,7 @@ AC_CACHE_VAL(sc_cv_type_sighandler,
  [sc_cv_type_sighandler=yes],
  [sc_cv_type_sighandler=no])])
  if test $sc_cv_type_sighandler = yes; then
@@ -497,7 +498,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_type_socklen)
  
-@@ -783,7 +783,7 @@
+@@ -824,7 +824,7 @@ AC_CACHE_VAL(sc_cv_type_uint8,
  [sc_cv_type_uint8=yes],
  [sc_cv_type_uint8=no])])
  if test $sc_cv_type_uint8 = yes; then
@@ -506,7 +507,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_type_uint8)
  
-@@ -801,7 +801,7 @@
+@@ -842,7 +842,7 @@ AC_CACHE_VAL(sc_cv_type_uint16,
  [sc_cv_type_uint16=yes],
  [sc_cv_type_uint16=no])])
  if test $sc_cv_type_uint16 = yes; then
@@ -515,7 +516,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_type_uint16)
  
-@@ -819,7 +819,7 @@
+@@ -860,7 +860,7 @@ AC_CACHE_VAL(sc_cv_type_uint32,
  [sc_cv_type_uint32=yes],
  [sc_cv_type_uint32=no])])
  if test $sc_cv_type_uint32 = yes; then
@@ -524,7 +525,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_type_uint32)
  
-@@ -837,7 +837,7 @@
+@@ -878,7 +878,7 @@ AC_CACHE_VAL(sc_cv_type_uint64,
  [sc_cv_type_uint64=yes],
  [sc_cv_type_uint64=no])])
  if test $sc_cv_type_uint64 = yes; then
@@ -533,7 +534,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_type_uint64)
  
-@@ -859,7 +859,7 @@
+@@ -900,7 +900,7 @@ AC_TRY_COMPILE([#include <sys/types.h>
  #include <sys/select.h>
  #endif],
  [fd_set s; s.fds_bits[0]=0;],
@@ -542,7 +543,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  [AC_MSG_RESULT(no);])
  
  AC_MSG_CHECKING(for sa_family_t)
-@@ -870,7 +870,7 @@
+@@ -911,7 +911,7 @@ AC_CACHE_VAL(sc_cv_type_sa_family_t,
  [sc_cv_type_sa_family_t=yes],
  [sc_cv_type_sa_family_t=no])])
  if test $sc_cv_type_sa_family_t = yes; then
@@ -551,7 +552,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_type_sa_family_t)
  
-@@ -880,7 +880,7 @@
+@@ -921,7 +921,7 @@ AC_CACHE_VAL(sc_cv_struct_sigaction_sa_sigaction,
  [sc_cv_struct_sigaction_sa_sigaction=yes],
  [sc_cv_struct_sigaction_sa_sigaction=no])])
  if test $sc_cv_struct_sigaction_sa_sigaction = yes; then
@@ -560,7 +561,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_sigaction_sa_sigaction)
  
-@@ -888,11 +888,11 @@
+@@ -929,11 +929,11 @@ AC_MSG_RESULT($sc_cv_struct_sigaction_sa_sigaction)
  AC_MSG_CHECKING(for termios.c_ispeed)
  AC_CACHE_VAL(sc_cv_termios_ispeed,
  [AC_TRY_COMPILE([#include <termios.h>],
@@ -574,7 +575,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_termios_ispeed)
  
-@@ -923,7 +923,7 @@
+@@ -965,7 +965,7 @@ AC_CACHE_VAL(ac_cv_ispeed_offset,
  LIBS="$LIBS1"
  AC_MSG_RESULT($ac_cv_ispeed_offset)
   if test $ac_cv_ispeed_offset -ge 0; then
@@ -583,7 +584,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
   fi
  fi
  
-@@ -942,7 +942,7 @@
+@@ -984,7 +984,7 @@ AC_CACHE_VAL(ac_cv_svid3,
   )]
  )])
  if test $ac_cv_svid3 = yes; then
@@ -592,7 +593,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($ac_cv_svid3)
  
-@@ -957,7 +957,7 @@
+@@ -999,7 +999,7 @@ AC_CACHE_VAL(sc_cv_struct_timespec,
  [sc_cv_struct_timespec=yes],
  [sc_cv_struct_timespec=no])])
  if test $sc_cv_struct_timespec = yes; then
@@ -601,7 +602,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_timespec)
  
-@@ -970,7 +970,7 @@
+@@ -1012,7 +1012,7 @@ AC_CACHE_VAL(sc_cv_struct_linger,
  [sc_cv_struct_linger=yes],
  [sc_cv_struct_linger=no])])
  if test $sc_cv_struct_linger = yes; then
@@ -610,7 +611,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_linger)
  
-@@ -984,7 +984,7 @@
+@@ -1026,7 +1026,7 @@ AC_CACHE_VAL(sc_cv_struct_ip_mreq,
  [sc_cv_struct_ip_mreq=yes],
  [sc_cv_struct_ip_mreq=no])])
  if test $sc_cv_struct_ip_mreq = yes; then
@@ -619,7 +620,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_ip_mreq)
  
-@@ -997,7 +997,7 @@
+@@ -1039,7 +1039,7 @@ AC_CACHE_VAL(sc_cv_struct_ip_mreqn,
  [sc_cv_struct_ip_mreqn=yes],
  [sc_cv_struct_ip_mreqn=no])])
  if test $sc_cv_struct_ip_mreqn = yes; then
@@ -628,7 +629,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_ip_mreqn)
  
-@@ -1010,7 +1010,7 @@
+@@ -1052,7 +1052,7 @@ AC_CACHE_VAL(sc_cv_struct_ipv6_mreq,
  [sc_cv_struct_ipv6_mreq=yes],
  [sc_cv_struct_ipv6_mreq=no])])
  if test $sc_cv_struct_ipv6_mreq = yes; then
@@ -637,7 +638,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_ipv6_mreq)
  
-@@ -1024,7 +1024,7 @@
+@@ -1066,7 +1066,7 @@ AC_CACHE_VAL(sc_cv_struct_ifreq,
  [sc_cv_struct_ifreq=yes],
  [sc_cv_struct_ifreq=no])])
  if test $sc_cv_struct_ifreq = yes; then
@@ -646,7 +647,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_ifreq)
  
-@@ -1039,7 +1039,7 @@
+@@ -1081,7 +1081,7 @@ AC_CACHE_VAL(sc_cv_struct_ifreq_ifr_index,
  [sc_cv_struct_ifreq_ifr_index=yes],
  [sc_cv_struct_ifreq_ifr_index=no])])
  if test $sc_cv_struct_ifreq_ifr_index = yes; then
@@ -655,7 +656,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_ifreq_ifr_index)
  
-@@ -1054,7 +1054,7 @@
+@@ -1096,7 +1096,7 @@ AC_CACHE_VAL(sc_cv_struct_ifreq_ifr_ifindex,
  [sc_cv_struct_ifreq_ifr_ifindex=yes],
  [sc_cv_struct_ifreq_ifr_ifindex=no])])
  if test $sc_cv_struct_ifreq_ifr_ifindex = yes; then
@@ -664,7 +665,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_ifreq_ifr_ifindex)
  
-@@ -1069,7 +1069,7 @@
+@@ -1111,7 +1111,7 @@ AC_CACHE_VAL(sc_cv_struct_sockaddr_salen,
  [sc_cv_struct_sockaddr_salen=yes],
  [sc_cv_struct_sockaddr_salen=no])])
  if test $sc_cv_struct_sockaddr_salen = yes; then
@@ -673,7 +674,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_sockaddr_salen)
  
-@@ -1080,31 +1080,31 @@
+@@ -1122,31 +1122,31 @@ AC_TRY_COMPILE([#include <sys/types.h>
  #include <netinet/in.h>],
  [struct sockaddr_in6 sa6;sa6.sin6_addr.s6_addr[0]=0;],
  [AC_MSG_RESULT(s6_addr);
@@ -711,7 +712,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  
      [AC_MSG_RESULT([none or unknown])]
  )])])])])])
-@@ -1116,7 +1116,7 @@
+@@ -1158,7 +1158,7 @@ AC_CACHE_VAL(sc_cv_struct_iovec,
  [sc_cv_struct_iovec=yes],
  [sc_cv_struct_iovec=no])])
  if test $sc_cv_struct_iovec = yes; then
@@ -720,7 +721,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_iovec)
  
-@@ -1129,7 +1129,7 @@
+@@ -1171,7 +1171,7 @@ AC_CACHE_VAL(sc_cv_struct_msghdr_msgcontrol,
  [sc_cv_struct_msghdr_msgcontrol=yes],
  [sc_cv_struct_msghdr_msgcontrol=no])])
  if test $sc_cv_struct_msghdr_msgcontrol = yes; then
@@ -729,7 +730,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_msghdr_msgcontrol)
  
-@@ -1142,7 +1142,7 @@
+@@ -1184,7 +1184,7 @@ AC_CACHE_VAL(sc_cv_struct_msghdr_msgcontrollen,
  [sc_cv_struct_msghdr_msgcontrollen=yes],
  [sc_cv_struct_msghdr_msgcontrollen=no])])
  if test $sc_cv_struct_msghdr_msgcontrollen = yes; then
@@ -738,7 +739,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_msghdr_msgcontrollen)
  
-@@ -1155,7 +1155,7 @@
+@@ -1197,7 +1197,7 @@ AC_CACHE_VAL(sc_cv_struct_msghdr_msgflags,
  [sc_cv_struct_msghdr_msgflags=yes],
  [sc_cv_struct_msghdr_msgflags=no])])
  if test $sc_cv_struct_msghdr_msgflags = yes; then
@@ -747,7 +748,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_msghdr_msgflags)
  
-@@ -1168,7 +1168,7 @@
+@@ -1210,7 +1210,7 @@ AC_CACHE_VAL(sc_cv_struct_cmsghdr,
  [sc_cv_struct_cmsghdr=yes],
  [sc_cv_struct_cmsghdr=no])])
  if test $sc_cv_struct_cmsghdr = yes; then
@@ -756,7 +757,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_cmsghdr)
  
-@@ -1181,7 +1181,7 @@
+@@ -1223,7 +1223,7 @@ AC_CACHE_VAL(sc_cv_struct_in_pktinfo,
  [sc_cv_struct_in_pktinfo=yes],
  [sc_cv_struct_in_pktinfo=no])])
  if test $sc_cv_struct_in_pktinfo = yes; then
@@ -765,7 +766,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_in_pktinfo)
  
-@@ -1211,7 +1211,7 @@
+@@ -1265,7 +1265,7 @@ AC_CACHE_VAL(sc_cv_struct_ip_ip_hl,
  [sc_cv_struct_ip_ip_hl=yes],
  [sc_cv_struct_ip_ip_hl=no])])
  if test $sc_cv_struct_ip_ip_hl = yes; then
@@ -774,7 +775,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  fi
  AC_MSG_RESULT($sc_cv_struct_ip_ip_hl)
  
-@@ -1219,19 +1219,19 @@
+@@ -1273,19 +1273,19 @@ AC_MSG_RESULT($sc_cv_struct_ip_ip_hl)
  dnl Library function checks
  
  dnl Check sigaction()
@@ -788,24 +789,23 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
 -AC_CHECK_FUNC(lseek64, AC_DEFINE(HAVE_LSEEK64))
 -AC_CHECK_FUNC(truncate64, AC_DEFINE(HAVE_TRUNCATE64))
 -AC_CHECK_FUNC(ftruncate64, AC_DEFINE(HAVE_FTRUNCATE64))
--
--AC_CHECK_FUNC(strtoll, AC_DEFINE(HAVE_STRTOLL))
--AC_CHECK_FUNC(hstrerror, AC_DEFINE(HAVE_HSTRERROR))
--AC_CHECK_FUNC(inet_ntop, AC_DEFINE(HAVE_INET_NTOP))
 +AC_CHECK_FUNC(stat64, AC_DEFINE(HAVE_STAT64, [1], [foo]))
 +AC_CHECK_FUNC(fstat64, AC_DEFINE(HAVE_FSTAT64, [1], [foo]))
 +AC_CHECK_FUNC(lstat64, AC_DEFINE(HAVE_LSTAT64, [1], [foo]))
 +AC_CHECK_FUNC(lseek64, AC_DEFINE(HAVE_LSEEK64, [1], [foo]))
 +AC_CHECK_FUNC(truncate64, AC_DEFINE(HAVE_TRUNCATE64, [1], [foo]))
 +AC_CHECK_FUNC(ftruncate64, AC_DEFINE(HAVE_FTRUNCATE64, [1], [foo]))
-+
+ 
+-AC_CHECK_FUNC(strtoll, AC_DEFINE(HAVE_STRTOLL))
+-AC_CHECK_FUNC(hstrerror, AC_DEFINE(HAVE_HSTRERROR))
+-AC_CHECK_FUNC(inet_ntop, AC_DEFINE(HAVE_INET_NTOP))
 +AC_CHECK_FUNC(strtoll, AC_DEFINE(HAVE_STRTOLL, [1], [foo]))
 +AC_CHECK_FUNC(hstrerror, AC_DEFINE(HAVE_HSTRERROR, [1], [foo]))
 +AC_CHECK_FUNC(inet_ntop, AC_DEFINE(HAVE_INET_NTOP, [1], [foo]))
  
  #if test "$ac_cv_func_hstrerror" = "yes"; then
  #  AC_MSG_CHECKING(if _XOPEN_SOURCE_EXTENDED is helpful)
-@@ -1254,25 +1254,26 @@
+@@ -1308,25 +1308,26 @@ AC_CHECK_FUNC(inet_ntop, AC_DEFINE(HAVE_INET_NTOP))
  
  dnl Search for openpty()
  # MacOS
@@ -838,16 +838,16 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  
  dnl Search for SSLv2_client_method, SSLv2_server_method
  AC_CHECK_FUNC(SSLv3_client_method, AC_DEFINE(HAVE_SSLv3_client_method), AC_CHECK_LIB(crypt, SSLv3_client_method, [LIBS=-lcrypt $LIBS]))
-@@ -1295,7 +1296,7 @@
- [ac_cv_have_z_modifier=no],
- [ac_cv_have_z_modifier=no])])
+@@ -1372,7 +1373,7 @@ else ac_cv_have_z_modifier=no
+ fi
+ )
  if test $ac_cv_have_z_modifier = yes; then
 -   AC_DEFINE(HAVE_FORMAT_Z)
 +   AC_DEFINE(HAVE_FORMAT_Z, [1], [have format z])
  fi
  AC_MSG_RESULT($ac_cv_have_z_modifier)
  
-@@ -1334,7 +1335,8 @@
+@@ -1412,7 +1413,8 @@ AC_CACHE_CHECK(shift offset of $1, $2,
   [$2=-1]
  )
   LIBS="$LIBS1"])
@@ -857,7 +857,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
  if test "$2" = -1; then
  AC_MSG_WARN(please determine $1_SHIFT manually)
  fi
-@@ -1374,7 +1376,7 @@
+@@ -1479,7 +1481,7 @@ AC_CACHE_CHECK(for equivalent simple type of $2, $4,
          [$4="0 /* unknown, taking default */"
  ]) ]) ]) ]) ]) ]) ]) ])
   CFLAGS="$CFLAGS1" ])
@@ -865,8 +865,8 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
 +AC_DEFINE_UNQUOTED($3, ${$4}, [foo])
  ])
  
- dnl find what physical type (basic C type) describes the given struct or union
-@@ -1406,7 +1408,7 @@
+ dnl see AC_BASIC_TYPE
+@@ -1573,7 +1575,7 @@ AC_TRY_COMPILE([$1],[$2 u;short v; return(&u.$3==&v);],
         [$5="0 /* unknown, taking default */"
  ]) ]) ]) ]) ]) ]) ]) ])
   CFLAGS="$CFLAGS1" ])
@@ -874,8 +874,8 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
 +AC_DEFINE_UNQUOTED($4, ${$5}, [foo])
  ])
  
- AC_BASIC_TYPE([#include <stdlib.h>], size_t, HAVE_BASIC_SIZE_T, sc_cv_type_sizet_basic)
-@@ -1465,13 +1467,13 @@
+ dnl See AC_TYPEOF_COMPONENT
+@@ -1701,13 +1703,13 @@ AC_TYPEOF_COMPONENT([#include "sysincludes.h"], struct cmsghdr, cmsg_len, HAVE_T
  
  AC_MSG_CHECKING(for /dev/ptmx)
  if test -c /dev/ptmx; then
@@ -891,7 +891,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
      AC_MSG_RESULT(yes)
    else
      AC_MSG_RESULT(no)
-@@ -1480,7 +1482,7 @@
+@@ -1716,7 +1718,7 @@ fi
  
  AC_MSG_CHECKING(for /proc)
  if test -d /proc; then
@@ -900,7 +900,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
    AC_MSG_RESULT(yes)
  else
    AC_MSG_RESULT(no)
-@@ -1488,7 +1490,7 @@
+@@ -1724,7 +1726,7 @@ fi
  
  AC_MSG_CHECKING(for /proc/*/fd)
  if test -d /proc/$$/fd; then
@@ -909,7 +909,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
    AC_MSG_RESULT(yes)
  else
    AC_MSG_RESULT(no)
-@@ -1528,7 +1530,7 @@
+@@ -1764,7 +1766,7 @@ if test -n "$WITH_LIBWRAP"; then
        done])
    ])
    if test "$sc_cv_have_tcpd_h" = "yes"; then
@@ -918,7 +918,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
    fi
    AC_MSG_NOTICE(checked for tcpd.h... $sc_cv_have_tcpd_h)
  fi	# end checking for tcpd.h
-@@ -1561,14 +1563,14 @@
+@@ -1797,14 +1799,14 @@ int allow_severity,deny_severity;],[hosts_access(0)],
      ]
    )
    if test "$sc_cv_have_libwrap" = 'yes'; then
@@ -935,7 +935,7 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
    else
      AC_MSG_WARN([not all components of tcp wrappers found, disabling it]);
    fi
-@@ -1583,7 +1585,7 @@
+@@ -1819,7 +1821,7 @@ if test -n "$WITH_LIBWRAP"; then
        [sc_cv_have_hosts_allow_table=yes],
        [sc_cv_have_hosts_allow_table=no])])
    if test $sc_cv_have_hosts_allow_table = yes; then
@@ -944,3 +944,6 @@ diff -Nru socat-1.7.2.0.orig/configure.in socat-1.7.2.0/configure.in
    fi
    AC_MSG_RESULT($sc_cv_have_hosts_allow_table)
  fi # test -n "$WITH_LIBWRAP"
+-- 
+1.8.1.2
+
meta/recipes-connectivity/socat/socat_1.7.2.4.bb renamed from meta/recipes-connectivity/socat/socat_1.7.2.3.bb +7 -5
similarity index 75%
rename from meta/recipes-connectivity/socat/socat_1.7.2.3.bb
rename to meta/recipes-connectivity/socat/socat_1.7.2.4.bb
index 99060b1..6c3aba1 100644
@@ -8,16 +8,18 @@ SECTION = "console/network"
 DEPENDS = "openssl readline"
 
 LICENSE = "GPL-2.0+-with-OpenSSL-exception"
-LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760 \
-                    file://README;beginline=252;endline=282;md5=79246f11a1db0b6ccec54d1fb711c01e"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+                    file://README;beginline=257;endline=287;md5=79246f11a1db0b6ccec54d1fb711c01e"
 
 
 SRC_URI = "http://www.dest-unreach.org/socat/download/socat-${PV}.tar.bz2 \
            file://compile.patch \
-           file://fix-xxx_SHIFT-autoheader.patch"
+           file://fix-xxx_SHIFT-autoheader.patch \
+"
+
 
-SRC_URI[md5sum] = "75008d8baf7c6c9e27aa7afb34a622de"
-SRC_URI[sha256sum] = "0598ac54af7b138cda9e3c141bcf0cc63eeb2ab31f468a772dc3f7eb3896aad0"
+SRC_URI[md5sum] = "69b8155dd442a6f24e28ef5407d868eb"
+SRC_URI[sha256sum] = "4b7739901c6fad1e460f3e5b1868fb4c2a1427febbba7a510cd2e42fd4941e09"
 
 PACKAGECONFIG ??= "tcp-wrappers"
 PACKAGECONFIG[tcp-wrappers] = "--enable-libwrap,--disable-libwrap,tcp-wrappers"
Signature · 1 line
1.8.1.2
#2 lore raw
Quoted 3 lines · Hongxu Jia
---
 .../recipes-connectivity/socat/socat/compile.patch | 163 +++++++++++----------

Oh wow this patch is ... special.

99% of it is adding the extra arguments to AC_DEFINE so that recent autoheader actually works. This is essential upstream and I'm surprised they still don't have it.

Remove all of these and we'll left with these two chunks:

[AC_TRY_COMPILE([#include <termios.h>],
-[struct termios t; t.c_ispeed=0;],
+[struct termios t; t.c_ispeed=ISPEED_OFFSET; t.c_ospeed=OSPEED_OFFSET;],

I can't see a reason why that is obviously wrong but if it's right, it needs to be explained in the patch header and pushed upstream.

-AC_DEFINE_UNQUOTED($1_SHIFT, ${$2})
+SHIFT_NAME="$1"_SHIFT
+AC_DEFINE_UNQUOTED($SHIFT_NAME, ${$2}, [foo])

This introduces a change that is subsequently removed by fix-xxx-SHIFT-autoheader.patch, which again is basically fixing the AC_DEFINE autoheader use, should be merged with the majority of compile.patch, and submitted upstream.

Finally there's a do_configure_prepend that does yet more alternations to the configure script. This needs to be a patch instead of a sed.

meta/recipes-connectivity/socat/socat_1.7.2.4.bb SECTION = "console/network" · line 12

Quoted 10 lines
meta/recipes-connectivity/socat/socat_1.7.2.4.bb renamed from meta/recipes-connectivity/socat/socat_1.7.2.3.bb +2 -2
@@ -8,16 +8,18 @@ SECTION = "console/network"
 DEPENDS = "openssl readline"
 
 LICENSE = "GPL-2.0+-with-OpenSSL-exception"
-LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760 \
-                    file://README;beginline=252;endline=282;md5=79246f11a1db0b6ccec54d1fb711c01e"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+                    file://README;beginline=257;endline=287;md5=79246f11a1db0b6ccec54d1fb711c01e"

Please explain why the license checksum changed.

Ross

author
#3 lore raw
Quoted 9 lines · Ross
Quoted 3 lines · Hongxu Jia
---
  .../recipes-connectivity/socat/socat/compile.patch | 163 +++++++++++----------

Oh wow this patch is ... special.

99% of it is adding the extra arguments to AC_DEFINE so that recent autoheader actually works. This is essential upstream and I'm surprised they still don't have it.

I will add the explanation of 'AC_DEFINE' in the patch header.

Quoted 8 lines

Remove all of these and we'll left with these two chunks:

[AC_TRY_COMPILE([#include <termios.h>],
-[struct termios t; t.c_ispeed=0;],
+[struct termios t; t.c_ispeed=ISPEED_OFFSET; t.c_ospeed=OSPEED_OFFSET;],

I can't see a reason why that is obviously wrong but if it's right, it needs to be explained in the patch header and pushed upstream.

This 'AC_TRY_COMPILE' was Okay with 't.c_ispeed=0', so it is no need to assigned with ISPEED_OFFSET/OSPEED_OFFSET

Quoted 8 lines
(quoted diff) +2 -1
-AC_DEFINE_UNQUOTED($1_SHIFT, ${$2})
+SHIFT_NAME="$1"_SHIFT
+AC_DEFINE_UNQUOTED($SHIFT_NAME, ${$2}, [foo])

This introduces a change that is subsequently removed by fix-xxx-SHIFT-autoheader.patch, which again is basically fixing the AC_DEFINE autoheader use, should be merged with the majority of compile.patch, and submitted upstream.

Okay, I will merged these to compile.path.

Quoted 2 lines

Finally there's a do_configure_prepend that does yet more alternations to the configure script. This needs to be a patch instead of a sed.

The 'do_configure_prepend' task was used for 'enable termios', I will add a new patch to instead of the sed.

Quoted 11 lines

meta/recipes-connectivity/socat/socat_1.7.2.4.bb SECTION = "console/network" · line 12

Quoted 10 lines
meta/recipes-connectivity/socat/socat_1.7.2.4.bb renamed from meta/recipes-connectivity/socat/socat_1.7.2.3.bb +2 -2
@@ -8,16 +8,18 @@ SECTION = "console/network"
  DEPENDS = "openssl readline"
 
  LICENSE = "GPL-2.0+-with-OpenSSL-exception"
-LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760 \
-                    file://README;beginline=252;endline=282;md5=79246f11a1db0b6ccec54d1fb711c01e"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+                    file://README;beginline=257;endline=287;md5=79246f11a1db0b6ccec54d1fb711c01e"

Please explain why the license checksum changed.

In COPYING, the company address changed:
s/675 Mass Ave, Cambridge, MA 02139/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301/

In README, the license has no change, just ajustment the beginline.

It is still GPLV2.

//Hongxu

Quoted 2 lines

Ross

author
#4 lore raw

PATCH v2 2/3 socat: fix supporting cross compiling

In reply to Hongxu Jia

The do_configure failed:
...
|checking for equivalent simple type of size_t... configure:
error: in `tmp/work/core2-64-poky-linux/socat/1.7.2.4-r0/build':
|configure: error: cannot run test program while cross compiling
...

For 1.7.2.4, the linux GCC check in configure.in didn't support cross compiling, but the old version 1.7.2.3 supported, so we reference 1.7.2.3 to fix this issue.

---
 .../socat/socat/fix-cross-compiling-failed.patch   | 34 ++++++++++++++++++++++
 meta/recipes-connectivity/socat/socat_1.7.2.4.bb   |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 meta/recipes-connectivity/socat/socat/fix-cross-compiling-failed.patch
meta/recipes-connectivity/socat/socat/fix-cross-compiling-failed.patch new file +34 -0
new file mode 100644
index 0000000..4106cbd
@@ -0,0 +1,34 @@
+configure.in: fix cross compiling failed
+
+The do_configure failed:
+...
+|checking for equivalent simple type of size_t... configure:
+error: in `tmp/work/core2-64-poky-linux/socat/1.7.2.4-r0/build':
+|configure: error: cannot run test program while cross compiling
+...
+
+For 1.7.2.4, the linux GCC check in configure.in didn't support
+cross compiling, but the old version 1.7.2.3 supported, so we
+reference 1.7.2.3 to fix this issue.
+
+Upstream-Status: Inappropriate [oe specific]
+Signed-off-by: Hongxu Jia <[email protected]>
+---
+ configure.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.in b/configure.in
+--- a/configure.in
++++ b/configure.in
+@@ -41,7 +41,7 @@ AC_CHECK_PROG(AR, ar, ar, gar)
+ # fail
+ AC_LANG_COMPILER_REQUIRE()
+ 
+-if test "$CC" = "gcc"; then
++if test "$GCC" = yes; then
+    CFLAGS="$CFLAGS -D_GNU_SOURCE -Wall -Wno-parentheses"
+    ERRONWARN="-Werror -O0"
+ elif test "$CC" = "clang"; then
+-- 
+1.8.1.2
+
meta/recipes-connectivity/socat/socat_1.7.2.4.bb +1 -0
index 6c3aba1..6febe5e 100644
@@ -15,6 +15,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
 SRC_URI = "http://www.dest-unreach.org/socat/download/socat-${PV}.tar.bz2 \
            file://compile.patch \
            file://fix-xxx_SHIFT-autoheader.patch \
+           file://fix-cross-compiling-failed.patch \
 "
 
 
Signature · 1 line
1.8.1.2
author
#5 lore raw

PATCH v2 3/3 socat: fix linux/errqueue.h not found

In reply to Hongxu Jia

The do_compile failed:
...
|tmp/work/core2-64-poky-linux/socat/1.7.2.4-r0/socat-1.7.2.4/xio-ip.c:
In function 'xiolog_ancillary_ip':
|tmp/work/core2-64-poky-linux/socat/1.7.2.4-r0/socat-1.7.2.4/xio-ip.c:520:12:
error: dereferencing pointer to incomplete type

|         err->ee_errno, '\0', err->ee_origin, '\0', err->ee_type, '\0',
|            ^
| ake: *** [xio-ip.o] Error 1

...

For 1.7.2.4, the header check of 'linux/errqueue.h ' was not correctly, but the old version 1.7.2.3 worked, so we reference 1.7.2.3 to fix this issue.

---
 .../socat/fix-linux-errqueue.h-not-found.patch     | 40 ++++++++++++++++++++++
 meta/recipes-connectivity/socat/socat_1.7.2.4.bb   |  1 +
 2 files changed, 41 insertions(+)
 create mode 100644 meta/recipes-connectivity/socat/socat/fix-linux-errqueue.h-not-found.patch
meta/recipes-connectivity/socat/socat/fix-linux-errqueue.h-not-found.patch new file +40 -0
new file mode 100644
index 0000000..3823eaf
@@ -0,0 +1,40 @@
+configure.in: fix linux/errqueue.h not found
+
+The do_compile failed:
+...
+|tmp/work/core2-64-poky-linux/socat/1.7.2.4-r0/socat-1.7.2.4/xio-ip.c:
+In function 'xiolog_ancillary_ip':
+|tmp/work/core2-64-poky-linux/socat/1.7.2.4-r0/socat-1.7.2.4/xio-ip.c:520:12:
+error: dereferencing pointer to incomplete type
+|         err->ee_errno, '\0', err->ee_origin, '\0', err->ee_type, '\0',
+|            ^
+| ake: *** [xio-ip.o] Error 1
+...
+
+For 1.7.2.4, the header check of 'linux/errqueue.h ' was not correctly,
+but the old version 1.7.2.3 worked, so we reference 1.7.2.3 to fix this
+issue.
+
+Upstream-Status: Pending
+Signed-off-by: Hongxu Jia <[email protected]>
+---
+ configure.in | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index 70922f9..bdfbe98 100644
+--- a/configure.in
++++ b/configure.in
+@@ -79,8 +79,7 @@ AC_HEADER_RESOLV()
+ 
+ AC_CHECK_HEADERS(termios.h linux/if_tun.h)
+ AC_CHECK_HEADERS(net/if_dl.h)
+-AC_CHECK_HEADERS(linux/types.h)
+-AC_CHECK_HEADER(linux/errqueue.h, AC_DEFINE(HAVE_LINUX_ERRQUEUE_H), [], [#include <linux/types.h>])
++AC_CHECK_HEADERS(linux/types.h linux/errqueue.h)
+ AC_CHECK_HEADERS(sys/utsname.h sys/select.h sys/file.h)
+ AC_CHECK_HEADERS(util.h bsd/libutil.h libutil.h sys/stropts.h regex.h)
+ AC_CHECK_HEADERS(linux/fs.h linux/ext2_fs.h)
+-- 
+1.8.1.2
+
meta/recipes-connectivity/socat/socat_1.7.2.4.bb +1 -0
index 6febe5e..777125f 100644
@@ -16,6 +16,7 @@ SRC_URI = "http://www.dest-unreach.org/socat/download/socat-${PV}.tar.bz2 \
            file://compile.patch \
            file://fix-xxx_SHIFT-autoheader.patch \
            file://fix-cross-compiling-failed.patch \
+           file://fix-linux-errqueue.h-not-found.patch \
 "
 
 
Signature · 1 line
1.8.1.2
#6 lore raw

Re: [PATCH 3/3] socat: fix linux/errqueue.h not found

Quoted 3 lines · Hongxu Jia
+-AC_CHECK_HEADERS(linux/types.h)
+-AC_CHECK_HEADER(linux/errqueue.h, AC_DEFINE(HAVE_LINUX_ERRQUEUE_H), [], [#include <linux/types.h>])

++AC_CHECK_HEADERS(linux/types.h linux/errqueue.h)

Have you checked the config.log and config.h to verify this is actually working?

It looks like you're simply removing the AC_DEFINE of HAVE_LINUX_ERRQUEUE_H which is used as a guard around <linux/errqueue.h> in sysincludes.h.

Ross

author
#7 lore raw

Re: [PATCH 3/3] socat: fix linux/errqueue.h not found

Quoted 9 lines · Ross
Quoted 3 lines · Hongxu Jia
+-AC_CHECK_HEADERS(linux/types.h)
+-AC_CHECK_HEADER(linux/errqueue.h, AC_DEFINE(HAVE_LINUX_ERRQUEUE_H), [], [#include <linux/types.h>])

++AC_CHECK_HEADERS(linux/types.h linux/errqueue.h)

Have you checked the config.log and config.h to verify this is actually working?

It looks like you're simply removing the AC_DEFINE of HAVE_LINUX_ERRQUEUE_H which is used as a guard around <linux/errqueue.h> in sysincludes.h.

I took a look, and found out the 'AC_DEFINE' didn't work,
...
-AC_CHECK_HEADER(linux/errqueue.h, AC_DEFINE(HAVE_LINUX_ERRQUEUE_H), [], [#include <linux/types.h>]) +AC_CHECK_HEADER(linux/errqueue.h, AC_DEFINE(HAVE_LINUX_ERRQUEUE_H, [1], [With linux errqueue header]), [], [#include <linux/types.h>])
...

The fix was the same with compile.patch, I will merged it to compile.patch.

//Hongxu

Quoted 1 line

Ross