Skip to contentSkip to conversation

rng-tools: Fix disabling package on non-x86 architectures.

PATCH New Nicolas Cavallari 3 participants 3 messages Jan 11, 2017 – Jan 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rng-tools: Fix disabling package on non-x86 architectures.

Commit 2f89476 ("package/libgpg-error: bump to version 1.23") introduced a BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS which was added as a dependency to all libgpg-error reverse dependencies.

However, rng-tools only select libgpg-error if BR2_i386 || BR2_x86_64 (for RDRAND) but the rng-tools dependency was added as BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS && (BR2_i386 || BR2_x86_64), Therefore limiting rng-tools to the x86 architecture.

This patch changes it as ..._ARCH_SUPPORT || !(BR2_i386 || BR2_x86_64).

---
 package/rng-tools/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/rng-tools/Config.in +1 -1
index 0c538cc292..b00477d336 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_RNG_TOOLS
 	bool "rng-tools"
-	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS && (BR2_i386 || BR2_x86_64) # libgcrypt
+	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS || !(BR2_i386 || BR2_x86_64) # libgcrypt
 	select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL
 	# For rdrand ligcrypt is required and it's not obvious to users
 	select BR2_PACKAGE_LIBGCRYPT if BR2_i386 || BR2_x86_64
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 rng-tools: Fix disabling package on non-x86 architectures.

Hi Nicolas,

Le 11/01/2017 ? 17:19, Nicolas Cavallari a ?crit :

Quoted 10 lines

Commit 2f89476 ("package/libgpg-error: bump to version 1.23") introduced a BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS which was added as a dependency to all libgpg-error reverse dependencies.

However, rng-tools only select libgpg-error if BR2_i386 || BR2_x86_64 (for RDRAND) but the rng-tools dependency was added as BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS && (BR2_i386 || BR2_x86_64), Therefore limiting rng-tools to the x86 architecture.

This patch changes it as ..._ARCH_SUPPORT || !(BR2_i386 || BR2_x86_64).

Best regards,
Romain

Quoted 19 lines
---
 package/rng-tools/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/rng-tools/Config.in +1 -1
index 0c538cc292..b00477d336 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_RNG_TOOLS
 	bool "rng-tools"
-	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS && (BR2_i386 || BR2_x86_64) # libgcrypt
+	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS || !(BR2_i386 || BR2_x86_64) # libgcrypt
 	select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL
 	# For rdrand ligcrypt is required and it's not obvious to users
 	select BR2_PACKAGE_LIBGCRYPT if BR2_i386 || BR2_x86_64
#2 lore raw

PATCH 1/1 rng-tools: Fix disabling package on non-x86 architectures.

In reply to Nicolas Cavallari

Hello,

Quoted 9 lines · Nicolas Cavallari

Commit 2f89476 ("package/libgpg-error: bump to version 1.23") introduced a BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS which was added as a dependency to all libgpg-error reverse dependencies.

However, rng-tools only select libgpg-error if BR2_i386 || BR2_x86_64 (for RDRAND) but the rng-tools dependency was added as BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS && (BR2_i386 || BR2_x86_64), Therefore limiting rng-tools to the x86 architecture.

Quoted 6 lines

This patch changes it as ..._ARCH_SUPPORT || !(BR2_i386 || BR2_x86_64).

---
 package/rng-tools/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas

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