• Bug#1066835: universal-ctags: please add support for loong64

    From wuruilong@21:1/5 to All on Thu Mar 14 04:30:01 2024
    This is a multi-part MIME message sent by reportbug.


    Package: universal-ctags
    Version: 5.9.20210829.0-1
    Severity: normal
    X-Debbugs-Cc: wuruilong@loongson.cn
    User: debian-devel@lists.debian.org
    Usertags: loong64

    Dear Maintainer,

    Universal-ctags has a compilation error in the loong64 architecture.
    The attached patch solves the problem. Please refer to it supports loong64 architecture.

    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 universal-ctags depends on:
    ii libc6 2.37-15.1
    ii libjansson4 2.14-2+b1
    ii libseccomp2 2.5.4-1+loong64
    ii libxml2 2.9.14+dfsg-1.3+b1
    ii libyaml-0-2 0.2.5-1+b1

    universal-ctags recommends no packages.

    Versions of packages universal-ctags suggests:
    ii vim 2:9.1.0016-1+b1

    -- 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.
    .
    universal-ctags (5.9.20210829.0-1) unstable; urgency=medium
    .
    * New upstream release
    + Fix FTBFS with glibc 2.33 (Closes: #990784)
    + Fix etags segfault (Closes: #993509)
    * Add debian/watch file
    * Bump Standards-Version to 4.6.0 (no changes needed)
    * Add patch to avoid running git during tests
    * Update d/copyright
    Author: Alessandro Ghedini <ghedo@debian.org>
    Bug-Debian: https://bugs.debian.org/990784
    Bug-Debian: https://bugs.debian.org/993509

    ---
    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-03-14

    --- universal-ctags-5.9.20210829.0.orig/main/seccomp.c
    +++ universal-ctags-5.9.20210829.0/main/seccomp.c
    @@ -41,7 +41,9 @@ int installSyscallFilter (void)
    seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (exit_group), 0);

    // The bowels of stdio want to know the size of a file, even for stdout.
    +#if(defined(__SNR_fstat) && __SNR_fstat)
    seccomp_rule_add (ctx, SC