summaryrefslogtreecommitdiff
path: root/adi-iio.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-28 14:06:10 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-28 14:06:10 +0000
commit05e40c397bfc55e6d564eaffeb026fbb34048e43 (patch)
tree48a2343846265563f5f786b3fa53d1fdf277ea9f /adi-iio.spec
parent3aa37b258e8f8dce613284461b2a91a83c921413 (diff)
automatic import of ros-humble-adi-iio
Diffstat (limited to 'adi-iio.spec')
-rw-r--r--adi-iio.spec13
1 files changed, 10 insertions, 3 deletions
diff --git a/adi-iio.spec b/adi-iio.spec
index 1fb66f3..8730e08 100644
--- a/adi-iio.spec
+++ b/adi-iio.spec
@@ -5,7 +5,7 @@
Name: ros-%{ros_distro}-%{RosPkgName}
Version: 1.0.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: ROS package to interface with IIO devices
License: Apache License, Version 2.0
URL: https://github.com/analogdevicesinc/iio_ros2/tree/humble
@@ -49,7 +49,11 @@ Vendors libiio (userspace IIO library) as it is not available on openEuler.
%autosetup -n %{RosPkgName}-%{src_version} -a 1
%build
-# Build vendored libiio first (openEuler has no libiio package)
+# Build vendored libiio first (openEuler has no libiio package).
+# Network backend disabled: it transitively pulls in libavahi/libxml2/libzstd
+# (DNS-SD discovery + XML backend + ZSTD for IIOD async API). adi-iio only
+# needs the local backend (iio_create_context_from_uri with "local:" URI) plus
+# the libiio API, so WITH_NETWORK_BACKEND=OFF avoids the whole dependency chain.
cd libiio-%{libiio_version}
mkdir -p build && cd build
cmake .. \
@@ -60,7 +64,7 @@ cmake .. \
-DWITH_XML_BACKEND=OFF \
-DWITH_USB_BACKEND=OFF \
-DWITH_SERIAL_BACKEND=OFF \
- -DWITH_NETWORK_BACKEND=ON \
+ -DWITH_NETWORK_BACKEND=OFF \
-DWITH_ZSTD=OFF \
-DWITH_IIOD=OFF \
-DWITH_UTILS=OFF \
@@ -115,6 +119,9 @@ make install DESTDIR=%{buildroot}
/opt/ros/%{ros_distro}
%changelog
+* Mon Sep 28 2026 ai-importer <ai-importer@openeuler.org> - 1.0.1-3
+- Disable libiio network backend: it requires libavahi/libxml2/libzstd which are
+ not pulled in; local backend suffices for adi-iio's iio_create_context_from_uri
* Mon Sep 28 2026 ai-importer <ai-importer@openeuler.org> - 1.0.1-2
- Vendor libiio 1.0.0 (not available on openEuler)
- Remove libiio-dev BuildRequires/Requires, add Provides: libiio/libiio-devel