- Oct 28, 2024
-
-
Casey authored
Make intellisense happy Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Casey authored
Since parse.deviceinfo() returns a custom class now, it can't be trivially serialized as JSON. This has been broken for months now so it's clear nobody is using this. Let's take the chance to get rid of it. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Casey authored
For the JSON output to be machine-readable we can't have random other logging messages in the mix. Print the metadata to stderr instead of stdout. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Casey authored
Move the apk_static module from pmb/chroot to pmb/helpers which is a more suitable location. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Casey authored
Since all apk invocations withing pmbootstrap now use apk.static by default, apk_static.run() isn't called anymore, so let's remove it. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Casey authored
In 0b4fb911 (chroot: always run apk static v2 (MR 2423)) we adjusted install_run_apk() to run apk static on the host and pass in the local binary repo with "--repository". This function can call apk in two ways, either with the progress bar handling or without, the second case was never updated and still ran apk inside the chroot incorrectly. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Casey authored
This function better belongs here, especially as it will be used outside of the context of a chroot() soon. Additionally, it's adjusted to take the rootfs path as its first argument rather than a chroot, since it could operate on any rootfs. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Casey authored
Lazy load pmb.config.styles and move the pmb.__version__ print elsewhere so the logging module is (closer to) a standalone entity. This is necessary to be able to import it in pmb/helpers/apk.py otherwise we get a cyclical dependency. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Casey authored
Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Casey authored
We broadly support "Arch" objects in command invocations, adjust the PathString type to properly represent this. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Casey authored
Refactor the integration test script to support running a variety of tests, and add CI jobs for them. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org> CI: integration: export built images/packages as artifacts Signed-off-by:
Caleb Connolly <caleb@postmarketos.org> CI: integration: build for trailblazer instead of qemu-aarch64 for more coverage. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
- Oct 27, 2024
-
-
Casey authored
We run pmbootstrap with --details-to-stdout now, so this isn't needed. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Casey authored
Write some basic parser tests for deviceinfo. The parser is quite basic so there isn't much to test yet. Expecting this to gain features as we look at e.g. making the parser the "source of truth" for the deviceinfo format. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Some packages in aports have their own subpackages in their dependencies, for some reason. This causes our resolver to assume there is a cyclical dependency. Adjust the resolver to safely ignore these dependencies, since they'll be built as a part of the package that depends on them. For example, modemmanager depends on libmm-glib which is a subpackage of modemmanager. Currently to build modemmanager in pmaports it would be necessary to manually modify the APKBUILD after copying it from aports. This change avoids that. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Oliver Smith authored
-
Casey authored
args.autoinstall attribute might not exist, use getattr like for others, and add a fixme about the default value... Fixes: #2476 Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
All call sites that use this have been removed. This was only introduced as a stopgap until we could refactor more code to not use args everywhere, and that has now been achived. As such, remove this so it doesn't get used in more locations.
-
See postmarketOS/pmbootstrap#2473 Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Add a basic test to ensure that the cache does get hit as we expect. This doesn't test for cache conflicts. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Use a different way of keying the apkindex path cache. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
It may be desirable to test older versions of packages, allow them to be built when --force is specified and print a warning that they won't be installed automatically. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Seems to be ChromeOS specific: > this happens every time on my machine. I am on ChromeOS 129.0.6668.112 > using a Debian bookworm chroot through Crouton. I am not sure why > this is happening nor which layer is responsible for this. I deleted > the chroot and created another one but the problem persists. Commit msg tweaked by Oliver.
-
Newbyte authored
Provides kpartx.
-
Newbyte authored
We fully expect this to happen if a user hasn't configured their host system properly. As such, don't treat it like a programming error.
-
We now run the job in chroot, so remove the unnecessary check. If sphinx-build is missing for some reason, it will fail a bit further in the script anyways.
-
- Oct 26, 2024
-
-
I don't think there's any case where the number of jobs would have to be a string. It's also being assigned an integer elsewhere the code (in ask_for_additional_options() inside of init.py), so an integer seems like what we actually want. Also fix type errors resulting of this.
-
For the gitlab.com -> gitlab.postmarketos.org migration we needed to also migrate the workdir in pmb v2 since pmb v3 is not ready yet. Therefore we need to handle that "7-2.x" workdir version and migrate correctly when switching to pmbootstrap v3. See !2445
- Oct 24, 2024
-
-
Clayton Craft authored
This works around https://gitlab.postmarketos.org/postmarketOS/ pmaports/-/issues/3268, by always installing hexdump when building packages. The full hexdump is small (like 80KB), and even though this isn't required in most situations it seems like the best of a group of bad workarounds, until upstream/busybox fix the bug in the pmaports issue.
-
- Oct 23, 2024
-
-
Casey authored
So we don't go through the pain of pushing 3 times to get 3 different ruff failures in CI. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Casey authored
Add a test to parse some APKINDEX data. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Casey authored
should be an int, but was always a string... Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Casey authored
I guess this is leftover from some experimentation. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Casey authored
Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-