• Bug#1069714: gcc-defaults: enable build gdc and gm2 for loong64

    From zhangdandan@21:1/5 to All on Tue Apr 23 14:20:01 2024
    This is a multi-part message in MIME format.
    Source: gcc-defaults
    Version: 1.217
    Severity: normal
    Tags: ftbfs patch
    User: debian-loongarch@lists.debian.org
    Usertags: loong64

    Dear maintainers,

    For loong64, the D, Ada, Modula-2 modules have been supported in gcc-14 14-20240330-1.
    I duploaded the gdc-14, gnat-14 and other packages built from gcc-14 14-20240330-1 that support the loong64 architecture for the first time
    to debian ports.

    Due to "default to GCC 13" is used in gcc-defaults 1.214, we need to
    enable build gdc and gm2 for loong64 in gcc-defaults 1.217.
    Please consider the patch I attached.
    Your opinions are welcome.

    Thanks,
    Dandan Zhang


    diff -Nru gcc-defaults-1.217/debian/control gcc-defaults-1.217/debian/control --- gcc-defaults-1.217/debian/control 2024-01-31 13:17:32.000000000 +0000
    +++ gcc-defaults-1.217/debian/control 2024-01-31 13:17:32.000000000 +0000
    @@ -2740,6 +2740,39 @@
    This is a dependency package providing the default GNU Fortran 95
    cross-compiler for the loong64 architecture.

    +Package: gdc-loongarch64-linux-gnu
    +Priority: optional
    +Architecture: loong64
    +Multi-Arch: foreign
    +Depends: cpp-loongarch64-linux-gnu (>= ${version:cpp}),
    + gdc-${pv:gdc}-loongarch64-linux-gnu ${reqv:gdc},
    + ${misc:Depends}
    +Breaks: gdc (<< 4:13.2.0-3)
    +Replaces: gdc (<< 4:13.2.0-3)
    +Description: GNU D compiler (based on GCC) for the loong64 architecture
    + This is the GNU D compiler, which compiles D on platforms supported by
    + the gcc compiler. It uses the gcc backend to generate optimized code.
    + .
    + This is a dependency package providing the default GNU D cross-compiler
    + for the loong64 architecture.
    +
    +Package: gm2-loongarch64-linux-gnu
    +Priority: optional
    +Architecture: loong64
    +Multi-Arch: fo