Skip to content
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

Fix /var/cache/dnf and /etc/yum packaging #2118

Merged

Commits on Aug 13, 2024

  1. spec: Move /var/cache/dnf from dnf to python3-dnf

    The cache directory is used by /usr/bin/dnf-3 program packaged
    in python3-dnf. dnf package requires python3-dnf.
    ppisar committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    69180a5 View commit details
    Browse the repository at this point in the history
  2. spec: Remove preview yum_compat_level

    CMake build script stopped creating yum4 executable when
    Python 2 support was removed with commit
    92f03d1 ([spec] Remove python 2).
    
    Therefore the preview level cannot be enabled anymore and this patch
    removes it to simplify the spec file.
    ppisar committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    f89f14e View commit details
    Browse the repository at this point in the history
  3. spec: Simplify %files dnf section for both yum_compat_levels

    Miminal level is a subset of full level.
    ppisar committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    65a19c6 View commit details
    Browse the repository at this point in the history
  4. spec: Fix ownership of /etc/yum tree

    This patch fixes two mistakes:
    
    (1) In minimal yum_compat_levels (default one) rpmbuild complained:
    
        RPM build warnings:
            File not found: /home/test/rpmbuild/BUILDROOT/dnf-4.21.0-4.fc40.x86_64/etc/yum/pluginconf.d
            File not found: /home/test/rpmbuild/BUILDROOT/dnf-4.21.0-4.fc40.x86_64/etc/yum/protected.d
            File not found: /home/test/rpmbuild/BUILDROOT/dnf-4.21.0-4.fc40.x86_64/etc/yum/vars
    
    (2) In full yum_compat_levels /etc/yum directory was not owned by yum package
    ppisar committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    e053f85 View commit details
    Browse the repository at this point in the history