Bug#985808: alien: cannot convert aarch64 rpm packages to arm64 deb packages (patch included)
Package: alien
Version: 8.95
Severity: normal
X-Debbugs-Cc: ddick@cpan.org
Dear Maintainer,
Attempting to convert a aarch64 rpm to arm64 deb led to the following error:
foobar-1.00.0-1.el7.aarch64.rpm is for architecture aarch64 ; the package cannot be built on this system
When the below patch is applied, the correct deb package is created.
*** /home/ubuntu/arm64.patch
diff --git a/Alien/Package/Rpm.pm b/Alien/Package/Rpm.pm
index 96905a2..2827a54 100644
--- a/Alien/Package/Rpm.pm
+++ b/Alien/Package/Rpm.pm
@@ -744,6 +744,9 @@ sub arch {
# Treat armv7l as armel.
$arch='armel';
}
+ elsif ($arch eq 'aarch64') {
+ $arch='arm64';
+ }
elsif ($arch eq 'parisc') {
$arch='hppa';
}
-- System Information:
Debian Release: bullseye/sid
APT prefers groovy-updates
APT policy: (500, 'groovy-updates'), (500, 'groovy-security'), (500, 'groovy'), (100, 'groovy-backports')
Architecture: arm64 (aarch64)
Foreign Architectures: amd64
Kernel: Linux 5.8.0-1025-aws (SMP w/16 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages alien depends on:
ii cpio 2.13+dfsg-3
ii debhelper 13.2.1ubuntu1
ii dpkg-dev 1.20.5ubuntu2
ii make 4.3-4ubuntu1
ii perl 5.30.3-4
ii rpm 4.14.2.1+dfsg1-1.1
ii rpm2cpio 4.14.2.1+dfsg1-1.1
alien recommends no packages.
Versions of packages alien suggests:
ii bzip2 1.0.8-4ubuntu2
ii lintian 2.89.0
ii patch 2.7.6-6
ii xz-utils [lzma] 5.2.4-1ubuntu1
-- no debconf information
Reply to: