Skip to contentSkip to conversation

libiio: Bump version to 0.6

PATCH Superseded Matthew Fornero 3 participants 6 messages Apr 14, 2016 – Jun 9, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libiio: Bump version to 0.6

v0.6 API offers some major additions, including:
* iio_device_set_kernel_buffers_counts
* iio_buffer_get_poll_fd
* iio_bufer_set_blocking_mode
* iio_buffer_push_partial

---
 ...l2-detection-try-first-the-CMake-module-f.patch |   57 ++++++++++----------
 ...ake-fix-build-on-unix-systems-without-cpp.patch |   36 -------------
 package/libiio/libiio.hash                         |    4 +-
 package/libiio/libiio.mk                           |    2 +-
 4 files changed, 32 insertions(+), 67 deletions(-)
 delete mode 100644 package/libiio/0002-cmake-fix-build-on-unix-systems-without-cpp.patch
package/libiio/0001-cmake-libxml2-detection-try-first-the-CMake-module-f.patch +29 -28
index 9f44169..17fbdab 100644
@@ -1,42 +1,43 @@
-From 4f849e1d2287206cfb7ff0fdeca96c22383b0d53 Mon Sep 17 00:00:00 2001
+From b613e0fe7999cfff9efb646eb388ea1e58952e30 Mon Sep 17 00:00:00 2001
 From: Samuel Martin <[email protected]>
-Date: Mon, 29 Dec 2014 19:05:13 +0100
-Subject: [PATCH] cmake: libxml2 detection: try first the CMake module from
- libxml2
+Date: Thu, 14 Apr 2016 12:59:27 -0400
+Subject: [PATCH] cmake: libxml2 detection: try CMake module from libxml2
 
 Libxml2 >=2.9.2 provides its own CMake module, so check for it before
 falling back on the CMake's module FindLibXml2.cmake.
 
+Updated for v0.6 by: Matt Fornero <[email protected]>
+
 Signed-off-by: Samuel Martin <[email protected]>
+Signed-off-by: Matt Fornero <[email protected]>
 ---
- CMakeLists.txt | 14 +++++++++++++-
- 1 file changed, 13 insertions(+), 1 deletion(-)
+ CMakeLists.txt |   13 ++++++++++++-
+ 1 file changed, 12 insertions(+), 1 deletion(-)
 
 diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 393fee3..b4f1d26 100644
+index 70f61f0..4a4209b 100644
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -38,7 +38,19 @@ endif()
- find_library(AVAHI_CLIENT_LIBRARIES avahi-client)
- find_library(AVAHI_COMMON_LIBRARIES avahi-common)
- find_library(PTHREAD_LIBRARIES pthread)
--include(FindLibXml2)
-+
-+# Since libxml2-2.9.2, libxml2 provides its own LibXml2-config.cmake, with all
-+# variables correctly set.
-+# So, try first to find the CMake module provided by libxml2 package, then fallback
-+# on the CMake's FindLibXml2.cmake module (which can lack some definition, especially
-+# in static build case).
-+find_package(LibXml2 QUIET NO_MODULE)
-+if(DEFINED LIBXML2_VERSION_STRING)
-+  set(LIBXML2_FOUND ON)
-+  set(LIBXML2_INCLUDE_DIR ${LIBXML2_INCLUDE_DIRS})
-+else()
-+  include(FindLibXml2)
-+endif()
+@@ -143,7 +143,18 @@ if(WITH_NETWORK_BACKEND)
+ endif()
+ 
+ if (NEED_LIBXML2)
+-	include(FindLibXml2)
++	# Since libxml2-2.9.2, libxml2 provides its own LibXml2-config.cmake, with all
++	# variables correctly set.
++	# So, try first to find the CMake module provided by libxml2 package, then fallback
++	# on the CMake's FindLibXml2.cmake module (which can lack some definition, especially
++	# in static build case).
++	find_package(LibXml2 QUIET NO_MODULE)
++	if(DEFINED LIBXML2_VERSION_STRING)
++		set(LIBXML2_FOUND ON)
++		set(LIBXML2_INCLUDE_DIR ${LIBXML2_INCLUDE_DIRS})
++	else()
++		include(FindLibXml2)
++	endif()
  
- set(LIBIIO_CFILES channel.c device.c context.c buffer.c utilities.c)
- set(LIBIIO_HEADERS iio.h)
+ 	if (NOT LIBXML2_FOUND)
+ 		message(SEND_ERROR "The selected backends require libxml2 to be installed")
 -- 
-2.2.1
+1.7.10.4
 
