You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Update before build" is really bad option. But luckily, there is config_opts['update_before_build'] override which enabled to switch this functionality off. However, this option is not currently respected and my packages are always updated. E.g. I do:
$ mock -r fedora-rawhide-x86_64 --pm-cmd downgrade https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/ruby-devel-3.3.1-7.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/ruby-libs-3.3.1-7.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/rubygem-bigdecimal-3.1.5-7.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/noarch/rubygems-devel-3.5.9-7.fc41.noarch.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/rubygem-io-console-0.7.1-7.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/rubygem-psych-5.1.2-7.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/noarch/rubygem-rdoc-6.6.3.1-7.fc41.noarch.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/noarch/rubygems-3.5.9-7.fc41.noarch.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/ruby-3.3.1-7.fc41.x86_64.rpm
INFO: mock.py version 5.6 starting (python version = 3.13.0, NVR = mock-5.6-3.fc41), args: /usr/libexec/mock/mock -r fedora-rawhide-x86_64 --pm-cmd downgrade https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/ruby-devel-3.3.1-7.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/ruby-libs-3.3.1-7.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/rubygem-bigdecimal-3.1.5-7.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/noarch/rubygems-devel-3.5.9-7.fc41.noarch.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/rubygem-io-console-0.7.1-7.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/rubygem-psych-5.1.2-7.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/noarch/rubygem-rdoc-6.6.3.1-7.fc41.noarch.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/noarch/rubygems-3.5.9-7.fc41.noarch.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/ruby-3.3.1-7.fc41.x86_64.rpm
Start: init plugins
INFO: selinux enabled
Finish: init plugins
INFO: Signal handler active
Start: run
INFO: Running pm-cmd downgrade https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/ruby-devel-3.3.1-7.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/ruby-libs-3.3.1-7.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/rubygem-bigdecimal-3.1.5-7.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/noarch/rubygems-devel-3.5.9-7.fc41.noarch.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/rubygem-io-console-0.7.1-7.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/rubygem-psych-5.1.2-7.fc41.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/noarch/rubygem-rdoc-6.6.3.1-7.fc41.noarch.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/noarch/rubygems-3.5.9-7.fc41.noarch.rpm https://kojipkgs.fedoraproject.org//packages/ruby/3.3.1/7.fc41/x86_64/ruby-3.3.1-7.fc41.x86_64.rpm
Mock Version: 5.6
INFO: Mock Version: 5.6
Start: chroot init
WARNING: For multilib systems, both architectures of nosync library need to be installed
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled package manager cache
Start: cleaning package manager metadata
Finish: cleaning package manager metadata
INFO: enabled HW Info plugin
INFO: Package manager dnf5 detected and used (fallback)
Finish: chroot init
Updating and loading repositories:
fedora 100% | 98.4 KiB/s | 22.6 KiB | 00m00s
Repositories loaded.
https://kojipkgs.fedoraproject.org//pa 100% | 8.0 KiB/s | 14.5 KiB | 00m02s
https://kojipkgs.fedoraproject.org//pa 100% | 166.1 KiB/s | 39.4 KiB | 00m00s
https://kojipkgs.fedoraproject.org//pa 100% | 165.1 KiB/s | 351.3 KiB | 00m02s
https://kojipkgs.fedoraproject.org//pa 100% | 203.6 KiB/s | 463.4 KiB | 00m02s
https://kojipkgs.fedoraproject.org//pa 100% | 554.7 KiB/s | 68.2 KiB | 00m00s
https://kojipkgs.fedoraproject.org//pa 100% | 785.2 KiB/s | 289.7 KiB | 00m00s
https://kojipkgs.fedoraproject.org//pa 100% | 197.7 KiB/s | 24.1 KiB | 00m00s
https://kojipkgs.fedoraproject.org//pa 100% | 413.0 KiB/s | 50.4 KiB | 00m00s
https://kojipkgs.fedoraproject.org//pa 100% | 7.7 MiB/s | 3.9 MiB | 00m01s
Package Arch Version Repository Size
Downgrading:
ruby x86_64 3.3.1-7.fc41 @commandline 89.4 KiB
replacing ruby x86_64 3.3.4-13.fc41 fedora 89.5 KiB
ruby-devel x86_64 3.3.1-7.fc41 @commandline 1.6 MiB
replacing ruby-devel x86_64 3.3.4-13.fc41 fedora 1.6 MiB
ruby-libs x86_64 3.3.1-7.fc41 @commandline 14.5 MiB
replacing ruby-libs x86_64 3.3.4-13.fc41 fedora 14.5 MiB
rubygem-bigdecimal x86_64 3.1.5-7.fc41 @commandline 133.7 KiB
replacing rubygem-bigdecimal x86_64 3.1.5-13.fc41 fedora 133.7 KiB
rubygems noarch 3.5.9-7.fc41 @commandline 1.4 MiB
replacing rubygems noarch 3.5.11-13.fc41 fedora 1.4 MiB
rubygems-devel noarch 3.5.9-7.fc41 @commandline 12.5 KiB
replacing rubygems-devel noarch 3.5.11-13.fc41 fedora 12.5 KiB
Transaction Summary:
Replacing: 6 packages
Downgrading: 6 packages
Total size of inbound packages is 5 MiB. Need to download 0 B.
After this operation 61 KiB will be freed (install 18 MiB, remove 18 MiB).
Running transaction
The lowest available version of the "rubygem-io-console.x86_64" package is already installed, cannot downgrade it.
The lowest available version of the "rubygem-psych.x86_64" package is already installed, cannot downgrade it.
The lowest available version of the "rubygem-rdoc.noarch" package is already installed, cannot downgrade it.
[ 1/14] Verify package files 100% | 315.0 B/s | 6.0 B | 00m00s
[ 2/14] Prepare transaction 100% | 545.0 B/s | 12.0 B | 00m00s
[ 3/14] Downgrading ruby-libs-0:3.3.1-7 100% | 142.8 MiB/s | 14.6 MiB | 00m00s
[ 4/14] Downgrading rubygems-0:3.5.9-7. 100% | 48.9 MiB/s | 1.5 MiB | 00m00s
[ 5/14] Downgrading ruby-0:3.3.1-7.fc41 100% | 12.7 MiB/s | 91.1 KiB | 00m00s
[ 6/14] Downgrading ruby-devel-0:3.3.1- 100% | 59.5 MiB/s | 1.6 MiB | 00m00s
[ 7/14] Downgrading rubygem-bigdecimal- 100% | 19.0 MiB/s | 136.5 KiB | 00m00s
[ 8/14] Downgrading rubygems-devel-0:3. 100% | 2.2 MiB/s | 13.3 KiB | 00m00s
[ 9/14] Erasing ruby-devel-0:3.3.4-13.f 100% | 30.0 KiB/s | 215.0 B | 00m00s
[10/14] Erasing ruby-0:3.3.4-13.fc41.x8 100% | 1.8 KiB/s | 11.0 B | 00m00s
[11/14] Erasing rubygem-bigdecimal-0:3. 100% | 2.9 KiB/s | 18.0 B | 00m00s
[12/14] Erasing rubygems-devel-0:3.5.11 100% | 833.0 B/s | 5.0 B | 00m00s
[13/14] Erasing rubygems-0:3.5.11-13.fc 100% | 42.5 KiB/s | 305.0 B | 00m00s
warning: posix.fork(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.execute() instead
warning: posix.wait(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.execute() instead
warning: posix.exec(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.execute() instead
[14/14] Erasing ruby-libs-0:3.3.4-13.fc 100% | 3.9 KiB/s | 604.0 B | 00m00s
>>> Running trigger-install scriptlet: glibc-common-0:2.40-3.fc41.x86_64
>>> Stop trigger-install scriptlet: glibc-common-0:2.40-3.fc41.x86_64
Warning: skipped PGP checks for 6 package(s).
Finish: run
But with a build, the packages are updated again:
$ mock -r fedora-rawhide-x86_64 rubygem-pg-1.5.4-4.fc41.src.rpm -n
INFO: mock.py version 5.6 starting (python version = 3.13.0, NVR = mock-5.6-3.fc41), args: /usr/libexec/mock/mock -r fedora-rawhide-x86_64 rubygem-pg-1.5.4-4.fc41.src.rpm -n
Start: init plugins
INFO: selinux enabled
Finish: init plugins
INFO: Signal handler active
Start: run
INFO: Start(rubygem-pg-1.5.4-4.fc41.src.rpm) Config(fedora-rawhide-x86_64)
Mock Version: 5.6
INFO: Mock Version: 5.6
Start: chroot init
WARNING: For multilib systems, both architectures of nosync library need to be installed
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled package manager cache
Start: cleaning package manager metadata
Finish: cleaning package manager metadata
INFO: enabled HW Info plugin
INFO: Package manager dnf5 detected and used (fallback)
INFO: Buildroot is handled by package management from host and used with --installroot:
rpm-4.19.92-5.fc41.x86_64
rpm-sequoia-1.6.0-3.fc41.x86_64
python3-dnf-4.21.0-2.fc41.noarch
python3-dnf-plugins-core-4.8.0-2.fc41.noarch
dnf5-5.2.2.0-1.fc41.x86_64
dnf5-plugins-5.2.2.0-1.fc41.x86_64
Finish: chroot init
Start: build phase for rubygem-pg-1.5.4-4.fc41.src.rpm
Start: build setup for rubygem-pg-1.5.4-4.fc41.src.rpm
Building target platforms: x86_64
Building for target x86_64
setting SOURCE_DATE_EPOCH=1721347200
Wrote: /builddir/build/SRPMS/rubygem-pg-1.5.4-4.fc41.src.rpm
Updating and loading repositories:
fedora 100% | 114.9 KiB/s | 22.6 KiB | 00m00s
Repositories loaded.
Package "gcc-14.1.1-7.fc41.x86_64" is already installed.
Package "libpq-devel-16.3-5.fc41.x86_64" is already installed.
Package "postgresql-server-16.3-3.fc41.x86_64" is already installed.
Package "ruby-libs-3.3.1-7.fc41.x86_64" is already installed.
Package "ruby-devel-3.3.1-7.fc41.x86_64" is already installed.
Package "rubygem-bigdecimal-3.1.5-7.fc41.x86_64" is already installed.
Package "rubygem-rspec-3.13.0-2.fc41.noarch" is already installed.
Package "rubygems-devel-3.5.9-7.fc41.noarch" is already installed.
Package Arch Version Repository Size
Upgrading:
ruby x86_64 3.3.4-13.fc41 fedora 89.5 KiB
replacing ruby x86_64 3.3.1-7.fc41 @commandline 89.4 KiB
ruby-devel x86_64 3.3.4-13.fc41 fedora 1.6 MiB
replacing ruby-devel x86_64 3.3.1-7.fc41 @commandline 1.6 MiB
ruby-libs x86_64 3.3.4-13.fc41 fedora 14.5 MiB
replacing ruby-libs x86_64 3.3.1-7.fc41 @commandline 14.5 MiB
rubygem-bigdecimal x86_64 3.1.5-13.fc41 fedora 133.7 KiB
replacing rubygem-bigdecimal x86_64 3.1.5-7.fc41 @commandline 133.7 KiB
rubygems noarch 3.5.11-13.fc41 fedora 1.4 MiB
replacing rubygems noarch 3.5.9-7.fc41 @commandline 1.4 MiB
rubygems-devel noarch 3.5.11-13.fc41 fedora 12.5 KiB
replacing rubygems-devel noarch 3.5.9-7.fc41 @commandline 12.5 KiB
Transaction Summary:
Upgrading: 6 packages
Replacing: 6 packages
Total size of inbound packages is 5 MiB. Need to download 0 B.
After this operation 61 KiB will be used (install 18 MiB, remove 18 MiB).
[1/6] ruby-libs-0:3.3.4-13.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s
>>> Already downloaded
[2/6] ruby-devel-0:3.3.4-13.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s
>>> Already downloaded
[3/6] rubygem-bigdecimal-0:3.1.5-13.fc4 100% | 0.0 B/s | 0.0 B | 00m00s
>>> Already downloaded
[4/6] rubygems-devel-0:3.5.11-13.fc41.n 100% | 0.0 B/s | 0.0 B | 00m00s
>>> Already downloaded
[5/6] ruby-0:3.3.4-13.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s
>>> Already downloaded
[6/6] rubygems-0:3.5.11-13.fc41.noarch 100% | 0.0 B/s | 0.0 B | 00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[6/6] Total 100% | 0.0 B/s | 0.0 B | 00m00s
Running transaction
[ 1/14] Verify package files 100% | 428.0 B/s | 6.0 B | 00m00s
[ 2/14] Prepare transaction 100% | 521.0 B/s | 12.0 B | 00m00s
[ 3/14] Upgrading ruby-libs-0:3.3.4-13. 100% | 142.0 MiB/s | 14.6 MiB | 00m00s
[ 4/14] Upgrading rubygems-0:3.5.11-13. 100% | 49.1 MiB/s | 1.5 MiB | 00m00s
[ 5/14] Upgrading ruby-0:3.3.4-13.fc41. 100% | 11.1 MiB/s | 91.1 KiB | 00m00s
[ 6/14] Upgrading ruby-devel-0:3.3.4-13 100% | 59.5 MiB/s | 1.6 MiB | 00m00s
[ 7/14] Upgrading rubygem-bigdecimal-0: 100% | 16.7 MiB/s | 136.6 KiB | 00m00s
[ 8/14] Upgrading rubygems-devel-0:3.5. 100% | 2.2 MiB/s | 13.3 KiB | 00m00s
[ 9/14] Erasing ruby-devel-0:3.3.1-7.fc 100% | 30.0 KiB/s | 215.0 B | 00m00s
[10/14] Erasing ruby-0:3.3.1-7.fc41.x86 100% | 1.8 KiB/s | 11.0 B | 00m00s
[11/14] Erasing rubygem-bigdecimal-0:3. 100% | 2.8 KiB/s | 17.0 B | 00m00s
[12/14] Erasing rubygems-devel-0:3.5.9- 100% | 833.0 B/s | 5.0 B | 00m00s
[13/14] Erasing rubygems-0:3.5.9-7.fc41 100% | 29.7 KiB/s | 304.0 B | 00m00s
warning: posix.fork(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.execute() instead
warning: posix.wait(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.execute() instead
warning: posix.exec(): .fork(), .exec(), .wait() and .redirect2null() are deprecated, use rpm.execute() instead
[14/14] Erasing ruby-libs-0:3.3.1-7.fc4 100% | 3.4 KiB/s | 602.0 B | 00m00s
>>> Running trigger-install scriptlet: glibc-common-0:2.40-3.fc41.x86_64
>>> Stop trigger-install scriptlet: glibc-common-0:2.40-3.fc41.x86_64
... snip ...
Short description of the problem
"Update before build" is really bad option. But luckily, there is
config_opts['update_before_build']
override which enabled to switch this functionality off. However, this option is not currently respected and my packages are always updated. E.g. I do:But with a build, the packages are updated again:
Output of
rpm -q mock
Any additional notes
Output of `mock --debug-config`
The text was updated successfully, but these errors were encountered: