[Pkg-erlang-devel] Bug#1066182: erlang-jiffy: please add support for loongarch

wuruilong wuruilong at loongson.cn
Wed Mar 13 06:31:21 GMT 2024


Source: erlang-jiffy
Version: 1.1.1-2
Severity: normal
X-Debbugs-Cc: wuruilong at loongson.cn
User: debian-devel at lists.debian.org
Usertags: loong64

Dear Maintainer,

Erlang-jiffy has a compilation error in the loong64 architecture. 
The attached patch solves the problem. Please refer to it supports loong64 architecture

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
-------------- next part --------------
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.
 .
 erlang-jiffy (1.1.1-2) unstable; urgency=medium
 .
   * Removed superfluous line from debian/copyright
   * Updated Standards-Version: 4.6.2 (no changes needed)
   * Updated lintian overrides
   * Updated years in debian/copyright
   * Renamed debian/erlang-jiffy.lintian-overrides -> debian/lintian-overrides
   * Updated debian/rules
   * Updated debian/patches/remove_git_clean
Author: Philipp Huebner <debalance at debian.org>

---
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-13

--- erlang-jiffy-1.1.1.orig/c_src/double-conversion/utils.h
+++ erlang-jiffy-1.1.1/c_src/double-conversion/utils.h
@@ -93,6 +93,7 @@ int main(int argc, char** argv) {
 #if defined(_M_X64) || defined(__x86_64__) || \
     defined(__ARMEL__) || defined(__avr32__) || defined(_M_ARM) || defined(_M_ARM64) || \
     defined(__hppa__) || defined(__ia64__) || \
+    defined(__loongarch__) ||\
     defined(__mips__) || \
     defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \
     defined(_POWER) || defined(_ARCH_PPC) || defined(_ARCH_PPC64) || \


More information about the Pkg-erlang-devel mailing list