package/libiio/0002-cmake-fix-build-on-unix-systems-without-cpp.patch deleted +0 -36
deleted file mode 100644
index 4839a39..0000000
@@ -1,36 +0,0 @@
-From 2e6fa357ffbe755bfecaecad4fc82e3307fe2831 Mon Sep 17 00:00:00 2001
-From: Paul Cercueil <[email protected]>
-Date: Wed, 22 Jul 2015 10:25:01 +0200
-Subject: [PATCH] CMake: Fix build on UNIX systems without a C++ compiler
-
-Signed-off-by: Paul Cercueil <[email protected]>
----
- bindings/csharp/CMakeLists.txt | 2 +-
- bindings/python/CMakeLists.txt | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/bindings/csharp/CMakeLists.txt b/bindings/csharp/CMakeLists.txt
-index 8aafb8f..fceab88 100644
---- a/bindings/csharp/CMakeLists.txt
-+++ b/bindings/csharp/CMakeLists.txt
-@@ -1,5 +1,5 @@
- cmake_minimum_required(VERSION 2.8.7)
--project(libiio-sharp)
-+project(libiio-sharp LANGUAGES NONE)
- 
- find_program(MCS_EXECUTABLE
- 	NAMES mcs csc
-diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt
-index 22ffdb4..76ceae8 100644
---- a/bindings/python/CMakeLists.txt
-+++ b/bindings/python/CMakeLists.txt
-@@ -1,5 +1,5 @@
- cmake_minimum_required(VERSION 2.8.7)
--project(libiio-py)
-+project(libiio-py LANGUAGES NONE)
- 
- include(FindPythonInterp)
- 
--- 
-2.1.4
-
package/libiio/libiio.hash +2 -2
index 28b9c63..da42c21 100644
@@ -1,2 +1,2 @@
-# From https://github.com/analogdevicesinc/libiio/archive/v0.5/
-sha256	c41cdcfeae8717e72f1100b4dac9d7cc9d86f4e0731da3354149cb7e051666f3	libiio-0.5.tar.gz
+# From https://github.com/analogdevicesinc/libiio/archive/v0.6/
+sha256  efd3b4ebdba01dd2bfbdce8e222356b4fec2b96daab14f99691b5c1c9089e466    libiio-0.6.tar.gz
package/libiio/libiio.mk +1 -1
index 0e92b73..e5edb5c 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBIIO_VERSION = 0.5
+LIBIIO_VERSION = 0.6
 LIBIIO_SITE = $(call github,analogdevicesinc,libiio,v$(LIBIIO_VERSION))
 LIBIIO_INSTALL_STAGING = YES
 LIBIIO_LICENSE = LGPLv2.1+
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH RESEND 1/1 libiio: Bump version to 0.6

v0.6 API offers some major additions, including:
* iio_device_set_kernel_buffers_counts
* iio_buffer_get_poll_fd
* iio_bufer_set_blocking_mode
* iio_buffer_push_partial

---
 ...l2-detection-try-first-the-CMake-module-f.patch |   57 ++++++++++----------
 ...ake-fix-build-on-unix-systems-without-cpp.patch |   36 -------------
 package/libiio/libiio.hash                         |    4 +-
 package/libiio/libiio.mk                           |    2 +-
 4 files changed, 32 insertions(+), 67 deletions(-)
 delete mode 100644 package/libiio/0002-cmake-fix-build-on-unix-systems-without-cpp.patch
package/libiio/0001-cmake-libxml2-detection-try-first-the-CMake-module-f.patch +29 -28
index 9f44169..17fbdab 100644
@@ -1,42 +1,43 @@
-From 4f849e1d2287206cfb7ff0fdeca96c22383b0d53 Mon Sep 17 00:00:00 2001
+From b613e0fe7999cfff9efb646eb388ea1e58952e30 Mon Sep 17 00:00:00 2001
 From: Samuel Martin <[email protected]>
-Date: Mon, 29 Dec 2014 19:05:13 +0100
-Subject: [PATCH] cmake: libxml2 detection: try first the CMake module from
- libxml2
+Date: Thu, 14 Apr 2016 12:59:27 -0400
+Subject: [PATCH] cmake: libxml2 detection: try CMake module from libxml2
 
 Libxml2 >=2.9.2 provides its own CMake module, so check for it before
 falling back on the CMake's module FindLibXml2.cmake.
 
+Updated for v0.6 by: Matt Fornero <[email protected]>
+
 Signed-off-by: Samuel Martin <[email protected]>
+Signed-off-by: Matt Fornero <[email protected]>
 ---
- CMakeLists.txt | 14 +++++++++++++-
- 1 file changed, 13 insertions(+), 1 deletion(-)
+ CMakeLists.txt |   13 ++++++++++++-
+ 1 file changed, 12 insertions(+), 1 deletion(-)
 
 diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 393fee3..b4f1d26 100644
+index 70f61f0..4a4209b 100644
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -38,7 +38,19 @@ endif()
- find_library(AVAHI_CLIENT_LIBRARIES avahi-client)
- find_library(AVAHI_COMMON_LIBRARIES avahi-common)
- find_library(PTHREAD_LIBRARIES pthread)
--include(FindLibXml2)
-+
-+# Since libxml2-2.9.2, libxml2 provides its own LibXml2-config.cmake, with all
-+# variables correctly set.
-+# So, try first to find the CMake module provided by libxml2 package, then fallback
-+# on the CMake's FindLibXml2.cmake module (which can lack some definition, especially
-+# in static build case).
-+find_package(LibXml2 QUIET NO_MODULE)
-+if(DEFINED LIBXML2_VERSION_STRING)
-+  set(LIBXML2_FOUND ON)
-+  set(LIBXML2_INCLUDE_DIR ${LIBXML2_INCLUDE_DIRS})
-+else()
-+  include(FindLibXml2)
-+endif()
+@@ -143,7 +143,18 @@ if(WITH_NETWORK_BACKEND)
+ endif()
+ 
+ if (NEED_LIBXML2)
+-	include(FindLibXml2)
++	# Since libxml2-2.9.2, libxml2 provides its own LibXml2-config.cmake, with all
++	# variables correctly set.
++	# So, try first to find the CMake module provided by libxml2 package, then fallback
++	# on the CMake's FindLibXml2.cmake module (which can lack some definition, especially
++	# in static build case).
++	find_package(LibXml2 QUIET NO_MODULE)
++	if(DEFINED LIBXML2_VERSION_STRING)
++		set(LIBXML2_FOUND ON)
++		set(LIBXML2_INCLUDE_DIR ${LIBXML2_INCLUDE_DIRS})
++	else()
++		include(FindLibXml2)
++	endif()
  
- set(LIBIIO_CFILES channel.c device.c context.c buffer.c utilities.c)
- set(LIBIIO_HEADERS iio.h)
+ 	if (NOT LIBXML2_FOUND)
+ 		message(SEND_ERROR "The selected backends require libxml2 to be installed")
 -- 
-2.2.1
+1.7.10.4
 
package/libiio/0002-cmake-fix-build-on-unix-systems-without-cpp.patch deleted +0 -36
deleted file mode 100644
index 4839a39..0000000
@@ -1,36 +0,0 @@
-From 2e6fa357ffbe755bfecaecad4fc82e3307fe2831 Mon Sep 17 00:00:00 2001
-From: Paul Cercueil <[email protected]>
-Date: Wed, 22 Jul 2015 10:25:01 +0200
-Subject: [PATCH] CMake: Fix build on UNIX systems without a C++ compiler
-
-Signed-off-by: Paul Cercueil <[email protected]>
----
- bindings/csharp/CMakeLists.txt | 2 +-
- bindings/python/CMakeLists.txt | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/bindings/csharp/CMakeLists.txt b/bindings/csharp/CMakeLists.txt
-index 8aafb8f..fceab88 100644
---- a/bindings/csharp/CMakeLists.txt
-+++ b/bindings/csharp/CMakeLists.txt
-@@ -1,5 +1,5 @@
- cmake_minimum_required(VERSION 2.8.7)
--project(libiio-sharp)
-+project(libiio-sharp LANGUAGES NONE)
- 
- find_program(MCS_EXECUTABLE
- 	NAMES mcs csc
-diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt
-index 22ffdb4..76ceae8 100644
---- a/bindings/python/CMakeLists.txt
-+++ b/bindings/python/CMakeLists.txt
-@@ -1,5 +1,5 @@
- cmake_minimum_required(VERSION 2.8.7)
--project(libiio-py)
-+project(libiio-py LANGUAGES NONE)
- 
- include(FindPythonInterp)
- 
--- 
-2.1.4
-
package/libiio/libiio.hash +2 -2
index 28b9c63..da42c21 100644
@@ -1,2 +1,2 @@
-# From https://github.com/analogdevicesinc/libiio/archive/v0.5/
-sha256	c41cdcfeae8717e72f1100b4dac9d7cc9d86f4e0731da3354149cb7e051666f3	libiio-0.5.tar.gz
+# From https://github.com/analogdevicesinc/libiio/archive/v0.6/
+sha256  efd3b4ebdba01dd2bfbdce8e222356b4fec2b96daab14f99691b5c1c9089e466    libiio-0.6.tar.gz
package/libiio/libiio.mk +1 -1
index 0e92b73..e5edb5c 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBIIO_VERSION = 0.5
+LIBIIO_VERSION = 0.6
 LIBIIO_SITE = $(call github,analogdevicesinc,libiio,v$(LIBIIO_VERSION))
 LIBIIO_INSTALL_STAGING = YES
 LIBIIO_LICENSE = LGPLv2.1+
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH RESEND 1/1 libiio: Bump version to 0.6

Hello,

Quoted 7 lines · Matthew Fornero

v0.6 API offers some major additions, including:
* iio_device_set_kernel_buffers_counts
* iio_buffer_get_poll_fd
* iio_bufer_set_blocking_mode
* iio_buffer_push_partial

This update is causing some failures, such as:

http://autobuild.buildroot.net/results/ffe/ffec14aa79833a6f0889a87b31dae464d083e6a8/build-end.log

Could you have a look at what's going on? This happens in many configurations:

http://autobuild.buildroot.net/?reason=libiio-0.6

Thanks for your help!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH 1/1 libiio: Fix pthread linking for iiod

Update the iiod CMake configuration to resolve pthread linking issues introduced with commit:

17ee15da70d23c314a3264c87a785101cbd9d85d
("libiio: Bump version to 0.6")

Fixes:
http://autobuild.buildroot.net/results/ffe/ffec14aa79833a6f0889a87b31dae464d083e6a8/
http://autobuild.buildroot.net/results/49f/49f249632ed021ebe73ee7fab1b55fb3bb4c08f8/

---
 ...IIOD-Link-pthread-with-no-network-backend.patch |   30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/libiio/0002-IIOD-Link-pthread-with-no-network-backend.patch
package/libiio/0002-IIOD-Link-pthread-with-no-network-backend.patch new file +30 -0
new file mode 100644
index 0000000..df11a49
@@ -0,0 +1,30 @@
+From 8dcb6c3f60123511d77b9fc7e4e22ae710e7d2f4 Mon Sep 17 00:00:00 2001
+From: Matthew Fornero <[email protected]>
+Date: Wed, 8 Jun 2016 20:03:56 -0400
+Subject: [PATCH] IIOD: Link pthread with no network backend
+
+If iiod is built without the network backend, CMake will not link in
+pthreads. Update the CMake configuration to accomodate this case.
+
+Signed-off-by: Matthew Fornero <[email protected]>
+---
+ CMakeLists.txt |    3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 70f61f0..20fa9f1 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -56,6 +56,9 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+ 	if (WITH_IIOD AND NOT WITH_LOCAL_BACKEND)
+ 		message(SEND_ERROR "IIOD can only be enabled if the local backend is enabled")
+ 	endif()
++	if (WITH_IIOD)
++		set(NEED_THREADS 1)
++	endif()
+ endif()
+ 
+ option(ENABLE_IPV6 "Define if you want to enable IPv6 support" ON)
+-- 
+1.7.10.4
+
Signature · 1 line
1.7.10.4
#4 lore raw

PATCH 1/1 libiio: Fix pthread linking for iiod

Hello,

Quoted 10 lines · Matthew Fornero

Update the iiod CMake configuration to resolve pthread linking issues introduced with commit:

17ee15da70d23c314a3264c87a785101cbd9d85d
("libiio: Bump version to 0.6")

Fixes:
http://autobuild.buildroot.net/results/ffe/ffec14aa79833a6f0889a87b31dae464d083e6a8/
http://autobuild.buildroot.net/results/49f/49f249632ed021ebe73ee7fab1b55fb3bb4c08f8/

Quoted 5 lines
---
 ...IIOD-Link-pthread-with-no-network-backend.patch |   30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/libiio/0002-IIOD-Link-pthread-with-no-network-backend.patch

Applied to master, thanks. Please submit upstream if not already done!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Applied
#5 lore raw

PATCH 1/1 libiio: Fix pthread linking for iiod

Merged into upstream:
https://github.com/analogdevicesinc/libiio/pull/30

[Sorry for the double mail Thomas-- first message was bounced from the list due to using the wrong email address]

-Matt

Quoted 42 lines

-----Original Message-----
From: Thomas Petazzoni [mailto:thomas.petazzoni at free-electrons.com]
Sent: Thursday, June 09, 2016 1:36 AM
To: Matt Fornero <[email protected]>
Cc: buildroot at busybox.net
Subject: Re: [Buildroot] [PATCH] libiio: Fix pthread linking for iiod

Hello,

Quoted 8 lines · Matthew Fornero

Update the iiod CMake configuration to resolve pthread linking issues introduced with commit:

17ee15da70d23c314a3264c87a785101cbd9d85d
("libiio: Bump version to 0.6")

Fixes:

http://autobuild.buildroot.net/results/ffe/ffec14aa79833a6f0889a87b31
d

Quoted 2 lines

ae464d083e6a8/

http://autobuild.buildroot.net/results/49f/49f249632ed021ebe73ee7fab
1b

Quoted 5 lines

55fb3bb4c08f8/

---
 ...IIOD-Link-pthread-with-no-network-backend.patch |   30

++++++++++++++++++++

Quoted 3 lines
 1 file changed, 30 insertions(+)
 create mode 100644

package/libiio/0002-IIOD-Link-pthread-with-no-network-

backend.patch

Applied to master, thanks. Please submit upstream if not already done!

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering http://free-
electrons.com