fix loongarch64 alien to deb error
(cherry picked from commit d158925604403f09c4bdf1572759225437e58dbb)
This commit is contained in:
parent
5d8b9f1363
commit
3ee444cc7b
36
0001-add-loongarch64.patch
Normal file
36
0001-add-loongarch64.patch
Normal 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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user