Skip to contentSkip to conversation

package/libbdplus: Add missing libgpg arch support

PATCH New Maxime Hadjinlian 3 participants 3 messages Jul 4, 2016 – Jul 5, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libbdplus: Add missing libgpg arch support

Thanks to Romain Naour for finding the culprit package.

Fix:
http://autobuild.buildroot.org/results/d06/d06e3eb9ef48540b71fbec267c534523632b224f/

---
 package/libbdplus/Config.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/libbdplus/Config.in +3 -1
index df5ea27..afde075 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_LIBBDPLUS
 	bool "libbdplus"
+	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_STATIC_LIBS
 	select BR2_PACKAGE_LIBGCRYPT
@@ -15,4 +16,5 @@ config BR2_PACKAGE_LIBBDPLUS
 	  http://www.videolan.org/developers/libbdplus.html
 
 comment "libbdplus needs a toolchain w/ threads, dynamic library"
-	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
+		!BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS
Signature · 1 line
2.8.1
#1 lore raw

PATCH 1/1 package/libbdplus: Add missing libgpg arch support

Hi Maxime,

Le 04/07/2016 ? 23:57, Maxime Hadjinlian a ?crit :

Quoted 6 lines

Thanks to Romain Naour for finding the culprit package.

Fix:
http://autobuild.buildroot.org/results/d06/d06e3eb9ef48540b71fbec267c534523632b224f/

Best regards,
Romain

Quoted 23 lines
---
 package/libbdplus/Config.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/libbdplus/Config.in +3 -1
index df5ea27..afde075 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_LIBBDPLUS
 	bool "libbdplus"
+	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_STATIC_LIBS
 	select BR2_PACKAGE_LIBGCRYPT
@@ -15,4 +16,5 @@ config BR2_PACKAGE_LIBBDPLUS
 	  http://www.videolan.org/developers/libbdplus.html
 
 comment "libbdplus needs a toolchain w/ threads, dynamic library"
-	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
+		!BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS
#2 lore raw

PATCH 1/1 package/libbdplus: Add missing libgpg arch support

In reply to Maxime Hadjinlian

Hello,

package/libbdplus/Config.in config BR2_PACKAGE_LIBBDPLUS · line 20

Quoted 4 lines · Maxime Hadjinlian

comment "libbdplus needs a toolchain w/ threads, dynamic library"

package/libbdplus/Config.in +2 -1
-	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
+		!BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS

That's not the proper way of taking into account architecture dependencies. What we want is that the comment is only displayed if the architecture requirements are met, so:

comment "libbdplus needs a toolchain w/ threads, dynamic library"

	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS
	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS

Applied with this fixed.

Thomas

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