Projects
Mega:24.03:SP1:Everything
rpm
_service:tar_scm:add-default-machine-name-to-su...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:add-default-machine-name-to-support-loongarch.patch of Package rpm
From f492b34a694a4bf40e075a030c01f360eaa5500e Mon Sep 17 00:00:00 2001 From: Wenlong Zhang <zhangwenlong@loongson.cn> Date: Fri, 27 May 2022 09:41:38 +0800 Subject: [PATCH] add default machine name to support loongarch --- lib/rpmrc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/rpmrc.c b/lib/rpmrc.c index 120777c..bd0dbca 100644 --- a/lib/rpmrc.c +++ b/lib/rpmrc.c @@ -1242,6 +1242,13 @@ static void defaultMachine(rpmrcCtx ctx, const char ** arch, const char ** os) } # endif /* riscv */ +# if defined(__linux__) && defined(__loongarch__) + if (sizeof(long) == 4) + strcpy(un.machine, "loongarch32"); + else if (sizeof(long) == 8) + strcpy(un.machine, "loongarch64"); +# endif /* loongarch */ + # if defined(__GNUC__) && defined(__alpha__) { unsigned long amask, implver; -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2