Page MenuHomeFreeBSD

Lua functions to handle make command output for specific FreeBSD ports targets
Needs ReviewPublic

Authored by tuukka.pasanen_ilmi.fi on Oct 24 2025, 10:36 AM.
Tags
None
Referenced Files
F158111236: D53317.id164948.diff
Thu, May 28, 3:06 PM
Unknown Object (File)
Wed, May 27, 3:41 PM
Unknown Object (File)
Wed, May 27, 3:21 PM
Unknown Object (File)
Tue, May 26, 4:10 PM
Unknown Object (File)
Sat, May 23, 8:29 AM
Unknown Object (File)
Wed, May 20, 3:07 PM
Unknown Object (File)
Tue, May 19, 4:23 AM
Unknown Object (File)
Sun, May 17, 4:00 AM
Subscribers

Details

Reviewers
bapt
Group Reviewers
portmgr
Summary

Diff adds Lua functions designed to process and manage the output of the make command within FreeBSD ports, with a focus on handling output from specific targets.

Test Plan

After patch is applied then it can be tested with Lua script which under this, go to some ports package and run with command LUA_PATH="/usr/ports/Mk/LuaScripts/?.lua;;" /usr/libexec/flua /usr/ports/Mk/LuaScripts/example.lua:

Testing script (example.lua):

local Logging = require("logging")
logger = Logging.new(nil, "DEBUG", true)
require("ports-make")

output = ports_make_target("describe")

print(output)

output_table = ports_make_target_as_table("describe-json")

for _, cur_string in ipairs(output_table) do
        print("Output line: [" .. cur_string .. "]")
end

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped