• Bug#1101430: golang-github-containers-toolbox: Add loongarch64 support

    From zhangdandan@21:1/5 to All on Thu Mar 27 13:20:01 2025
    This is a multi-part message in MIME format.
    Source: golang-github-containers-toolbox
    Version: 0.0.99.4-1
    Severity: normal
    Tags: patch
    User: debian-loongarch@lists.debian.org
    Usertags: loong64

    Dear maintainers,

    Compiling the golang-github-containers-toolbox failed for loong64 in the
    Debian Package Auto-Building environment.
    The error log is as follows,
    ```
    ......
    ../src/meson.build:51:2: ERROR: Problem encountered: Please specify
    dynamic linker for: loongarch64 (little endian)
    dh_auto_configure: error: cd obj-loongarch64-linux-gnu && DEB_PYTHON_INSTALL_LAYOUT=deb LC_ALL=C.UTF-8 meson setup .. --wrap-mode=nodownload
    ......
    ```
    The full build log can be found at https://buildd.debian.org/status/logs.php?pkg=golang-github-containers-toolbox&ver=0.0.99.4-1&arch=loong64.

    Please consider the patch I attached.
    Based on attached patch, I have built golang-github-containers-toolbox (0.0.99.4-1+loong64) successfully on locally.
    ```
    ......
       dh_builddeb -O--buildsystem=meson
    dpkg-deb: building package 'podman-toolbox-dbgsym' in '../podman-toolbox-dbgsym_0.0.99.4-1+loong64_loong64.deb'.
    dpkg-deb: building package 'podman-toolbox' in '../podman-toolbox_0.0.99.4-1+loong64_loong64.deb'.
     dpkg-genbuildinfo -O../golang-github-containers-toolbox_0.0.99.4-1+loong64_loong64.buildinfo
     dpkg-genchanges -O../golang-github-containers-toolbox_0.0.99.4-1+loong64_loong64.changes
    ```

    Your opinions are welcome.

    Best regards,
    Dandan Zhang


    Description: Add loongarch64 support.
    .
    golang-github-containers-toolbox (0.0.99.4-1+loong64) unstable; urgency=medium
    .
    * Add loongarch64 support in meson.build.
    Author: Dandan Zhang <zhangdandan@loongson.cn>

    ---
    Last-Update: 2025-03-27

    --- golang-github-containers-toolbox-0.0.99.4.orig/src/meson.build
    +++ golang-github-containers-toolbox-0.0.99.4/src/meson.build
    @@ -46,6 +46,8 @@ elif cpu_family == 'x86_64' and endian =
    dynamic_linker = '/lib64/ld-linux-x86-64.so.2'
    elif cpu_family == 'riscv64' and endian == 'little'
    dynamic_linker = '/lib/ld-linux-riscv64-lp64d.so.1'
    +elif cpu_family == 'loongarch64' and endian == 'little'
    + dynamic_linker = '/lib64/ld-linux-loongarch-lp64d.so.1'
    else
    host_machine_description = cpu_family + ' (' + endian + ' endian)'
    error('Please specify dynamic linker for:', host_machine_description)

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