Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/oath-toolkit: libpskc needs host-libxml2
@ 2024-10-28 19:28 Julien Olivain
  2024-10-28 20:24 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Julien Olivain @ 2024-10-28 19:28 UTC (permalink / raw)
  To: buildroot; +Cc: Julien Olivain

When compiling oath-toolkit with PSKC support, with:
BR2_PACKAGE_OATH_TOOLKIT=y
BR2_PACKAGE_OATH_TOOLKIT_PSKC=y

Build is failing on hosts without libxml2, with output:

    make[5]: Entering directory '/buildroot/instance-0/output-1/build/oath-toolkit-2.6.12/libpskc/schemas'
    create -noout \
	    --add "system" "urn:ietf:params:xml:ns:keyprov:pskc" \
		    "/buildroot/instance-0/output-1/build/oath-toolkit-2.6.12/libpskc/schemas/pskc-schema.xsd" \
	    --add "system" "http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd" \
		    "/buildroot/instance-0/output-1/build/oath-toolkit-2.6.12/libpskc/schemas/xmldsig-core-schema.xsd" \
	    --add "system" "http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd" \
		    "/buildroot/instance-0/output-1/build/oath-toolkit-2.6.12/libpskc/schemas/xenc-schema.xsd" \
	    tmp
    /bin/sh: line 1: create: command not found
    make[5]: [Makefile:1267: catalog-pskc.xml] Error 127 (ignored)

The build needs the "xmlcatalog" command, provided the host-libxml2
package. The previous error log does not show the "xmlcatalog" because
it is not found by autoconf, then substituted by an empty string (we
only see its arguments).

This commit fixes the issue by adding this missing dependency.

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

Signed-off-by: Julien Olivain <ju.o@free.fr>
---
 package/oath-toolkit/oath-toolkit.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/oath-toolkit/oath-toolkit.mk b/package/oath-toolkit/oath-toolkit.mk
index b36cd47053..5e8fabb05b 100644
--- a/package/oath-toolkit/oath-toolkit.mk
+++ b/package/oath-toolkit/oath-toolkit.mk
@@ -29,7 +29,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_OATH_TOOLKIT_PSKC),y)
 OATH_TOOLKIT_CONF_OPTS += --enable-pskc
-OATH_TOOLKIT_DEPENDENCIES += libxml2
+OATH_TOOLKIT_DEPENDENCIES += host-libxml2 libxml2
 else
 OATH_TOOLKIT_CONF_OPTS += --disable-pskc
 endif
-- 
2.47.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-28 20:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-28 19:28 [Buildroot] [PATCH 1/1] package/oath-toolkit: libpskc needs host-libxml2 Julien Olivain
2024-10-28 20:24 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox