Bug 25578 - Building packages in an armv7hl chroot on aarch64 produces armv8l packages
Summary: Building packages in an armv7hl chroot on aarch64 produces armv8l packages
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: aarch64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Pascal Terjan
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-16 17:55 CEST by Pascal Terjan
Modified: 2021-09-07 14:10 CEST (History)
1 user (show)

See Also:
Source RPM: rpm-mageia-setup
CVE:
Status comment:


Attachments

Description Pascal Terjan 2019-10-16 17:55:06 CEST
This is fixed in cauldron and in 2.39.1 package in 7/core/updates_testing
Pascal Terjan 2019-10-16 17:55:32 CEST

Hardware: All => aarch64

Comment 1 Pascal Terjan 2019-10-17 20:06:18 CEST
I have uploaded an updated package for Mageia 7.

You can test this on an aarch64 machine which CPU implements 32 bits instructions.

Suggested advisory:
========================

Updated rpm-mageia-setup to fix armv7hl chroots on aarch64 machines. There should be no changes on any other architectures.

Before packages would get built for armv8l (or another version like armv8hcnl etc) instead of armv7hl.
========================

Updated packages in core/updates_testing:
========================
rpm-mageia-setup-2.39.1-1.mga7.aarch64.rpm
rpm-mageia-setup-build-2.39.1-1.mga7.aarch64.rpm
rpm-mageia-setup-2.39.1-1.mga7.armv7hl.rpm
rpm-mageia-setup-build-2.39.1-1.mga7.armv7hl.rpm
rpm-mageia-setup-2.39.1-1.mga7.i586.rpm
rpm-mageia-setup-build-2.39.1-1.mga7.i586.rpm
rpm-mageia-setup-2.39.1-1.mga7.x86_64.rpm
rpm-mageia-setup-build-2.39.1-1.mga7.x86_64.rpm

Source RPMs: 
rpm-mageia-setup-2.39.1-1.mga7.src.rpm
Comment 2 Thomas Backlund 2019-10-17 20:11:30 CEST
I'm not sure any in QA have aarch64 so the "easy way" to test is to install on infra and keep the builds running...

CC: (none) => tmb

Comment 3 Pascal Terjan 2019-10-17 20:14:51 CEST
I kept it assigned to me as I'll be doing the testing :)
Comment 4 Pascal Terjan 2019-10-17 20:33:35 CEST
Actually it's even worse as packages get named @armv8canontargetcpu@.

Building a package without updates_testing:
$ iurt --copy_srpm --group --no_rsync --chrooted-urpmi -m "core/release" "core/updates" -- http://repository.mageia.org/distrib/ -p pterjan -r 7 armv7hl perl-XS-Object-Magic-0.40.0-4.mga8.src.rpm

$ find /home/iurt/iurt/7/armv7hl/ -name '*.rpm'
/home/iurt/iurt/7/armv7hl/perl-XS-Object-Magic-0.40.0-4.mga7.@armv8canontargetcpu@.rpm
/home/iurt/iurt/7/armv7hl/perl-XS-Object-Magic-0.40.0-4.mga7.src.rpm
/home/iurt/iurt/7/armv7hl/perl-XS-Object-Magic-debuginfo-0.40.0-4.mga7.@armv8canontargetcpu@.rpm
/home/iurt/iurt/7/armv7hl/perl-XS-Object-Magic-debugsource-0.40.0-4.mga7.@armv8canontargetcpu@.rpm
/home/iurt/iurt/7/armv7hl/log/perl-XS-Object-Magic-0.40.0-4.mga7.src.rpm

Building a package with also updates_testing:

$ iurt --copy_srpm --group --no_rsync --chrooted-urpmi -m "core/release" "core/updates" "core/updates_testing" -- http://repository.mageia.org/distrib/ -p pterjan -r 7 armv7hl perl-XS-Object-Magic-0.40.0-4.mga8.src.rpm

$ find /home/iurt/iurt/7/ -name '*.rpm'
/home/iurt/iurt/7/armv7hl/perl-XS-Object-Magic-0.40.0-4.mga7.@armv8canontargetcpu@.rpm
/home/iurt/iurt/7/armv7hl/perl-XS-Object-Magic-0.40.0-4.mga7.src.rpm
/home/iurt/iurt/7/armv7hl/perl-XS-Object-Magic-debuginfo-0.40.0-4.mga7.@armv8canontargetcpu@.rpm
/home/iurt/iurt/7/armv7hl/perl-XS-Object-Magic-debugsource-0.40.0-4.mga7.@armv8canontargetcpu@.rpm
/home/iurt/iurt/7/armv7hl/log/perl-XS-Object-Magic-0.40.0-4.mga7.src.rpm

It was because base packages don't get updated when adding extra media :(

After changing iurt config to use updates_testing to create the chroot when building for 7:

$ find /home/iurt/iurt/7/ -name '*.rpm'
/home/iurt/iurt/7/armv7hl/perl-XS-Object-Magic-debugsource-0.40.0-4.mga7.armv7hl.rpm
/home/iurt/iurt/7/armv7hl/perl-XS-Object-Magic-debuginfo-0.40.0-4.mga7.armv7hl.rpm
/home/iurt/iurt/7/armv7hl/perl-XS-Object-Magic-0.40.0-4.mga7.src.rpm
/home/iurt/iurt/7/armv7hl/perl-XS-Object-Magic-0.40.0-4.mga7.armv7hl.rpm
/home/iurt/iurt/7/armv7hl/log/perl-XS-Object-Magic-0.40.0-4.mga7.src.rpm
Comment 5 Aurelien Oudelet 2021-07-06 13:15:56 CEST
Mageia 7 is EOL since July 1st 2021.
There will not have any further bugfix for this release.

You are encouraged to upgrade to Mageia 8 as soon as possible.

@reporter, if this bug still apply with Mageia 8, please let us know it.

@packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead.

This bug report will be closed OLD if there is no further notice within 1st September 2021.
Comment 6 Marja Van Waes 2021-09-07 14:10:24 CEST
Hi bug reporter and hi assignee and others involved,

Please reopen this bug report if it is still valid for Mageia 8 or 9(cauldron), and change "Version:" in the upper left of this report accordingly.

This report is being closed as OLD because it was filed against Mageia 7, for which  support ended on June 30th 2021.

Thanks,
Marja

Resolution: (none) => OLD
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.