Skip to contentSkip to conversation

package/empty - fix build failure

PATCH New Brendan Heading 2 participants 3 messages Aug 4, 2015 – Aug 6, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/empty - fix build failure

Fixes http://autobuild.buildroot.net/results/e07/e07aec9a839e89b7452b13bf5445164530e27414/

"empty" fails to build if _POSIX_SEMAPHORES is not defined, which is the case on a toolchain with no threading support.

---
 package/empty/Config.in | 4 ++++
 1 file changed, 4 insertions(+)
package/empty/Config.in +4 -0
index 7fd0877..9a77f8d 100644
@@ -1,7 +1,11 @@
 config BR2_PACKAGE_EMPTY
 	bool "empty"
 	depends on BR2_USE_MMU # uses fork()
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	help
 	  Run processes and applications under pseudo-terminal (PTY) sessions.
 
 	  http://empty.sourceforge.net/
+
+comment "empty needs a toolchain w/ threads"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
Signature · 1 line
2.4.3
#1 lore raw

PATCH 1/1 package/empty - fix build failure

Hi Brendan,
Brendan Heading wrote,

Quoted 4 lines

Fixes http://autobuild.buildroot.net/results/e07/e07aec9a839e89b7452b13bf5445164530e27414/

"empty" fails to build if _POSIX_SEMAPHORES is not defined, which is the case on a toolchain with no threading support.

Threads are not required for SysV semaphores. I have sent a patch fixing the build with a toolchain without threads, but I got no response on that.

http://patchwork.ozlabs.org/patch/493343/

best regards
Waldemar

#2 lore raw

PATCH 1/1 package/empty - fix build failure

Quoted 5 lines · Waldemar Brodkorb

Threads are not required for SysV semaphores. I have sent a patch fixing the build with a toolchain without threads, but I got no response on that.

http://patchwork.ozlabs.org/patch/493343/

Agreed, that looks like a much better solution.

Brendan