This is a multi-part MIME message sent by reportbug.
Source: libhugetlbfs
Version: 2.23-5
Severity: normal
X-Debbugs-Cc:
wuruilong@loongson.cn
Dear Maintainer,
"Please refer to the attached patch to support the Loong64 architecture. This patch has been successfully compiled locally and has been merged upstream. The PR link is:
https://github.com/libhugetlbfs/libhugetlbfs/pull/82"
wuruilong
-- System Information:
Debian Release: trixie/sid
APT prefers unreleased
APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)
Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads) Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: <short summary of the patch>
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.
.
libhugetlbfs (2.23-5) unstable; urgency=medium
.
* Disable malloc if __morecore hook not available (Closes: #1017324)
Author: Punit Agrawal <
punit@debian.org>
Bug-Debian:
https://bugs.debian.org/1017324
---
The information above should follow the Patch Tagging Guidelines, please checkout
https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian:
https://bugs.debian.org/<bugnumber>
Bug-Ubuntu:
https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch> Last-Update: 2024-03-07
--- libhugetlbfs-2.23.orig/Makefile
+++ libhugetlbfs-2.23/Makefile
@@ -120,10 +120,17 @@ ELF64 = elf_riscv64
TMPLIB64 = lib64
CUSTOM_LDSCRIPTS = no
else
+ifeq ($(ARCH),loongarch64)
+CC64 = $(CC)
+ELF64 = elf_loong64
+TMPLIB64 = lib64
+CUSTOM_LDSCRIPTS = no
+else
$(error "Unrecognized architecture ($(ARCH))")
endif
endif
endif
+endif
endif
endif