Skip to contentSkip to conversation

package/nnn: add BR2_TOOLCHAIN_HAS_THREADS dependency

PATCH Superseded Alexander Shirokov 2 participants 5 messages Sep 19 – Oct 16

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/nnn: add BR2_TOOLCHAIN_HAS_THREADS dependency

nnn links against pthread. Specify the dependency to avoid unexpected build failures on toolchains lacking thread support (e.g. br-arm-full-nothread).

---
 package/nnn/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/nnn/Config.in +3 -2
index 64cfa8e0a5..555ab864d9 100644
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_NNN
 	bool "nnn"
 	depends on BR2_USE_MMU # fork
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	# Building nnn without widechar/UTF support is theoretically
 	# possible, but in practice it leads to unstable builds.
 	# That’s why the WCHAR dependency is here.
@@ -15,6 +16,6 @@ config BR2_PACKAGE_NNN
 
 	  https://github.com/jarun/nnn
 
-comment "nnn needs a toolchain with wchar"
+comment "nnn needs a toolchain with wchar, threads"
 	depends on BR2_USE_MMU # fork
-	depends on !BR2_USE_WCHAR
+	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
Signature · 6 lines
2.55.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hello Alexander,

Quoted 5 lines · Alexander Shirokov

nnn links against pthread. Specify the dependency to avoid unexpected build failures on toolchains lacking thread support (e.g. br-arm-full-nothread).

Thanks for your updated patch. However, a patch fixing an issue must indicate when the issue was introduced. Is it since package/nnn was introduced? Due to a subsequent version bump of nnn?

Ideally, we like to have:

Fixes <commithash> ("commit title")

This helps the maintainers of Buildroot LTS branches in figuring out whether the patch needs to be backported or not.

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

PATCH v2 1/1 package/nnn: add BR2_TOOLCHAIN_HAS_THREADS dependency

nnn links against pthread. Specify the dependency to avoid unexpected build failures on toolchains lacking thread support (e.g. br-arm-full-nothread).

Fixes 7856e41685a179fdda7b21a10455e52fe5fa5cb0 ("package/nnn: new package")
---
 package/nnn/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/nnn/Config.in +3 -2
index 64cfa8e0a5..555ab864d9 100644
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_NNN
 	bool "nnn"
 	depends on BR2_USE_MMU # fork
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	# Building nnn without widechar/UTF support is theoretically
 	# possible, but in practice it leads to unstable builds.
 	# That’s why the WCHAR dependency is here.
@@ -15,6 +16,6 @@ config BR2_PACKAGE_NNN
 
 	  https://github.com/jarun/nnn
 
-comment "nnn needs a toolchain with wchar"
+comment "nnn needs a toolchain with wchar, threads"
 	depends on BR2_USE_MMU # fork
-	depends on !BR2_USE_WCHAR
+	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
Signature · 6 lines
2.55.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
Quoted 6 lines · Alexander Shirokov

nnn links against pthread. Specify the dependency to avoid unexpected build failures on toolchains lacking thread support (e.g. br-arm-full-nothread).

Fixes 7856e41685a179fdda7b21a10455e52fe5fa5cb0 ("package/nnn: new package")

Applied to master, thanks!

Best regards,

Thomas Petazzoni

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
In reply to Alexander Shirokov

In reply of:

Quoted 6 lines

nnn links against pthread. Specify the dependency to avoid unexpected build failures on toolchains lacking thread support (e.g. br-arm-full-nothread).

Fixes 7856e41685a179fdda7b21a10455e52fe5fa5cb0 ("package/nnn: new package")

Applied to 2026.08.x. Thanks

Quoted 17 lines
---
 package/nnn/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/nnn/Config.in +1 -0
index 64cfa8e0a5..555ab864d9 100644
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_NNN
 	bool "nnn"
 	depends on BR2_USE_MMU # fork
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	# Building nnn without widechar/UTF support is theoretically
 	# possible, but in practice it leads to unstable builds.
 	# That’s why the WCHAR dependency is here.

package/nnn/Config.in config BR2_PACKAGE_NNN · line 21

Quoted 8 lines
package/nnn/Config.in +2 -2
@@ -15,6 +16,6 @@ config BR2_PACKAGE_NNN
 
 	  https://github.com/jarun/nnn
 
-comment "nnn needs a toolchain with wchar"
+comment "nnn needs a toolchain with wchar, threads"
 	depends on BR2_USE_MMU # fork
-	depends on !BR2_USE_WCHAR
+	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot