This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Below is one way of integrating some C programs into the package manager. At the moment they are individual binaries but in the future the
main
functions of each program could be used as self contained functions in a library. See https://github.com/kisslinux/website/blob/68db287bdf5b12e78d50c4b17f9a27c6a3d4eec6/site/blog/20210711a.txt#L261-L275 for one of Dylan's ideas.I have not implemented the opt-in/out idea but this could be achieved with a simple environment variable check.
With these patches, the package manager expects the binaries to be found in
/usr/lib/kiss/
. A patch to support this for the kiss build file in repo is below. Either the directory/usr/lib/kiss/
can be prepended to$PATH
, or absolute paths could be used when the programs are called. Maybe it would be best to call the binarieskiss_owner
etc rather than justowner
and use them in/usr/lib/kiss
prepended to$PATH
.I have started with two C programs; each replaces one instance of parsing
ls
. This fixes the problem in #289 and should be a bit faster.Both C programs are written in ISO C90 (
-std=c89
) and use only libc functions from POSIX.Thoughts are welcome, this is just one idea of an improvement.