summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Kłoczko <kloczek@github.com>2022-08-30 11:55:03 +0000
committerJens Georg <mail@jensge.org>2022-09-03 10:35:45 +0200
commita88d4e42c5afc6dd54c09683bb4d0dd157e99179 (patch)
tree53f4494e99408001112befd6638c76d243488e03
parent04594b1175d71690b766d57188831ec97b660a33 (diff)
downloadgupnp-a88d4e42c5afc6dd54c09683bb4d0dd157e99179.tar.gz
Test suite needs libxml2
Without that build test suite binaties fails ```console + /usr/bin/meson compile -C x86_64-redhat-linux-gnu -j 48 --verbose ninja: Entering directory `/home/tkloczko/rpmbuild/BUILD/gupnp-1.5.3/x86_64-redhat-linux-gnu' [1/66] /usr/bin/gcc -Itests/test-service.p -Itests -I../tests -Iinternal -I../internal -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gssdp-1.6 -I/usr/include/libsoup-3.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -Werror=deprecated-declarations -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -pthread '-DDATA_PATH="/home/tkloczko/rpmbuild/BUILD/gupnp-1.5.3/tests/data"' -MD -MQ tests/test-service.p/test-service.c.o -MF tests/test-service.p/test-service.c.o.d -o tests/test-service.p/test-service.c.o -c ../tests/test-service.c FAILED: tests/test-service.p/test-service.c.o /usr/bin/gcc -Itests/test-service.p -Itests -I../tests -Iinternal -I../internal -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gssdp-1.6 -I/usr/include/libsoup-3.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -Werror=deprecated-declarations -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -pthread '-DDATA_PATH="/home/tkloczko/rpmbuild/BUILD/gupnp-1.5.3/tests/data"' -MD -MQ tests/test-service.p/test-service.c.o -MF tests/test-service.p/test-service.c.o.d -o tests/test-service.p/test-service.c.o -c ../tests/test-service.c In file included from ../tests/test-service.c:5: ../libgupnp/gupnp-xml-doc.h:15:10: fatal error: libxml/tree.h: No such file or directory 15 | #include <libxml/tree.h> | ^~~~~~~~~~~~~~~ compilation terminated. ``` Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
-rw-r--r--tests/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/meson.build b/tests/meson.build
index 701f901..0cbbb14 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -4,7 +4,7 @@ foreach program : ['context', 'bugs', 'service', 'acl', 'service-proxy', 'contex
executable(
'test-' + program,
'test-@0@.c'.format (program),
- dependencies : gupnp,
+ dependencies : [gupnp, libxml_dep],
c_args : '-DDATA_PATH="@0@/data"'.format(meson.current_source_dir()),
include_directories : config_h_inc,
),