[Buildroot] [git commit] package/lua-lunix: fix build with musl

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Jul 20 19:25:30 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=db6e5bf7d6774e52f93a3a8bed536200539f07dc
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

see http://autobuild.buildroot.net/results/7d192a0a1d58d258b77906cf936949b2f47373cd/

Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 .../lua-lunix/0002-remove-link-with-librt.patch    | 36 ++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/package/lua-lunix/0002-remove-link-with-librt.patch b/package/lua-lunix/0002-remove-link-with-librt.patch
new file mode 100644
index 0000000000..7b1c8ddd57
--- /dev/null
+++ b/package/lua-lunix/0002-remove-link-with-librt.patch
@@ -0,0 +1,36 @@
+From aeaff83b9ae42547b8728edac000f3d41d5e44aa Mon Sep 17 00:00:00 2001
+From: Francois Perrad <francois.perrad at gadz.org>
+Date: Sat, 17 Jul 2021 13:21:38 +0200
+Subject: [PATCH] remove link with librt
+
+librt is not available with musl
+
+Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
+---
+ lunix-rel-20170920/lunix-20170920-1.rockspec | 10 ----------
+ 1 file changed, 10 deletions(-)
+
+diff --git a/lunix-rel-20170920/lunix-20170920-1.rockspec b/lunix-rel-20170920/lunix-20170920-1.rockspec
+index 741179d..76cafeb 100644
+--- a/lunix-rel-20170920/lunix-20170920-1.rockspec
++++ b/lunix-rel-20170920/lunix-20170920-1.rockspec
+@@ -26,16 +26,6 @@ build = {
+ 		};
+ 	};
+ 	platforms = {
+-		linux = {
+-			modules = {
+-				["unix"] = {
+-					libraries = {
+-						-- glibc <= 2.17 needs to link with librt
+-						"rt";
+-					};
+-				};
+-			};
+-		};
+ 		osx = {
+ 			modules = {
+ 				["unix"] = {
+-- 
+2.30.2
+


More information about the buildroot mailing list