Skip to contentSkip to conversation

package/dante: fix configure error

PATCH New Fabrice Fontaine 2 participants 2 messages Dec 24, 2019 – Dec 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/dante: fix configure error

Fixes:
- http://autobuild.buildroot.org/results/9be8a0d5af85370ecb52bcd315aa73cacbc95abc

---
 ...m4-Remove-getaddrinfo-too-low-checks.patch | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 package/dante/0002-osdep-m4-Remove-getaddrinfo-too-low-checks.patch
package/dante/0002-osdep-m4-Remove-getaddrinfo-too-low-checks.patch new file +35 -0
new file mode 100644
index 0000000000..af23d46d11
@@ -0,0 +1,35 @@
+osdep.m4: Remove getaddrinfo() too low checks
+
+dante runs AC_PREPROC_IFELSE then it fills $ERRVALFILE by running the
+following command:
+
+cat conftest.i | grep gaierrval: >>$2
+
+As a result, $ERRVALFILE does not contain the expected values because
+the expected value is not on the same line than gaierrval:
+
+ gaierrval: 
+ # 130 "conftest.c" 3 4
+           -3
+
+So drop these checks
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+
+diff -Nuar dante-1.4.2-orig/osdep.m4 dante-1.4.2/osdep.m4
+--- dante-1.4.2-orig/osdep.m4	2019-12-09 21:28:38.936003218 +0100
++++ dante-1.4.2/osdep.m4	2019-12-09 21:49:48.764019371 +0100
+@@ -956,13 +956,7 @@
+ unset UNIQUEVALS UNIQUESYMBOLS
+ if test -s $ERRVALFILE; then
+     UNIQUEVALS=`sort $ERRVALFILE | uniq | wc -l | awk '{ print $1 }'`
+-    if test $UNIQUEVALS -le 1; then
+-        AC_MSG_FAILURE([error: getaddrinfo() error value count too low])
+-    fi
+     UNIQUESYMBOLS=`cat $ERRVALFILE | wc -l | awk '{ print $1 }'`
+-    if test $UNIQUESYMBOLS -le 1; then
+-        AC_MSG_FAILURE([error: getaddrinfo() error symbol count too low])
+-    fi
+ 
+     if test $ERRNOCNT -ne $UNIQUESYMBOLS; then
+ 	AC_MSG_FAILURE([internal error: errno symbol count mismatch])
Signature · 1 line
2.24.0
#1 lore raw

PATCH 1/1 package/dante: fix configure error

Quoted 4 lines · On Tue, 24 Dec 2019 16:07:09 +0100 Fabrice Fontaine…

Fixes:
- http://autobuild.buildroot.org/results/9be8a0d5af85370ecb52bcd315aa73cacbc95abc

OK, well, it does happen. I'm still puzzled by this. Could you work with upstream to get this fixed properly ?

In the mean time, I have applied to avoid the build issues.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com