Topic: mock / epel-8 / remi
Hi,
I'm trying to use mock to target epel-8-x86_64 + remi. Mock works great for building this package for Fedora 34 & 35. So far I created this mock config file:
include('templates/centos-8.tpl')
include('templates/epel-8.tpl')
config_opts['root'] = 'epel-8-x86_64'
config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64',)
config_opts['module_enable'] = ['php:7.4']
config_opts['dnf.conf'] += """
[remi]
name=Remi's RPM repository for Enterprise Linux 8 - $basearch
mirrorlist=LINK
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/remi/RPM-GPG-KEY-remi2018
[remi-modular]
name=Remi's Modular repository for Enterprise Linux 8 - $basearch
mirrorlist=LINK
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/remi/RPM-GPG-KEY-remi2018
[remi-safe]
name=Safe Remi's RPM repository for Enterprise Linux 8 - $basearch
mirrorlist=LINK
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=file:///usr/share/distribution-gpg-keys/remi/RPM-GPG-KEY-remi2018
"""
The problem is during package build there are some version conflicts, probably due to modular stuff:
Error:
Problem: conflicting requests
- package php-sodium-7.2.34-4.el8.remi.x86_64 is filtered out by modular filtering
- package php-sodium-7.2.34-6.el8.remi.x86_64 is filtered out by modular filtering
- package php-sodium-7.3.28-1.el8.remi.x86_64 is filtered out by modular filtering
- package php-sodium-7.3.29-1.el8.remi.x86_64 is filtered out by modular filtering
- package php-sodium-7.4.20-1.el8.remi.x86_64 is filtered out by modular filtering
- package php-sodium-7.4.21-1.el8.remi.x86_64 is filtered out by modular filtering
- package php-sodium-8.0.7-1.el8.remi.x86_64 is filtered out by modular filtering
- package php-sodium-8.0.8-1.el8.remi.x86_64 is filtered out by modular filtering
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Do you have any idea how to fix this? Does it require changes to the spec file? Can this php:7.4 module be somehow "forced" also for dependencies that are installed? I'd prefer to not modify the spec file though to keep it uniform and simple.
The spec file of the package I am trying to build: https://git.sr.ht/~fkooman/php-oauth2-s … erver.spec
Thanks!