Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Detect and config for SerenityOS #1445

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dlemos
Copy link

@dlemos dlemos commented Sep 27, 2022

SerenityOS is a Unix-like operating system built from scratch. LuaRocks build and run on the build directory but I still can't get it to run after installing it.

@codecov-commenter
Copy link

codecov-commenter commented Sep 27, 2022

Codecov Report

Base: 79.03% // Head: 78.33% // Decreases project coverage by -0.70% ⚠️

Coverage data is based on head (37aa1a7) compared to base (c9fbac4).
Patch coverage: 22.22% of modified lines in pull request are covered.

❗ Current head 37aa1a7 differs from pull request most recent head 3ed8a7c. Consider uploading reports for the commit 3ed8a7c to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1445      +/-   ##
==========================================
- Coverage   79.03%   78.33%   -0.71%     
==========================================
  Files          89       89              
  Lines       11054    10759     -295     
==========================================
- Hits         8737     8428     -309     
- Misses       2317     2331      +14     
Impacted Files Coverage Δ
src/luarocks/core/sysdetect.lua 30.18% <0.00%> (-11.07%) ⬇️
src/luarocks/core/cfg.lua 67.71% <33.33%> (-4.97%) ⬇️
src/luarocks/core/persist.lua 84.61% <0.00%> (-7.70%) ⬇️
src/luarocks/cmd/write_rockspec.lua 82.35% <0.00%> (-1.98%) ⬇️
src/luarocks/test.lua 85.41% <0.00%> (-1.38%) ⬇️
src/luarocks/persist.lua 93.16% <0.00%> (-1.09%) ⬇️
src/luarocks/util.lua 92.41% <0.00%> (-0.90%) ⬇️
src/luarocks/test/command.lua 88.00% <0.00%> (-0.89%) ⬇️
... and 20 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -192,6 +192,11 @@ local function detect_elf_system(fd, hdr, sections)
return "linux"
end
end

local uname_s = io.popen("uname -s"):read("*l")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The goal of the sysdetect module is to implement OS and architecture detection without forking processes. There should be a way to detect the OS and architecture uniquely by verifying some fixed location in the filesystem or the identifying headers of well-known executables.

@hishamhm
Copy link
Member

@dlemos Thank you for the initiative! I gave the PR a first look and left you a review comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants