From 0d7a0a8daf105fac2c335d9947b06a7f82f6e224 Mon Sep 17 00:00:00 2001 From: Hailiang Date: Mon, 22 Aug 2022 17:13:15 +0800 Subject: [PATCH] add loongarch support --- add-loongarch-support.patch | 7 +++++++ dpkg.spec | 10 +++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 add-loongarch-support.patch diff --git a/add-loongarch-support.patch b/add-loongarch-support.patch new file mode 100644 index 0000000..e0d0a87 --- /dev/null +++ b/add-loongarch-support.patch @@ -0,0 +1,7 @@ +--- dpkg-1.18.25/data/cputable 2018-06-26 18:28:08.000000000 +0800 ++++ dpkg-1.18.25.bak/data/cputable 2022-08-18 11:07:35.274982296 +0800 +@@ -51,3 +51,4 @@ + sparc sparc sparc 32 big + sparc64 sparc64 sparc64 64 big + tilegx tilegx tilegx 64 little ++loongarch64 loongarch64 loongarch64 64 little diff --git a/dpkg.spec b/dpkg.spec index 8247e12..e3c4f30 100644 --- a/dpkg.spec +++ b/dpkg.spec @@ -2,7 +2,7 @@ Name: dpkg Version: 1.18.25 -Release: 11 +Release: 12 Summary: Package maintenance system for Debian Linux License: GPLv2 and GPLv2+ and LGPLv2+ and Public Domain and BSD URL: https://tracker.debian.org/pkg/dpkg @@ -25,6 +25,7 @@ Requires(post): coreutils Patch1: dpkg-fix-logrotate.patch Patch2: dpkg-log-Change-logfile-permission-to-satisfy-with-s.patch Patch3: CVE-2022-1664.patch +Patch4: add-loongarch-support.patch %description Dpkg is a tool to install, build, remove and manageDebian packages. The @@ -67,6 +68,10 @@ The help documents for dpkg. %prep %autosetup -n %{name}-%{version} -p1 +%ifarch loongarch64 +%_update_config_guess +%_update_config_sub +%endif cat << \EOF > %{name}-req #!/bin/sh @@ -237,6 +242,9 @@ chown root:root /var/log/dpkg.log 2>/dev/null || chown 0:0 /var/log/dpkg.log %endif %changelog +* Mon Aug 22 2022 mahailiang - 1.18.25-12 +- add loongarch support + * Fri May 27 2022 houyingchao - 1.18.25-11 - Fix CVE-2022-1664 -- Gitee