mock-core-configs v37

  • link default.cfg file to the right EL N config file
  • Add centos-stream+epel-8 configs
  • move CentOS/EPEL 8 configs to eol/
  • Fedora 36 branching, Rawhide == Fedora 37 now
  • depend on distribution-gpg-keys 1.64
  • drop failovermethod=priority from EL8 configs
  • Add Extras repo for CentOS Stream 9 (ngompa13@gmail.com)
  • remove el7 specific parts from the spec file (msuchy@redhat.com)

distribution-gpg-keys

  • move Fedora Rawhide key to F37
  • Add EuroLinux 9 key
  • Add CentOS Extras SIG key
  • Add symlink for CentOS Stream 9 to main official key

Release notes: https://rpm-software-management.github.io/mock/Release-Notes-2.16

mock

mock-core-configs

How to install

sudo dnf upgrade --refresh --advisory=FEDORA-2021-a7d4aaa6fe

This update has been submitted for testing by praiskup.

8 months ago

This update's test gating status has been changed to 'ignored'.

8 months ago

This update has been pushed to testing.

8 months ago
User Icon besser82 commented & provided feedback 8 months ago
karma

Works great! LGTM! =)

User Icon gotmax23 commented & provided feedback 8 months ago
karma

Hi @praiskup et. al,

There are a couple problems:

  • fedpkg --release epel8 mockbuild does not work properly. It defaults to rhel8, which does not work by default and results in a 403 error when dnf/mock attempts to install packages. After running ln -s /etc/mock/alma+epel-8-x86_64.cfg ~/.config/mock/epel-8-x86_64.cfg, it breaks entirely:
$ fedpkg --release epel8 mockbuild --no-cleanup-after                                                                                                                     
Not downloading already downloaded ansible-core-2.12.1.tar.gz

setting SOURCE_DATE_EPOCH=1638921600
Wrote: /home/gotmax/Sync/git-repos/packaging/fedora_rpms/forks.repos/ansible.repos/ansible-core/ansible-core-2.12.1-2.el8.src.rpm

mockbuild.exception.ConfigError: Could not find included config file: /tmp/epel-8-x86_64.v230b0w7mockconfig/templates/almalinux-8.tpl

ERROR: Error in configuration
Could not execute mockbuild: Failed to execute command.

It is possible to override the buildroot with --root alma+epel-8-x86_64, but that is cumbersome and shouldn't be necessary.

  • Using alma+epel-8-x86_64 works with mock itself and with fedpkg after applying the aforementioned fix, but mock/dnf repeatedly prints out the following error when installing packages: Invalid configuration value: failovermethod=priority in /var/lib/mock/alma+epel-8-x86_64/root/etc/dnf/dnf.conf; Configuration: OptionBinding with id "failovermethod" does not exist.

  • Even if I wanted to use the rhel+epel-8-* configs, they don't work at all, as subscription-manager is broken (#1995465) and it is impossible to obtain an entitlement.

In my opinion, this update should not be pushed until these crucial issues are fixed.

Thanks,

Maxwell

Bodhi is disabling automatic push to stable due to negative karma. The maintainer may push manually if they determine that the issue is not severe.

8 months ago
User Icon churchyard commented & provided feedback 8 months ago
karma

Indeed, fedpkg mockbuild fails on epel8 branches. For me, it fails with: Status code: 403 for https://infrastructure.fedoraproject.org/repo/rhel/rhel8/koji/latest/x86_64/RHEL-8-001/non_modular/basesystem-11-5.el8.noarch.rpm. It seems it fallbacks to Koji's mock config instead of using the installed one. And after running ln -s /etc/mock/alma+epel-8-x86_64.cfg /home/churchyard/.config/mock/epel-8-x86_64.cfg I get the same error as reported by @gotmax23.

User Icon gotmax23 commented & provided feedback 8 months ago

@churchyard:

For me, it fails with: Status code: 403 for https://infrastructure.fedoraproject.org/repo/rhel/rhel8/koji/latest/x86_64/RHEL-8-001/non_modular/basesystem-11-5.el8.noarch.rpm.

I have that same issue. That's what i meant by

It defaults to rhel8, which does not work by default and results in a 403 error when dnf/mock attempts to install packages.

User Icon praiskup commented & provided feedback 8 months ago

Thanks for noting this. The user-specific configuration is not known by rpkg, thus by fedpkg. Proposed fix: https://pagure.io/rpkg/pull-request/595

