Skip to contentSkip to conversation

libcpprestsdk: require nptl threads.

PATCH Superseded Adam Duskett 2 participants 3 messages Jan 22, 2018 – Jan 23, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libcpprestsdk: require nptl threads.

pthread_condattr_setclock is uses which is NPTL only.

Fixes http://autobuild.buildroot.net/results/abf058948c9e4e9a50d42a05689b76bfb54a02e2/build-end.log

---
 package/libcpprestsdk/Config.in | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
package/libcpprestsdk/Config.in +6 -3
index 64c383c2c9..334df41951 100644
@@ -4,6 +4,7 @@ config BR2_PACKAGE_LIBCPPRESTSDK
 	depends on BR2_TOOLCHAIN_HAS_THREADS # boost
 	depends on BR2_USE_WCHAR # boost
 	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # exception_ptr
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
 	select BR2_PACKAGE_BOOST
 	select BR2_PACKAGE_BOOST_ATOMIC
 	select BR2_PACKAGE_BOOST_CHRONO
@@ -22,9 +23,11 @@ config BR2_PACKAGE_LIBCPPRESTSDK
 
 	  https://github.com/Microsoft/cpprestsdk
 
-comment "libcpprestsdk needs a toolchain w/ C++, wchar, threads"
-	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
-		|| !BR2_USE_WCHAR
+comment "libcpprestsdk needs a toolchain w/ NPTL threads, C++, wchar, threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
+		!BR2_INSTALL_LIBSTDCPP || \
+		!BR2_TOOLCHAIN_HAS_THREADS || \
+		!BR2_USE_WCHAR
 
 comment "libcpprestsdk needs exception_ptr"
 	depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
Signature · 1 line
2.14.3
#1 lore raw

PATCH 1/1 libcpprestsdk: require nptl threads.

Hi Adam,

Quoted 14 lines · Adam Duskett

pthread_condattr_setclock is uses which is NPTL only.

Fixes http://autobuild.buildroot.net/results/abf058948c9e4e9a50d42a05689b76bfb54a02e2/build-end.log

---
 package/libcpprestsdk/Config.in | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
package/libcpprestsdk/Config.in +0 -0
index 64c383c2c9..334df41951 100644

package/libcpprestsdk/Config.in config BR2_PACKAGE_LIBCPPRESTSDK · line 4

Quoted 1 line
package/libcpprestsdk/Config.in +0 -0
@@ -4,6 +4,7 @@ config BR2_PACKAGE_LIBCPPRESTSDK
 	depends on BR2_TOOLCHAIN_HAS_THREADS # boost

This dependency is now redundant. Besides, threads is a dependency of libcpprestsdk itself, regardless of boost.

Quoted 7 lines
package/libcpprestsdk/Config.in +1 -0
 	depends on BR2_USE_WCHAR # boost
 	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # exception_ptr
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
 	select BR2_PACKAGE_BOOST
 	select BR2_PACKAGE_BOOST_ATOMIC
 	select BR2_PACKAGE_BOOST_CHRONO

package/libcpprestsdk/Config.in config BR2_PACKAGE_LIBCPPRESTSDK · line 26

Quoted 7 lines
package/libcpprestsdk/Config.in +1 -3
@@ -22,9 +23,11 @@ config BR2_PACKAGE_LIBCPPRESTSDK
 
 	  https://github.com/Microsoft/cpprestsdk
 
-comment "libcpprestsdk needs a toolchain w/ C++, wchar, threads"
-	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
-		|| !BR2_USE_WCHAR
+comment "libcpprestsdk needs a toolchain w/ NPTL threads, C++, wchar, threads"

"threads" is duplicated here as well. Actually, "NPTL" alone is enough.

package/libcpprestsdk/Config.in config BR2_PACKAGE_LIBCPPRESTSDK · line 33

Quoted 7 lines
package/libcpprestsdk/Config.in +4 -0
+	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
+		!BR2_INSTALL_LIBSTDCPP || \
+		!BR2_TOOLCHAIN_HAS_THREADS || \
+		!BR2_USE_WCHAR
 
 comment "libcpprestsdk needs exception_ptr"
 	depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#2 lore raw

PATCH 1/1 libcpprestsdk: require nptl threads.

Hello;

Quoted 47 lines · Baruch Siach

Hi Adam,

Quoted 14 lines · Adam Duskett

pthread_condattr_setclock is uses which is NPTL only.

Fixes http://autobuild.buildroot.net/results/abf058948c9e4e9a50d42a05689b76bfb54a02e2/build-end.log

---
 package/libcpprestsdk/Config.in | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
package/libcpprestsdk/Config.in +0 -0
index 64c383c2c9..334df41951 100644

package/libcpprestsdk/Config.in config BR2_PACKAGE_LIBCPPRESTSDK · line 4

Quoted 1 line
package/libcpprestsdk/Config.in +0 -0
@@ -4,6 +4,7 @@ config BR2_PACKAGE_LIBCPPRESTSDK
      depends on BR2_TOOLCHAIN_HAS_THREADS # boost

This dependency is now redundant. Besides, threads is a dependency of libcpprestsdk itself, regardless of boost.

Quoted 7 lines
package/libcpprestsdk/Config.in +1 -0
      depends on BR2_USE_WCHAR # boost
      depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # exception_ptr
+     depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
      select BR2_PACKAGE_BOOST
      select BR2_PACKAGE_BOOST_ATOMIC
      select BR2_PACKAGE_BOOST_CHRONO

package/libcpprestsdk/Config.in config BR2_PACKAGE_LIBCPPRESTSDK · line 26

Quoted 7 lines
package/libcpprestsdk/Config.in +1 -3
@@ -22,9 +23,11 @@ config BR2_PACKAGE_LIBCPPRESTSDK
 
        https://github.com/Microsoft/cpprestsdk
 
-comment "libcpprestsdk needs a toolchain w/ C++, wchar, threads"
-     depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
-             || !BR2_USE_WCHAR
+comment "libcpprestsdk needs a toolchain w/ NPTL threads, C++, wchar, threads"

"threads" is duplicated here as well. Actually, "NPTL" alone is enough.

package/libcpprestsdk/Config.in config BR2_PACKAGE_LIBCPPRESTSDK · line 33

Quoted 7 lines
package/libcpprestsdk/Config.in +4 -0
+     depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
+             !BR2_INSTALL_LIBSTDCPP || \
+             !BR2_TOOLCHAIN_HAS_THREADS || \
+             !BR2_USE_WCHAR
 
 comment "libcpprestsdk needs exception_ptr"
      depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
Quoted 6 lines

baruch

--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

Thanks for the feedback! I submitted a V2 and will mark this as superseded.

Thanks!

Adam