pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Bob v0.1.0 ready for beta testing
* On 2026-01-01 at 20:24 GMT, David Brownlee wrote:
ability to override pkgpaths on the command line
- For example "bob build www/firefox misc/libreoffice"
Yeh I already had this planned, and have pushed support for this now to
git. I already released v0.3.0 earlier today and don't want to cut
another release so soon after, so if you want this feature then:
$ cargo install --git https://github.com/jperkin/bob
or wait a day or two for v0.4.0.
ability to parse a pkgchk.conf file
- In particular could help people currently using pkg_chk to try bob
with their existing setup
- More of an ask here, though the file format is not sophisticated
- Alternatively if the above is implemented you could just "awk
'{if($1~/\//){print $1}}' pkgsrc.conf | xargs bob build" :-p
You could add something like this (untested) to your config.lua:
local function read_pkgpaths(filename)
local pkgpaths = {}
for line in io.lines(filename) do
if line:match("/") and not line:match("^#") then
table.insert(pkgpaths, line)
end
end
return pkgpaths
end
and then:
pkgpaths = read_pkgpaths("/etc/pkgchk.conf")
My idea is to add a common library of such functions once we've got some
experience with what features are required.
These are useful for having bob be hooked up to automated CI, passing it
a list of pkgpaths that have been committed to since the last build (one
of the reasons I'm writing it).
Cheers,
--
Jonathan Perkin pkgsrc.smartos.org
Open Source Complete Cloud www.tritondatacenter.com
Home |
Main Index |
Thread Index |
Old Index