Skip to contentSkip to conversation

package/openconnect: fix build without NLS

PATCH In review Bernd Kuhls 2 participants 2 messages Nov 21

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/openconnect: fix build without NLS

Fixes:
https://autobuild.buildroot.org/results/e788cbb9eea5dd9c710f0be71cceb5eca7133975/

checking for msgfmt... no
configure: error: msgfmt could not be found. Try configuring with
--disable-nls

The oldest recorded build error of this kind dates back to 2024 so a backport to LTS branches should be considered:
https://autobuild.buildroot.net/results/7e2/7e288f5fc334ed0a23330d43fec52209df36a883/

Upstream added AC_ARG_ENABLE([nls] in 2011 to version 3.14:
https://gitlab.com/openconnect/openconnect/-/commit/b976ecb02aed356fe45334c018a0e727328a1c9a
while the first version added to buildroot was 9.12, see commit c70e0c08c7ad516b4fd20bf92dc1435ecbea94b4.

---
 package/openconnect/openconnect.mk | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
package/openconnect/openconnect.mk +11 -1
index e9a3257edb..26a2e646f3 100644
@@ -6,7 +6,11 @@
 
 OPENCONNECT_VERSION = 9.21
 OPENCONNECT_SITE = https://www.infradead.org/openconnect/download
-OPENCONNECT_DEPENDENCIES = host-pkgconf libxml2 zlib
+OPENCONNECT_DEPENDENCIES = \
+	host-pkgconf \
+	libxml2 \
+	zlib \
+	$(TARGET_NLS_DEPENDENCIES)
 OPENCONNECT_LICENSE = LGPL-2.1
 OPENCONNECT_LICENSE_FILES = COPYING.LGPL
 OPENCONNECT_CPE_ID_VENDOR = infradead
@@ -30,4 +34,10 @@ else
 OPENCONNECT_CONF_OPTS += --without-lz4
 endif
 
+ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
+OPENCONNECT_CONF_OPTS += --enable-nls
+else
+OPENCONNECT_CONF_OPTS += --disable-nls
+endif
+
 $(eval $(autotools-package))
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Fixes:
https://autobuild.buildroot.org/results/e788cbb9eea5dd9c710f0be71cceb5eca7133975/

checking for msgfmt... no
configure: error: msgfmt could not be found. Try configuring with
--disable-nls

The oldest recorded build error of this kind dates back to 2024 so a backport to LTS branches should be considered:
https://autobuild.buildroot.net/results/7e2/7e288f5fc334ed0a23330d43fec52209df36a883/

Quoted 6 lines

Upstream added AC_ARG_ENABLE([nls] in 2011 to version 3.14:
https://gitlab.com/openconnect/openconnect/-/commit/b976ecb02aed356fe45334c018a0e727328a1c9a
while the first version added to buildroot was 9.12, see commit c70e0c08c7ad516b4fd20bf92dc1435ecbea94b4.

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot