Skip to contentSkip to conversation

package/libudfread: needs __sync_*_4 or threads

PATCH Applied Fabrice Fontaine 2 participants 2 messages Apr 12, 2022 – Apr 21, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libudfread: needs __sync_*_4 or threads

libudfread needs __sync_*_4 or threads since its addition in commit c477885e3f3c31d3922af1fc0e47e6f5f35b1645 and
https://code.videolan.org/videolan/libudfread/-/commit/06c3cb9223a3cb5ab048e42ab353958f422a8f57
to avoid the following build failure:

src/udfread.c:108:3: error: #error no atomic operation support
108 | # error no atomic operation support

      |   ^~~~~

Fixes:
- http://autobuild.buildroot.org/results/f76d475f49d525095ac0054224b50b9e612691d6

---
 package/libudfread/Config.in | 4 ++++
 1 file changed, 4 insertions(+)
package/libudfread/Config.in +4 -0
index 8d42570500..c1f3f23af9 100644
@@ -1,6 +1,10 @@
 config BR2_PACKAGE_LIBUDFREAD
 	bool "libudfread"
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_TOOLCHAIN_HAS_THREADS
 	help
 	  UDF reader
 
 	  https://code.videolan.org/videolan/libudfread
+
+comment "libudfread needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_SYNC_4 && !BR2_TOOLCHAIN_HAS_THREADS
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 5 lines · Fabrice Fontaine

libudfread needs __sync_*_4 or threads since its addition in commit c477885e3f3c31d3922af1fc0e47e6f5f35b1645 and
https://code.videolan.org/videolan/libudfread/-/commit/06c3cb9223a3cb5ab048e42ab353958f422a8f57
to avoid the following build failure:

Quoted 8 lines

src/udfread.c:108:3: error: #error no atomic operation support
108 | # error no atomic operation support

       |   ^~~~~

Fixes:
- http://autobuild.buildroot.org/results/f76d475f49d525095ac0054224b50b9e612691d6

Applied to master, thanks.

Regards,
Arnout

Quoted 9 lines
---
  package/libudfread/Config.in | 4 ++++
  1 file changed, 4 insertions(+)
package/libudfread/Config.in +0 -0
index 8d42570500..c1f3f23af9 100644

package/libudfread/Config.in line 10

Quoted 10 lines
package/libudfread/Config.in +4 -0
@@ -1,6 +1,10 @@
  config BR2_PACKAGE_LIBUDFREAD
  	bool "libudfread"
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_TOOLCHAIN_HAS_THREADS
  	help
  	  UDF reader
 
  	  https://code.videolan.org/videolan/libudfread
+
+comment "libudfread needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_SYNC_4 && !BR2_TOOLCHAIN_HAS_THREADS

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