Skip to contentSkip to conversation

package/unbound: fix detection of libexpat

PATCH New Yann E. MORIN 2 participants 2 messages Apr 5, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/unbound: fix detection of libexpat

unbound open-codes the detection of libexpat, and as all packages doing so, look in host paths (/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr). Obviously this is wrong for cross-compilation.

Do for libexpat as we do for openssl, and point unbound to staging dir, when we know expat is.

Fixes:

    http://autobuild.buildroot.org/results/a89ea6aa1cd8c253b1260ea227fea3dc9b095fe8/
---
 package/unbound/unbound.mk | 1 +
 1 file changed, 1 insertion(+)
package/unbound/unbound.mk +1 -0
index 937165eca7..59543438fd 100644
@@ -16,6 +16,7 @@ UNBOUND_CONF_OPTS = \
 	--with-pidfile=/var/run/unbound.pid \
 	--with-rootkey-file=/etc/unbound/root.key \
 	--enable-tfo-server \
+	--with-libexpat=$(STAGING_DIR)/usr \
 	--with-ssl=$(STAGING_DIR)/usr
 
 # uClibc-ng does not have MSG_FASTOPEN
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/unbound: fix detection of libexpat

Quoted 7 lines · On Sun, 5 Apr 2020 10:22:03 +0200 "Yann E. MORIN" <[email protected]>…

unbound open-codes the detection of libexpat, and as all packages doing so, look in host paths (/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr). Obviously this is wrong for cross-compilation.

Do for libexpat as we do for openssl, and point unbound to staging dir, when we know expat is.

Quoted 8 lines

Fixes:

    http://autobuild.buildroot.org/results/a89ea6aa1cd8c253b1260ea227fea3dc9b095fe8/
---
 package/unbound/unbound.mk | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas

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