• Re: loong64: dpkg modification patch

    From Tomas Pospisek@21:1/5 to Han Gao on Wed Dec 21 16:40:01 2022
    Hello Han Gao,

    I *think* it's better if you work "the standard Debian way". I.e. file a
    bug against dpkg with the reportbug tool, and attach the patch to the
    bug report.

    Thanks for the effort to support the loong architecture,
    *t

    On 20.12.22 01:26, Han Gao wrote:
    Hi, Guillem:
    refer the documentation[0]
       added loong64f32, loong64sf Debian arch name
       fixed toolchain tuple

    test result:
    debian@debian-builder-3:~/oss/gcc-12-12.2.0/debian$ dpkg-architecture -f -aloong64sf | grep "DEB_HOST_"
    dpkg-architecture: warning: specified GNU system type
    loongarch64-linux-gnusf does not match CC system type
    loongarch64-linux-gnu, try setting a correct CC environment variable DEB_HOST_ARCH=loong64sf
    DEB_HOST_ARCH_ABI=sf
    DEB_HOST_ARCH_BITS=64
    DEB_HOST_ARCH_CPU=loong64
    DEB_HOST_ARCH_ENDIAN=little
    DEB_HOST_ARCH_LIBC=gnu
    DEB_HOST_ARCH_OS=linux
    DEB_HOST_GNU_CPU=loongarch64
    DEB_HOST_GNU_SYSTEM=linux-gnusf
    DEB_HOST_GNU_TYPE=loongarch64-linux-gnusf DEB_HOST_MULTIARCH=loongarch64-linux-gnusf debian@debian-builder-3:~/oss/gcc-12-12.2.0/debian$ dpkg-architecture -f -aloong64f32 | grep "DEB_HOST_"
    dpkg-architecture: warning: specified GNU system type loongarch64-linux-gnuf32 does not match CC system type
    loongarch64-linux-gnu, try setting a correct CC environment variable DEB_HOST_ARCH=loong64f32
    DEB_HOST_ARCH_ABI=f32
    DEB_HOST_ARCH_BITS=64
    DEB_HOST_ARCH_CPU=loong64
    DEB_HOST_ARCH_ENDIAN=little
    DEB_HOST_ARCH_LIBC=gnu
    DEB_HOST_ARCH_OS=linux
    DEB_HOST_GNU_CPU=loongarch64
    DEB_HOST_GNU_SYSTEM=linux-gnuf32
    DEB_HOST_GNU_TYPE=loongarch64-linux-gnuf32 DEB_HOST_MULTIARCH=loongarch64-linux-gnuf32 debian@debian-builder-3:~/oss/gcc-12-12.2.0/debian$ dpkg-architecture -f -aloong64 | grep "DEB_HOST_"
    dpkg-architecture: warning: specified GNU system type loongarch64-linux-gnuf64 does not match CC system type
    loongarch64-linux-gnu, try setting a correct CC environment variable DEB_HOST_ARCH=loong64
    DEB_HOST_ARCH_ABI=f64
    DEB_HOST_ARCH_BITS=64
    DEB_HOST_ARCH_CPU=loong64
    DEB_HOST_ARCH_ENDIAN=little
    DEB_HOST_ARCH_LIBC=gnu
    DEB_HOST_ARCH_OS=linux
    DEB_HOST_GNU_CPU=loongarch64
    DEB_HOST_GNU_SYSTEM=linux-gnuf64
    DEB_HOST_GNU_TYPE=loongarch64-linux-gnuf64 DEB_HOST_MULTIARCH=loongarch64-linux-gnuf64

    [0] https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html <https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html>

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