lcitool/formatters.py | 15 --------------- 1 file changed, 15 deletions(-)
From 1603e78297c32f241d7a55f510bae3b8ac16f154 Mon Sep 17 00:00:00 2001
From: yzewei <yangzewei@loongson.cn>
Date: Fri, 10 Oct 2025 18:01:59 +0800
Subject: [PATCH] lcitool: remove obsolete RISC-V ports setup for Debian 13+
Debian 13 and later officially support riscv64, so the old
debian-ports archive keyring and sources.list configuration
are no longer necessary. This patch removes the legacy code
that adds the debian-ports repositories and installs the
debian-ports-archive-keyring package.
Signed-off-by: yzewei <yangzewei@loongson.cn>
---
lcitool/formatters.py | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/lcitool/formatters.py b/lcitool/formatters.py
index c26cf22a..af171fae 100644
--- a/lcitool/formatters.py
+++ b/lcitool/formatters.py
@@ -456,21 +456,6 @@ class BuildEnvFormatter(Formatter):
"dpkg --add-architecture {cross_arch_deb}",
]
)
- if target.cross_arch == "riscv64":
- cross_commands.extend(
- [
- "{nosync}{packaging_command} install debian-ports-archive-keyring",
- "{nosync}echo 'deb http://ftp.ports.debian.org/debian-ports/ sid main' > /etc/apt/sources.list.d/ports.list",
- "{nosync}echo 'deb http://ftp.ports.debian.org/debian-ports/ unreleased main' >> /etc/apt/sources.list.d/ports.list",
- ]
- )
- cross_commands.extend(
- [
- "{nosync}{packaging_command} update",
- "{nosync}{packaging_command} dist-upgrade -y",
- "{nosync}{packaging_command} install --no-install-recommends -y dpkg-dev",
- ]
- )
if varmap["cross_pkgs"]:
cross_commands.extend(
[
--
2.43.0
本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。
This email and its attachments contain confidential information from Loongson Technology , which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this email in error, please notify the sender by phone or email immediately and delete it.
Hello all, Apologies for the previous patch. Since it was my first time sending a patch via email, the message included some extra headers/footers from my company email client. If this affected the patch application, I can send a clean [PATCH v2] version. Thanks for your understanding.
© 2016 - 2025 Red Hat, Inc.