Package: libuv1 Version: 1.46.0-3 Severity: normal Tags: patch User: debian-loonga...@lists.debian.org Usertags: loong64 X-Debbugs-Cc: wuruil...@loongson.cn
Dear Maintainer, The libuv1 software fails to compile on loongarch architecture, please refer to the attached patch to fix it. 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 Versions of packages libuv1 depends on: ii libc6 2.37-13 libuv1 recommends no packages. libuv1 suggests no packages. -- no debconf information
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. . libuv1 (1.48.0-1.1) unstable; urgency=medium . * Non-maintainer upload. * Rename libraries for 64-bit time_t transition. Closes: #1062694 Author: Graham Inggs <gin...@debian.org> Bug-Debian: https://bugs.debian.org/1062694 --- 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-04-18 --- libuv1-1.48.0.orig/.github/workflows/CI-unix.yml +++ libuv1-1.48.0/.github/workflows/CI-unix.yml @@ -110,6 +110,7 @@ jobs: - {target: ppc64, toolchain: gcc-powerpc64-linux-gnu, cc: powerpc64-linux-gnu-gcc, qemu: qemu-ppc64-static } - {target: ppc64le, toolchain: gcc-powerpc64le-linux-gnu, cc: powerpc64le-linux-gnu-gcc, qemu: qemu-ppc64le-static } - {target: s390x, toolchain: gcc-s390x-linux-gnu, cc: s390x-linux-gnu-gcc, qemu: qemu-s390x-static } + - {target: loongarch, toolchain: gcc-loongarch-linux-gnu, cc: loongarch-linux-gnu-gcc, qemu: qemu-loongarch-static } - {target: mips, toolchain: gcc-mips-linux-gnu, cc: mips-linux-gnu-gcc, qemu: qemu-mips-static } - {target: mips64, toolchain: gcc-mips64-linux-gnuabi64, cc: mips64-linux-gnuabi64-gcc, qemu: qemu-mips64-static } - {target: mipsel, toolchain: gcc-mipsel-linux-gnu, cc: mipsel-linux-gnu-gcc, qemu: qemu-mipsel-static } --- libuv1-1.48.0.orig/src/unix/linux.c +++ libuv1-1.48.0/src/unix/linux.c @@ -85,6 +85,8 @@ # define __NR_copy_file_range 285 # elif defined(__riscv) # define __NR_copy_file_range 285 +# elif defined(__loongarch__) +# define __NR_copy_file_range 285 # endif #endif /* __NR_copy_file_range */ @@ -103,6 +105,8 @@ # define __NR_statx 379 # elif defined(__riscv) # define __NR_statx 291 +# elif defined(__loongarch__) +# define __NR_statx 291 # endif #endif /* __NR_statx */ @@ -121,6 +125,8 @@ # define __NR_getrandom 349 # elif defined(__riscv) # define __NR_getrandom 278 +# elif defined(__loongarch__) +# define __NR_getrandom 278 # endif #endif /* __NR_getrandom */