Since mock has been updated from 3.5 version to 5.1.1 in september it's no more possible to use mock to build rpms for arm arches (bug 32620) Fortunately Jani Välimaa found a way to correct this with a short patch Upstream seems not wanting to correct this.... and this bug 32620 must be resolved So here is an update with Jani's patch ADVISORY Mock couldn't build rpms for arm arches since it has been updated to 5.1.1 version A little patch added to mock-core-configs allows now mock to work for all arches RPM mock-core-configs-39.1-2.mga9.noarch.rpm from SRPM mock-core-configs-39.1-2.mga9.src.rpm To test it : 1) before updating, try to build a rpm for aarch64 with mock 2) update 3) then try again to build the same rpm for aarch64
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=32620
CC: (none) => geiger.david68210, j.alberto.vc, jani.valimaa
Created attachment 14347 [details] Suggested advisory
CC: (none) => marja11, tarazed25
@Marja and Len, I still can't upload this myself, please do it for me
Tested in real hardware mageia 9 x86_64 Try to rebuild one of my src.rpms mock -r mageia-9-aarch64 --rebuild /home/katnatek/repositorio/mageia/mageia9/free/SRPMS/evdi-1.14.1-1bdk_mga9.src.rpm --resultdir /home/katnatek/rpm/RPMS/x86_64/ last lines of the output ERROR: Exception(/home/katnatek/repositorio/mageia/mageia9/free/SRPMS/evdi-1.14.1-1bdk_mga9.src.rpm) Config(mageia-9-aarch64) 0 minutes 37 seconds INFO: Results and/or logs in: /home/katnatek/rpm/RPMS/x86_64/ INFO: Cleaning up build root ('cleanup_on_failure=True') Start: clean chroot Finish: clean chroot ERROR: Command failed: # /usr/bin/dnf-3 --installroot /home/katnatek/mock/mageia-9-aarch64-bootstrap/root/ --releasever 9 --setopt=deltarpm=False --setopt=allow_vendor_change=yes --allowerasing --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock install python3-dnf python3-dnf-plugins-core No matches found for the following disable plugin patterns: local, spacewalk, versionlock determining the fastest mirror (10 hosts).. done. Mageia 9 - aarch64 2.3 MB/s | 35 MB 00:15 determining the fastest mirror (6 hosts).. done. Mageia 9 - aarch64 - Updates 1.3 MB/s | 7.8 MB 00:05 Last metadata expiration check: 0:00:05 ago on Thu Feb 8 18:55:30 2024. Error: Problem 1: conflicting requests - nothing provides python3-libcomps >= 0.1.8 needed by python3-dnf-4.14.0-1.mga9.noarch from mageia - nothing provides python3-libdnf >= 0.66.0 needed by python3-dnf-4.14.0-1.mga9.noarch from mageia - nothing provides python3-libmodulemd >= 2.9.3 needed by python3-dnf-4.14.0-1.mga9.noarch from mageia - nothing provides python3-rpm >= 4.14.0 needed by python3-dnf-4.14.0-1.mga9.noarch from mageia - nothing provides deltarpm needed by python3-dnf-4.14.0-1.mga9.noarch from mageia - nothing provides python3-gpg needed by python3-dnf-4.14.0-1.mga9.noarch from mageia - nothing provides python(abi) = 3.10 needed by python3-dnf-4.14.0-1.mga9.noarch from mageia - nothing provides python3-hawkey >= 0.66.0 needed by python3-dnf-4.14.0-1.mga9.noarch from mageia Problem 2: conflicting requests - nothing provides python3-dbus needed by python3-dnf-plugins-core-4.3.1-1.mga9.noarch from mageia - nothing provides python(abi) = 3.10 needed by python3-dnf-plugins-core-4.3.1-1.mga9.noarch from mageia - nothing provides python3-hawkey >= 0.64.0 needed by python3-dnf-plugins-core-4.3.1-1.mga9.noarch from mageia (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages) Updated to testing packages Test again, final lines Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/evdi-1.14.1-1.mga9.aarch64 Wrote: /builddir/build/RPMS/lib64evdi-1.14.1-1.mga9.aarch64.rpm Wrote: /builddir/build/RPMS/lib64evdi-debuginfo-1.14.1-1.mga9.aarch64.rpm Wrote: /builddir/build/RPMS/evdi-debugsource-1.14.1-1.mga9.aarch64.rpm Wrote: /builddir/build/RPMS/evdi-debuginfo-1.14.1-1.mga9.aarch64.rpm Wrote: /builddir/build/RPMS/dkms-evdi-1.14.1-1.mga9.aarch64.rpm Wrote: /builddir/build/RPMS/lib64evdi-devel-1.14.1-1.mga9.aarch64.rpm Wrote: /builddir/build/RPMS/python-evdi-1.14.1-1.mga9.aarch64.rpm Wrote: /builddir/build/RPMS/python-evdi-debuginfo-1.14.1-1.mga9.aarch64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.pHtE9Z + umask 022 + cd /builddir/build/BUILD + cd evdi-1.14.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/evdi-1.14.1-1.mga9.aarch64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.Lx06Sk + umask 022 + cd /builddir/build/BUILD + rm -rf evdi-1.14.1 evdi-1.14.1.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Finish: rpmbuild evdi-1.14.1-1bdk_mga9.src.rpm Finish: build phase for evdi-1.14.1-1bdk_mga9.src.rpm INFO: Done(/home/katnatek/repositorio/mageia/mageia9/free/SRPMS/evdi-1.14.1-1bdk_mga9.src.rpm) Config(mageia-9-aarch64) 17 minutes 26 seconds INFO: Results and/or logs in: /home/katnatek/rpm/RPMS/x86_64/ INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot Finish: clean chroot Finish: run
Whiteboard: (none) => MGA9-64-OK
For Information This update to test has not been assigned to QA and it doesn't appear for QA here : http://madb.mageia.org/tools/updates @katnatek The attached suggested advisory contains a typo in the name : mock-core-configs-39.1-2.mga9-1.0-1.mga9 instead of mock-core-configs-39.1-2.mga9.noarch.rpm and mock-core-configs-39.1-2.mga9.src.rpm
Created attachment 14348 [details] Suggested advisory for the failure to build rpms for ARM arches bug This is my take on this. It may need reviewing by somebody more experienced. Not obsoleting the previous version yet.
Created attachment 14349 [details] Suggested advisory for the failure to build rpms for ARM arches bug This is my take on this - it may require editing by more experienced hands. Leaving the original in place.
Hi Lew Unfortunately, your advisories have the same typo as katnatek's one : mock-core-configs-39.1-2.mga9-1.0-1.mga9 (?) instead of mock-core-configs-39.1-2.mga9 Besides this there are still these problems : This update to test has not been assigned to QA and it doesn't appear for QA here : http://madb.mageia.org/tools/updates
Sorry for not noticing the error in the package name - too much hurry and too much copy and paste maybe.
Created attachment 14350 [details] Fixed advisory Use Len's advisory and fix the src.rpm
Attachment 14349 is obsolete: 0 => 1 Attachment 14347 is obsolete: 0 => 1 Attachment 14348 is obsolete: 0 => 1
Assignee: bugsquad => qa-bugs
Assigned to QA, note that I already QA the update in comment#3
Please be patient, and don't rush at things. The patch added is not a proper fix, only a workaround. Proper fix from upstream pull request [1] is available in Cauldron for mock and mock-core-configs. Both patches applies cleanly also to mga9 pkgs. I'll push an update soon for testing. [1] https://github.com/rpm-software-management/mock/pull/1317
Assignee: qa-bugs => bugsquadWhiteboard: MGA9-64-OK => (none)
Patched mock and mock-core-configs pushed to mga9 core/updates_testing. Please test. SRPMS: mock-5.1.1-1.1.mga9 mock-core-configs-39.1-2.1.mga9 RPMS: mock-5.1.1-1.1.mga9 mock-core-configs-39.1-2.1.mga9 mock-filesystem-5.1.1-1.1.mga9 mock-lvm-5.1.1-1.1.mga9 mock-scm-5.1.1-1.1.mga9
(In reply to Jani Välimaa from comment #11) > Please be patient, and don't rush at things. The patch added is not a proper > fix, only a workaround. > > Proper fix from upstream pull request [1] is available in Cauldron for mock > and mock-core-configs. Both patches applies cleanly also to mga9 pkgs. I'll > push an update soon for testing. > > [1] https://github.com/rpm-software-management/mock/pull/1317 Hi Jani Thanks again for your perseverance Sorry to not have been patient : Indeed this comment from upstream 2 days ago : "moved this from Needs triage to Someday in future in CPT Kanban " made me think that this issue will not be taken in account before a long time ! Waiting this hypothetical correction from upstream your patch (even it was a temporary workaround) allowed at least to use mock anew... We missed this : We need to test builds for arm arches at home and eventually modify the spec or add patches so that the build succeeds instead of blindly submitting srpms to the BS and fail to build. That had not been possible for weeks inside a Mageia9 system The good news is that finally upstream showed some interest to correct this I have tested your updates It's OK for Mageia9 64bits : mock can build rpms for arm arches
Created attachment 14356 [details] Updated advisory
Attachment 14350 is obsolete: 0 => 1
Validating.
Keywords: (none) => validated_updateCC: (none) => andrewsfarm, sysadmin-bugs
Source RPM: mock-core-configs-39.1-1.mga9.src.rpm => mock, mock-core-configs-39.1-1.mga9
Keywords: (none) => advisory
An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGAA-2024-0051.html
Status: NEW => RESOLVEDResolution: (none) => FIXED
@katnatek @jani I don't know if this needs to reopen this bug .... Today (12/02/2024 at 2pm UT) upstream has just committed a huge change inside the source to solve the https://github.com/rpm-software-management/mock/issues/1304 that was created there by Mageia : https://github.com/rpm-software-management/mock/commit/f28e3cdf66c08d4a7e02732e9abb513552fa3d27
Those are the changes I referred in comment 11, and applied to pkgs in comment 12.
(In reply to Jani Välimaa from comment #18) > Those are the changes I referred in comment 11, and applied to pkgs in > comment 12. Hi Jani Sorry for the noise I have just seen the last commit in upstream Source... I had not understood that it was the same thing as your patch that had been merged Thanks again for your contribution to solve this bug for Mageia ... and for upstream !