Bug 1789346
| Summary: | RFE: Add support for $releasever_major, $releasever_minor, and limited shell expansion for zypp yum repo file compatibility | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Neal Gompa <ngompa13> |
| Component: | dnf | Assignee: | Evan Goode <egoode> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 39 | CC: | carl, daniel.mach, davide, egoode, jkolarik, jmracek, jrohel, maxwell, mblaha, mhatina, mhjacks, nsella, packaging-team-maint, pkratoch, riehecky, rpm-software-management, vmukhame |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | dnf-4.18.0-2.fc39 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-10-22 08:24:48 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1665453 | ||
|
Description
Neal Gompa
2020-01-09 12:11:30 UTC
Is it expected for this will be implemented in dnf5? I'm working on a proposal for EPEL 10, and I believe I'd be able to make use of $releasever_major and $releasever_minor if they were present. I'm moving this to the dnf5 component. I'd really like to see this implemented in DNF 5 for both SUSE Linux distributions (which use this functionality in Zypper, and I'd like to convince them to adopt DNF 5) and EPEL 10 (who would like to use it so life isn't hard for EPEL 10 repo configuration between CentOS Stream and RHEL/clones/etc). Can we please prioritize this capability being implemented? The implementation in libzypp is here: * header: https://github.com/openSUSE/libzypp/blob/d03a02d986f43266af81c73cced1b310e8615971/zypp/repo/RepoVariables.h * source: https://github.com/openSUSE/libzypp/blob/d03a02d986f43266af81c73cced1b310e8615971/zypp/repo/RepoVariables.cc https://github.com/rpm-software-management/dnf5/pull/800 has been merged, adding releasever_major/releasever_minor and shell-like variable expansion to DNF 5. However, we would also like to have this functionality in RHEL 10, and since DNF 5 has been postponed, this means we should implement it in DNF 4. So I am moving this back to the dnf component. I opened https://github.com/rpm-software-management/dnf/pull/1989 to implement $releasever_major and $releasever_minor, and https://github.com/rpm-software-management/libdnf/pull/1622 to implement the POSIX shell-like variable expansion in DNF 4. (In reply to Evan Goode from comment #5) > I opened https://github.com/rpm-software-management/dnf/pull/1989 to > implement $releasever_major and $releasever_minor, This is also needed in libdnf since PackageKit and microdnf also use it. OK, all the PRs have been merged: releasever_major/releasever_minor in DNF: https://github.com/rpm-software-management/dnf/pull/1989 Documentation changes in DNF: https://github.com/rpm-software-management/dnf/pull/2004 releasever_major/releasever_minor in libdnf: https://github.com/rpm-software-management/libdnf/pull/1631 Shell-like parameter expansion: https://github.com/rpm-software-management/libdnf/pull/1622 Moving to POST. FEDORA-2023-a066057708 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-a066057708 FEDORA-2023-a066057708 has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-a066057708` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-a066057708 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-a066057708 has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-a066057708` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-a066057708 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-a066057708 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. |