Newer
Older
minerva / Ports / luarocks / patches / 0002-Detect-Minerva-using-the-uname-command.patch
@minerva minerva on 13 Jul 758 bytes Initial commit
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 Minerva 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 == "Minerva" then
+         return "minerva"
+      end
    end
 
    return system