Repository navigation
Conversation
Solve for the requested architecture instead of the host one and feed it to $basearch in repo URLs. Adds the shared rpm_lock solver-args plumbing, the synthetic features repository and the sharded e2e test skeleton. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- --excludepkgs and rpm_lock(excludepkgs=): hide packages matching NEVRA globs from the solver, like dnf excludepkgs. Any other --setopt key goes to libdnf. - --module-enable and rpm_lock(module_enable=, module_platform_id=): enable module streams before resolving and recompute modular filtering. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Best stays the default; --nobest lets the solver fall back to older candidates while keeping pinned versions as constraints, and solver problems are reported in the error. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- The same NEVRA in two enabled repositories no longer breaks best mode: pick_one_pkg_per_name_arch keeps a single candidate. - Weak dependencies (Recommends, Supplements) are no longer trimmed from the solution: install_weak_deps is honoured, so they are resolved and locked. - A lower-layer entry with a NULL or empty integrity means the same build, not a change. - A lower-layer package with no candidate in the repositories became a synthetic solvable providing only its own name, so packages relying on its sonames looked broken and libsolv bent its provider choice (openssh 9.9p1 + openssh-clients instead of the 10.5p1 real dnf installs). It now inherits the provides of the newest build of that name in the repositories, minus that build's self-provides. Verified against real dnf on a perl-ci repro: the 83-package transaction is identical. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
…grades - A requested package the layer below holds at the repositories' version or newer no longer gets an install job: libsolv counted it as a fresh install and pulled in its weak dependencies (glibc-gconv-extra, the systemd chain, ...). On the cs9-slim and ol9-upgrades repros the result now matches dnf. - The goal runs through dnf_goal_depsolve, which adds exclude_from_weak_autodetect: providers of Recommends an installed package left unmet stay out of weak installation, so an upgrade adds only the new weak dependencies, as `dnf update` and `microdnf update` do (verified on a two-version fixture). An empty transaction is not an error. - The lockfile records "recommends" and "supplements" (dependency strings, rich ones included) per package and reads them back onto the synthetic installed solvable, so this also holds when the repositories lack the layer's build. Entries without the fields behave as before; tools that rewrite lockfile entries must pass them through. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
On an arm64 host libsolv rejected the x86_64 packages of an `--archlist x86_64` mark, so their dependencies went unmarked (oracle_linux_curl_mark_test failed on macOS arm64). dnf_lock already set the solve architecture; its helpers move to dnf/solve-arch.h and mark uses them too. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- Run pull requests on `pull_request` instead of `pull_request_target`, which GitHub restricts on public repositories by default from 2026-12-02. Fork PRs get no secrets and fall back to the Docker sandbox (setup_buildbuddy.sh). - actions/checkout v7.0.1, softprops/action-gh-release v3.0.3; setup_buildbuddy.sh: results URL on app.buildbuddy.io, 100 remote jobs. - Per-platform transition binaries and their filegroups are `manual`, so `bazel test //...` builds only the host tools; an empty stand-in for rules_swift's local toolchain config saves its 25-80 s Swift probe. - `--config=asan` builds dnf_lock and every C dependency with ASan + LSan + UBSan (hermetic LLVM); suppressions for proven third-party noise ship to the tests only under this config. The Sanitizers workflow runs the lock, mark and tools e2e tests with it on every pull request and push to main. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Add dnf5 5.4.6.0 and toml11 4.4.0 to the local registry. The dnf5 module builds the upstream sources from the release tarball with an overlay (BUILD, module file, generated config.h, a force-included compat header for macOS) and patches for what a Bazel build cannot express (fs/utils.hpp, nsvcap regexes under libc++). This change builds libdnf5 only; the plugins, the hermetic rpm configuration, the CLI and the wiring follow. The root module depends on dnf5 as a dev dependency so //... resolves it. Based on the dnf5 work by Manuel Naranjo. Co-authored-by: Manuel Naranjo <naranjo.manuel@gmail.com> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Upstream builds libdnf5 plugins as shared objects and dlopen()s them from the host. Link actions, expired-pgp-keys and local into libdnf5 instead: defs.bzl renames each plugin's extern "C" entry points, and plugins.cpp finds them in a static table. A plugin configuration naming a plugin that is not built in (rhsm, snapper, ...) is skipped with a warning, not fatal. The plugin configuration directories are resolved below the installroot. libdnf5 and its plugins call each other, so the plugins are alwayslink and depend on libdnf5_core, and :libdnf5 ties the three together. init_lib_rpm no longer reads the host's rpmrc, macros or init.lua: it points RPM_CONFIGDIR at /dev/null, supplies the architecture compat table, targets <arch>-linux whatever the host is, and defines the few macros the rpmdb and transactions need (dbpath, sqlite backend, colors, verify level, ...). Based on the dnf5 work by Manuel Naranjo. Co-authored-by: Manuel Naranjo <naranjo.manuel@gmail.com> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Add libdnf5-cli and the dnf5 binary. The command plugins (changelog, config-manager, copr, repoclosure, repomanage, reposync) are linked into the binary with renamed entry points and registered from a static table in main.cpp. Nothing is loaded from the host: command aliases (aliases.d) and external plugins (DNF5_PLUGINS_DIR) are disabled on purpose. Two patches for libc++: the progress bar takes its time from system_clock (high_resolution_clock is not the type of its stored time points), and --changelogs-since is parsed with std::get_time, which libc++ has where it lacks std::chrono::parse; impossible dates such as 2024-02-31 are still rejected. Based on the dnf5 work by Manuel Naranjo. Co-authored-by: Manuel Naranjo <naranjo.manuel@gmail.com> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ajvengo
force-pushed
the
dnf5/06-golden-test-for-the-configuration-dnf5-r
branch
from
October 29, 2026 06:08
cf909a3 to
0081da8
Compare
ajvengo
force-pushed
the
dnf5/06-golden-test-for-the-configuration-dnf5-r
branch
from
October 29, 2026 06:25
0081da8 to
78300bc
Compare
Wire dnf5 into the repository like the other tools: //dnf:dnf5 and the per-platform dnf5_<platform> binaries, the @dnf5 host alias, the root aliases, release packaging (5 tools on 4 platforms, 20 binaries), the CI and release workflows, README and AGENTS.md. The dnf5_* prebuilt repositories exist only once a release has generated integrities, so the root module has no use_repo for them. e2e:dnf5_smoke_test runs the built binary against the ol9 test repository inside a temporary installroot and checks exit codes: repoquery, the solver reporting missing dependencies, a plugin configuration for a plugin that is not built in being skipped, the host's rpm Lua not running (RPM_CONFIGDIR pointing at an init.lua that writes a marker), a noarch package passing rpm's arch, os and digest checks, and the rpmdb being created inside the installroot. Based on the dnf5 work by Manuel Naranjo. Co-authored-by: Manuel Naranjo <naranjo.manuel@gmail.com> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
…e test dnf_config renders dnf.conf (best, install_weak_deps, excludepkgs, module_platform_id) and one .repo per repository with ctx.actions.write and expand_template, and returns DnfConfigInfo with the files and the preamble. DNF5_PREAMBLE is the one list of flags that pins every host input dnf5 reads. The smoke test runs repoquery and install --assumeno through the rule. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
…eamble Dumps the main and repository configuration through DNF5_PREAMBLE, replaces the execroot and the scratch directory by placeholders, fails on any value that is a host path or contains $HOME, and compares the rest with a checked-in golden file. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ajvengo
force-pushed
the
dnf5/06-golden-test-for-the-configuration-dnf5-r
branch
from
October 29, 2026 07:14
78300bc to
588ee66
Compare
This branch is waiting to be deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
dnf5 migration, part 6/19. Stacked on #46–#52 and #76–#80: review only the last commit, and merge the PRs in order. Replaces the earlier dnf5 PRs #56–#62 and #64–#75, regrouped into 19 focused commits without the transitional libdnf backend of
rpm_lock/rpm_mark. Thelockandrpmdb-markcommands share their plugin and option code, andrpm_lockshares its solver attributes withdnf_config.Size: 3 files changed, 252 insertions(+).
Dumps the main and repository configuration through DNF5_PREAMBLE, replaces
the execroot and the scratch directory by placeholders, fails on any value
that is a host path or contains $HOME, and compares the rest with a checked-in
golden file.
Tested: this commit on its own passes
bazel test //...on macOS arm64. The series head is also tested on Linux x86_64 (x86_64_v3):bazel test //...29/29, and ASan + UBSan on the e2e tests.🤖 Generated with Claude Code