blob: fe8f04a9cae25ac1eb52b5a9201bcb58826ff2b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Daniel Lemos <xspager@gmail.com>
Date: Tue, 15 Mar 2022 13:48:34 -0300
Subject: [PATCH] Detect SerenityOS using the `uname` command
---
src/luarocks/core/sysdetect.lua | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/luarocks/core/sysdetect.lua b/src/luarocks/core/sysdetect.lua
index 02b8a49..b05f170 100644
--- a/src/luarocks/core/sysdetect.lua
+++ b/src/luarocks/core/sysdetect.lua
@@ -189,6 +189,11 @@ local function detect_elf_system(fd, hdr, sections)
return "linux"
end
end
+
+ local uname_s = io.popen("uname -s"):read("*l")
+ if uname_s == "SerenityOS" then
+ return "serenity"
+ end
end
return system
|