• #1050486 loong64 patch for netw-ib-ox-ag (1/2)

    From =?UTF-8?B?eGlhbyBzaGVuZyB3ZW4o6IKW5@21:1/5 to All on Fri Dec 27 04:10:02 2024
    To: fangyaling@loongson.cn (yalingfang)
    To: wuruilong@loongson.cn (wuruilong)
    Copy: debian-loongarch@lists.debian.org

    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------jqH07Z0mO7iJ68b4CAWY2mOa
    Content-Type: multipart/mixed; boundary="------------AjtqjT0MstsCupZfb3Tf6CHh"

    --------------AjtqjT0MstsCupZfb3Tf6CHh
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable

    Hi,

    #1050486 loong64 patch for netw-ib-ox-ag [1]:

    --- netw-ib-ox-ag-5.39.0.orig/src/netwib-src/src/genemake
    +++ netw-ib-ox-ag-5.39.0/src/netwib-src/src/genemake
    @@ -130,6 +130,9 @@ case $unamem in
    "riscv64" )
    NETWIBDEF_SYSARCH="riscv64"
    ;;
    + "loongarch64" )
    + NETWIBDEF_SYSARCH="loongarch64"
    + ;;
    * )
    echo "Error: Could not guess NETWIBDEF_SYSARCH.";
    echo "Edit genemake to set NETWIBDEF_SYSARCH, and rerun genemake.";

    Is NETWIBDEF_SYSARCH should be "loong64"? not "loongarch64"?

    I test use NETWIBDEF_SYSARCH="loong64", it build success.

    I had do NMU for netw-ib-ox-ag package before, I would do NMU for loong64 support.


    [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?att=2;bug=1050486;filename=Add-support-for-arch-Loongarch64.patch;msg=5

    --
    肖盛文 xiao sheng wen -- Debian Developer(atzlinux)
    Debian QA page: https://qa.debian.org/developer.php?login=atzlinux%40debian.org Debian salsa: https://salsa.debian.org/atzlinux-guest
    GnuPG Public Key: 0x00186602339240CB

    --------------AjtqjT0MstsCupZfb3T
  • From =?UTF-8?B?eGlhbyBzaGVuZyB3ZW4o6IKW5@21:1/5 to All on Sat Dec 28 03:40:01 2024
    To: fangyaling@loongson.cn (yalingfang)
    To: wuruilong@loongson.cn (wuruilong)
    Copy: debian-loongarch@lists.debian.org

    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------RCzUkMvbXqv9WTUXASkQJDgO
    Content-Type: multipart/mixed; boundary="------------VOZS0soLi7QtiXD5LJD00Uvz"

    --------------VOZS0soLi7QtiXD5LJD00Uvz
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable

    Hi,

    在 2024/12/28 05:40, John Paul Adrian Glaubitz 写道:
    Hello Xiao Sheng,

    On Fri, 2024-12-27 at 10:59 +0100, John Paul Adrian Glaubitz wrote:
    Hello,

    On Fri, 2024-12-27 at 11:02 +0800, xiao sheng wen(肖盛文) wrote:
    Hi,

    #1050486 loong64 patch for netw-ib-ox-ag [1]:

    --- netw-ib-ox-ag-5.39.0.orig/src/netwib-src/src/genemake
    +++ netw-ib-ox-ag-5.39.0/src/netwib-src/src/genemake
    @@ -130,6 +130,9 @@ case $unamem in
    "riscv64" )
    NETWIBDEF_SYSARCH="riscv64"
    ;;
    + "loongarch64" )
    + NETWIBDEF_SYSARCH="loongarch64"
    + ;;
    * )
    echo "Error: Could not guess NETWIBDEF_SYSARCH.";
    echo "Edit genemake to set NETWIBDEF_SYSARCH, and rerun genemake."; >>>
    Is NETWIBDEF_SYSARCH should be "loong64"? not "loongarch64"?
    It should be loongarch64, not loong64. The latter is Debian's architecture >> name, not the generic GNU triplet arch name.
    Can you please fix your patch? The arch name "loong64" is specific to Debian and should not be used within source codes where the GNU triplet arch name
    is expected.

    Thanks,
    Adrian

    I just fix the patch and upload DELAYED 10days.
    Thanks!

    diff -Nru netw-ib-ox-ag-5.39.0/debian/changelog netw-ib-ox-ag-5.39.0/debian/changelog
    --- netw-ib-ox-ag-5.39.0/debian/changelog    2022-06-28 18:00:01.000000000 +0800
    +++ netw-ib-ox-ag-5.39.0/debian/changelog    2024-12-28 10:18:29.000000000 +0800
    @@ -1,3 +1,10 @@
    +netw-ib-ox-ag (5.39.0-1.6) unstable; urgency=medium
    +
    +  * Non-maintainer upload.
    +  * add loong64 support, Closes: #1050486
    +
    + -- xiao sheng wen <atzlinux@debian.org>  Sat, 28 Dec 2024 10:18:29 +0800
    +
     netw-ib-ox-ag (5.39.0-1.5) unstable; urgency=medium
     
       * Non-maintainer upload.
    diff -Nru netw-ib-ox-ag-5.39.0/debian/patches/09-add-loong64-support netw-ib-ox-ag-5.39.0/debian/patches/09-add-loong64-support
    --- netw-ib-ox-ag-5.39.0/debian/patches/09-add-loong64-support    1970-01-01 08:00:00.000000000 +0800
    +++ netw-ib-ox-ag-5.39.0/debian/patches/09-add-loong64-support    2024-12-28 10:16:54.000000000 +0800
    @@ -0,0 +1,22 @@
    +Description: add support for new arch Loongarch64
    + This patch adds platform detection support for the loong64 architecture.
    + .
    +Author: yalingfang <fangyaling@loongso