-
Notifications
You must be signed in to change notification settings - Fork 3
Command line tool to build packages #1
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
Comments
I've made a proof of concept for building ipks from a supplied directory and without docker (see Bulkin/toltec@ab54319). The question is, should the finished tool remain in the toltec git repo, or be a separate entity? In my opinion, it would make sense to add the tool to the base |
My expectation is that docker would still be used, the tool would just handle abstracting that away for you. The tool likely should live in the toolchain repository as it would be part of the toolchain. Thoughts @matteodelabre ? |
I’m all for making our build system more standalone. In fact, we talked about moving it to a separate repo before and I still think it’s a good idea since that would enable us to iterate faster on it without compromising on the review requirements of the main repo. However I don’t get the appeal of adding it to the toolchain. The goal of the toolchain repo is only to provide a Docker image with a cross-compiler and a reproducible build environment. @Bulkin: Your POC looks good! How do you plan on handling packages that depend on Debian packages or on other Toltec packages for building? |
So I've thought some more on the subject and now believe that it would be best to split the tool into two callable scripts, say
This way, during app development one would typically use It might be a good idea to add My plan is to P.S. Naming things is hard, all suggestions welcome :) |
Seems like a good plan! I’ll look into it after we’re finished with the work on the current stable merge. |
On a related note, since we don’t really need all of Docker’s features, we could investigate replacing it with a simpler (chroot+overlayfs)-based approach (see also https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot). |
Just created toltec-dev/build (this repository) with an initial version of the standalone build tool. Usage is
Feedback is welcome! The build tool has been stripped from most of the main-repo-specific logic. The next steps will be to further test this repository, make a release, then update the main repo to use this repo for building. For now, the Docker separation proposed by @Bulkin is not yet implemented, I’ll open a separate issue for that. |
We should have a command line abstractions to handle building packages. Right now you'll just have to know what docker container to run, and how to properly bind in the files and call the appropriate python scripts. Ideally I should just be in a directory with a package file and call
toltec-build
or something, similar tomakepkg
. It should then spit out the ipk file(s) in the same directory.The text was updated successfully, but these errors were encountered: