• Bug#1089673: Add support for loong64

    From wuruilong@21:1/5 to All on Tue Mar 4 02:30:01 2025
    This is a multi-part MIME message sent by reportbug.


    Source: nim
    Version: 1.6.14-3
    Followup-For: Bug #1089673
    X-Debbugs-Cc: debian-loongarch@lists.debian.org

    Dear Maintainer,

    The upstream has indeed supported the loongarch architecture, the PR link is as follows: https://github.com/nim-lang/Nim/pull/19223. The patch generated according to the upstream has been added to the attachment.

    wuruilong

    --- nim-1.6.14.orig/compiler/platform.nim
    +++ nim-1.6.14/compiler/platform.nim
    @@ -231,6 +231,7 @@ const
    (name: "avr", intSize: 16, endian: littleEndian, floatSize: 32, bit: 16),
    (name: "msp430", intSize: 16, endian: littleEndian, floatSize: 32, bit: 16),
    (name: "sparc64", intSize: 64, endian: bigEndian, floatSize: 64, bit: 64), + (name: "loongarch64", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64)],
    (name: "mips64", intSize: 64, endian: bigEndian, floatSize: 64, bit: 64),
    (name: "mips64el", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64),
    (name: "riscv32", intSize: 32, endian: littleEndian, floatSize: 64, bit: 32),
    --- nim-1.6.14.orig/lib/system.nim
    +++ nim-1.6.14/lib/system.nim
    @@ -1126,7 +1126,7 @@ const
    ## Possible values:
    ## `"i386"`, `"alpha"`, `"powerpc"`, `"powerpc64"`, `"powerpc64el"`,
    ## `"sparc"`, `"amd64"`, `"mips"`, `"mipsel"`, `"arm"`, `"arm64"`,
    - ## `"mips64"`, `"mips64el"`, `"riscv32"`, `"riscv64"`.
    +
  • From zhaixiaojuan@loongson.cn@21:1/5 to All on Mon Mar 10 09:00:01 2025
    Dear Maintainer,

    I can successfully build the loong64 architecture package locally using https://salsa.debian.org/debian/nim.git, great!
    The current version of nim in debian.org is still 1.6.14. Should I
    continue to wait for it to be upgraded to version 2.2.0? Will patches be considered to be synchronized to version 1.6.14?

    thanks,

    Xiaojuan Zhai

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)