!3 [sync] PR-2: fix loongarch64 alien to deb error

From: @openeuler-sync-bot 
Reviewed-by: @desert-sailor 
Signed-off-by: @desert-sailor
This commit is contained in:
openeuler-ci-bot 2025-03-14 00:52:08 +00:00 committed by Gitee
commit 54f07a63d0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 42 additions and 1 deletions

View File

@ -0,0 +1,36 @@
From bcbc8a83451f314edda85a81087673c2390bf6d1 Mon Sep 17 00:00:00 2001
From: mahailiang <mahailiang.uniontech.com>
Date: Tue, 11 Feb 2025 14:00:23 +0800
Subject: [PATCH] add loongarch64
---
Alien/Package/Rpm.pm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Alien/Package/Rpm.pm b/Alien/Package/Rpm.pm
index d53be2b..3527c27 100644
--- a/Alien/Package/Rpm.pm
+++ b/Alien/Package/Rpm.pm
@@ -617,6 +617,9 @@ sub arch {
elsif ($arch eq 'ppc64le') {
$arch='ppc64el';
}
+ elsif ($arch eq 'loongarch64') {
+ $arch='loong64';
+ }
$this->{arch}=$arch;
}
@@ -639,6 +642,9 @@ sub arch {
elsif ($arch eq 'ppc64el') {
$arch='ppc64le';
}
+ elsif ($arch eq 'loong64') {
+ $arch='loongarch64';
+ }
return $arch
}
--
2.43.0

View File

@ -1,11 +1,12 @@
Summary: Converter between the rpm, dpkg, stampede slp, and Slackware tgz file formats
Name: alien
Version: 8.95
Release: 1
Release: 2
License: GPL-2.0-or-later
URL: https://sourceforge.net/projects/alien-pkg-convert/
Source: http://downloads.sourceforge.net/alien-pkg-convert/%{name}_%{version}.tar.xz
Patch1: 0001-add-loongarch64.patch
Requires: dpkg, debhelper, rpm-build
@ -26,6 +27,7 @@ format and install it.
%prep
%setup -q
%patch1 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor VARPREFIX=%{buildroot}
@ -49,5 +51,8 @@ chmod 755 %{buildroot}%{_bindir}/alien
%{_mandir}/man?/*
%changelog
* Tue Feb 11 2025 mahailiang <mahailiang@uniontech.com> - 8.95-2
- fix loongarch64 alien to deb error
* Wed Jan 24 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 8.95-1
- Initial package