Release 3.12.0
This release contains notable internal refactoring as well as minor
functionality changes, particularly:
* The "ci" subcommand can now handle nura.eco magic strings.
* The "export" subcommand now creates symlinks to U-Boot FIT images if
they are present.
* The "sideload" command now has a --allow-untrusted argument for
sideloading onto devices which lack the right public key(s).
* Aportgen's placeholder maintainer line has been changed to not throw
off abuild so that forked packages don't always fail to build until it
has been changed.
* Aportgen's downstream port generator now sets gzip as the default
initramfs compression to allow for switching the default for mainline
devices to something else.
* No built-in kconfigcheck.toml is shipped in releases any more. Any
pmaports repository interacted with must provide its own. All
currently supported pmaports branches contain one at the time of
writing.
* The APKBUILD parser now throws an error if a listed subpackage lacks
a corresponding function.
Full changelog:
Achill Gilgenast (2):
mailmap: fossdd => achill
pmb.install._install: remove invalid command
Aelin (5):
pmb.core.arch: Add machine type mapping for riscv64
pmb.install: Switch PReP-boot devices to fat32 boot with powervm-boot
pmb.parse.kconfig: Only check kconfig for architecture generating for
pmb.config.other: Don't force OpenRC on nonexistent UI packages
pmb.core.config: Update Alpine mirror URL
Alexey Minnekhanov (1):
pmb.commands.export: Only create and show links to existing files
Aster Boese (6):
pmb.build: allow not specifying _flavor in linux-* APKBUILD
pmb.aportgen: modernize kernel APKBUILD formatting
pmb: specify which android-tools programs to install
pmb.aportgen: add '_config' to the legacy section of kernel APKBUILD aportgen
pmb.aportgen: do not install kernel.release as executable in the aportgen kernel template
pmb.aportgen: add BPF dependencies
Casey Connolly (1):
add a mailmap to fix my name in git history
Ferass El Hafidi (1):
pmb.install._install: accept glob patterns in sd_embed binary path
Henrik Grimler (1):
maintainers: remove grimler
Luca Leonardo Scorcia (1):
pmb.commands.export: Export symlinks to uBoot FIT images, if present
Luca Weiss (1):
Allow https://nura.eco/pmb-ci magic string, update references to URL
Oliver Smith (8):
pmb.helpers.file.wait_until_exists: add env var
pmb.build: fix missing 'r' in two messages
repo_missing: fix packages appearing twice
Revert "pmb.config: support legacy pmb:systemd option"
pmb.install._install.get_recommends: remove install_recommends param
pmb.install._install.get_recommends: respect !deps
pmb.helpers.package: adjust log level
CI: adjust to new docs.nura.eco repo name
Pablo Correa Gómez (35):
pmb.install._install: don't reimplement provides for unlocker package
pmb.parse.depends: remove unused module
pmb.parse.apkindex: mark some functions as private
pmb.core.apkindex_block: make parsing of the block part of the class
pmb.parse.apkindex: extract reading of APKINDEX file to a function
pmb.chroot.apk: use parse_blocks instead of parse for installed
test.parse.test_apkindex: add test for parse_blocks
pmb.core.apk_package: rename ApkPackage from ApkindexBlock
pmb.core.package_metadata: only allow a single Arch instead of a list
pmb.core.package_metadata: use apkbuild "depends" for depends
pmb.core.package_metadata: remove in favor of apk_package
pmb.chroot.apk: check if apk db exists before trying to parse it
Fix leftover renames of ApkindexBlock in comments
pmb.core.apkindex: create a dummy Apkindex class to deal with indexes
pmb.core.apkindex: add read_lines method
pmb.core.apkindex: add get_apk_packages, replacing pmb.parse.apkindex.parse_blocks
Move Apkbuild from pmb.types to pmb.core.apk_package
pmb.chroot.initfs_hooks: mark private functions as such
pmb: parse and save the pkgdesc from APKINDEX files
pmb.chroot.initfs_hooks: simplify functions needed to list hooks
pmb.chroot.initfs_hooks: only take initfs hooks from binary archives
pmb.core.apkindex: add class method to get the apk installed db
pmb.core.apkindex: add class method to get the local packages indeces
pmb.aportgen.core: set arch as native if it's None
pmb.build._package: use pkg_arch instead of arch for index info of package
pmb.build._package: remove fallback_arch to simplify the logic
pmb.build._package: avoid updating all package indexes on arch=None
pmb.parse.arguments,pmb.build._package: update arch default documentation
Make the arch option across package and repo functions more deterministic
pmb.build._package: use pmb.parse.apkindex.package to check existing packages
pmb.parse.apkindex: make indexes compulsory for providers
pmb.aportgen.gcc: directly get alpine main repo
pmb.helpers.repo: improve a bit the typing and variable names
pmb.helpers.repo: rename apkindex_hash to apkrepo_hash and fix types
pmb.helpers.repo: make arch option compulsory
Stefan Hansson (53):
pmb.config.pmaports: Use NonBugError for failed to switch branch case
pmb.parse._apkbuild: Error on missing subpackages
pmb: Update Ruff rule references to use new naming scheme
pmb.core.arch: Introduce Arch.from_arch_field()
pmb.build: Use Arch.from_arch_field() for handling APKBUILD arch field
pmb: Replace pmaports.check_arch() with Arch.from_arch_field()
pmb.core.test_arch: Add test for Arch.from_arch_field()
pmb.helpers.ui: Appease Ruff
CONTRIBUTING.md: Fix formatting
pmb.chroot.initfs: Remove unnecessary local variable and move comment
pmb.install._install: Remove check for supported_base_nofde
pmb: Remove more remnants of flavour support
pmb.chroot.initfs: Remove support for non-usr merge setups
pmb.aportgen.gcc: Fix implicit Any in depends_for_sonames()
pmb.helpers.git: Fix implicit Any in rev_parse()
pmb.config.init: Allow colon in extra packages list
pmb.config.init: Break out package spec from extra packages pattern
pmb.core.apkindex_block: Replace unnecessary explicit Any with object
pmb.aportgen.device: Use match for flash_method deviceinfo generation
pmb: Avoid unnecessary splitting
test.core.test_pkgrepo: Remove debug print
pmb.parse.arguments: Remove unnecessary lambdas
pmb.flasher.frontend: Use str() instead of __str__() dunder
pmb.build._package: Update BPO part of --no-depends error
pmb.install._install: Improve keymap logging
pmb: Introduce TomlTable type and use it
pmb.parse.arguments: Fix instances of implicit Any in generics
pmb.parse._apkbuild: Add generic type annotation for re.Match
pmb: Fix missing generic type for subprocess.Popen
pmb.helpers.apk_static: Remove instances of implicit Any generics
pmb.core.apk_package: Remove instance of implicit Any generic
pmb.core.config: Make "aports" variable a Path rather than a list[Path]
pmb.config.init: Use Apkbuild type in ask_for_provider_select()
pmb.build._package: Use Apkbuild type in more places
README.md: Document pmaports testsuite compatibility
pmb.aportgen.device: Use gzip for initramfs on downstream
pmb.aportgen: Don't ask for mainline or downstream with --fork-alpine
pmb.commands.kconfig: Make error_msg variable a global constant
pmb.commands.sideload: Add --allow-untrusted argument
pmb.aportgen.core: Change placeholder maintainer field to appease abuild
pmb.core.apk_package: Update class docstring
pmb.build._package: Make BuildQueueItem a proper class
pmb.build._package: Use a set for all_pkgnames
README.md: Update pmbootstrap installation link
Revert "pmb.build._package: avoid updating all package indexes on arch=None"
pmb.aportgen.device: Use nura.eco links
pmb.aportgen.linux: Use nura.eco links
pmb.build.backend: Fix instance of nonexistent kwarg
pmb.build._package: Fix handling of arch=None in package()
pmb.meta: Improve handling of arguments for cached functions
pmb.meta: Reduce use of Any
pmb: Move builtin kconfigcheck.toml to testdata and error if missing
test.parse.test_kconfig_parsing: Add missing fixtures
Prepare 3.12.0 release