User Icon gotmax23 commented & provided feedback 8 months ago

For anyone who happens upon this, here1 is a link to the mailing list discussion about the issues I raised.

User Icon praiskup commented & provided feedback 8 months ago

I don't think it makes sense to block this update. This is not a bug in mock, and the incompatibility with fedpkg will take some time (note there's a simple work-around).

User Icon atim provided feedback 8 months ago
karma
User Icon churchyard commented & provided feedback 8 months ago

This is not a bug in mock, but the mock-core-configs update introduced a regression for fedpkg users. As such, it should not be pushed to a stable release. Packagers who need the new features or fixes are more likely to be able to install this from updates-testing than packagers who would install this and suddenly got their EPEL 8 packaging experience broken are likely to be able to find the workaround.

This update can be pushed to stable now if the maintainer wishes

8 months ago
User Icon dpward commented & provided feedback 8 months ago
karma

This

BZ#2026571 Unable to build the root for centos-stream-8-x86_64
User Icon dpward commented & provided feedback 8 months ago

This should wait until the regressions can be fixed. Also for BZ#2026571 it would be better to use template variables in place of $stream at a minimum, rather than embedding values directly in the URL.

User Icon praiskup commented & provided feedback 8 months ago

There are no regressions, and #2026571 is AFAIK fixed.

User Icon dpward commented & provided feedback 7 months ago

Please see comment on #2026571.

User Icon praiskup commented & provided feedback 7 months ago

Not a regression, or reason to block this update.

User Icon ktdreyer commented & provided feedback 7 months ago

@praiskup, what should I do to build epel8 with fedpkg now?

User Icon sergiomb commented & provided feedback 7 months ago
karma

centos+epel-8-x86_64.cfg works for me , although don't understand why is not the classic epel-8

User Icon praiskup commented & provided feedback 7 months ago

@ktdreyer: Follow the e.g. the instructions from mock -r epel-8-x86_64 --shell (create one symlink, e.g. ~/.config/mock/epel-8-x86_64).

User Icon lruzicka commented & provided feedback 7 months ago
karma

Worked in my case.

User Icon fuller commented & provided feedback 7 months ago
karma

working for me

praiskup edited this update.

New build(s):

  • mock-core-configs-37-1.fc35
  • distribution-gpg-keys-1.64-1.fc35

Removed build(s):

  • mock-core-configs-36.4-1.fc35

Karma has been reset.

6 months ago

This update has been submitted for testing by praiskup.

6 months ago
User Icon praiskup commented & provided feedback 6 months ago

Updated mock-core-configs and distribution-gpg-keys. Be careful, karma is reset - and new karma 3 moves this to stable. This IMO makes a complete sense NOW, as the previous epel-8 configs don't work anymore (centos 8 mirrors are off already).

This update has been pushed to testing.

6 months ago
User Icon atim commented & provided feedback 6 months ago
karma

centos-stream-8-x86_64 now works. TY.

BZ#2026571 Unable to build the root for centos-stream-8-x86_64

ok i guess

praiskup edited this update.

New build(s):

  • mock-core-configs-37.1-1.fc35

Removed build(s):

  • mock-core-configs-37-1.fc35

Karma has been reset.

6 months ago

This update has been submitted for testing by praiskup.

6 months ago

This update has been pushed to testing.

6 months ago
User Icon ngompa commented & provided feedback 6 months ago
karma

Works for me.

BZ#2026571 Unable to build the root for centos-stream-8-x86_64
User Icon dcavalca commented & provided feedback 6 months ago
karma

Tested on multiple F35 systems, works fine.

BZ#2026571 Unable to build the root for centos-stream-8-x86_64

This update can be pushed to stable now if the maintainer wishes

6 months ago
User Icon gtb commented & provided feedback 6 months ago
karma

Works for me.

This update has been submitted for stable by bodhi.

6 months ago

This update has been pushed to stable.

6 months ago

Please login to add feedback.

Metadata
Type
enhancement
Karma
3
Signed
Content Type
RPM
Test Gating
Settings
Unstable by Karma
-3
Stable by Karma
3
Stable by Time
disabled
Dates
submitted
8 months ago
in testing
6 months ago
in stable
6 months ago
modified
6 months ago
BZ#2026571 Unable to build the root for centos-stream-8-x86_64
0
2

Automated Test Results