• [gentoo-dev] [PATCH 0/3] Some more loong tweaks before keywording

    From WANG Xuerui@21:1/5 to All on Sun Apr 24 17:30:01 2022
    Posting to mailing list mainly because of the eclass changes, however
    trivial the changes might be. The portage patch is already upstream but
    not in a tagged release yet.

    This is part of the draft PR: https://github.com/gentoo/gentoo/pull/25183
    over at GitHub.

    WANG Xuerui (3):
    acct-group.eclass: add keyword ~loong
    acct-user.eclass: add keyword ~loong
    sys-apps/portage: add support for recognizing LoongArch ABIs

    eclass/acct-group.eclass | 4 +-
    eclass/acct-user.eclass | 2 +-
    .../portage/files/3.0.30-loong-abis.patch | 133 +++++++++
    sys-apps/portage/portage-3.0.30-r5.ebuild | 277 ++++++++++++++++++
    4 files changed, 413 insertions(+), 3 deletions(-)
    create mode 100644 sys-apps/portage/files/3.0.30-loong-abis.patch
    create mode 100644 sys-apps/portage/portage-3.0.30-r5.ebuild

    --
    2.35.1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From WANG Xuerui@21:1/5 to All on Sun Apr 24 17:30:01 2022
    Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
    ---
    eclass/acct-group.eclass | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/eclass/acct-group.eclass b/eclass/acct-group.eclass
    index 56b76ba1885..3d02e4f713b 100644
    --- a/eclass/acct-group.eclass
    +++ b/eclass/acct-group.eclass
    @@ -1,4 +1,4 @@
    -# Copyright 2019-2021 Gentoo Authors
    +# Copyright 2019-2022 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: acct-group.eclass
    @@ -77,7 +77,7 @@ readonly ACCT_GROUP_NAME
    # << Boilerplate ebuild variables >>
    : ${DESCRIPTION:="System group: ${ACCT_GROUP_NAME}"}
    : ${SLOT:=0}
    -: ${KEYWORDS:=alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris}
    +: ${KEYWORDS:=alpha amd64 arm arm64 hppa ia64 ~loong m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86
  • From WANG Xuerui@21:1/5 to All on Sun Apr 24 17:30:01 2022
    Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
    ---
    .../portage/files/3.0.30-loong-abis.patch | 133 +++++++++
    sys-apps/portage/portage-3.0.30-r5.ebuild | 277 ++++++++++++++++++
    2 files changed, 410 insertions(+)
    create mode 100644 sys-apps/portage/files/3.0.30-loong-abis.patch
    create mode 100644 sys-apps/portage/portage-3.0.30-r5.ebuild

    diff --git a/sys-apps/portage/files/3.0.30-loong-abis.patch b/sys-apps/portage/files/3.0.30-loong-abis.patch
    new file mode 100644
    index 00000000000..7558107570c
    --- /dev/null
    +++ b/sys-apps/portage/files/3.0.30-loong-abis.patch
    @@ -0,0 +1,133 @@
    +From f6cdba7689ea423245a232cc13103dd988363845 Mon Sep 17 00:00:00 2001
    +From: WANG Xuerui <git@xen0n.name>
    +Date: Mon, 9 Aug 2021 15:31:25 +0800
    +Subject: [PATCH] multilib_category.py: recognize LoongArch ABIs
    +
    +Add its ELF machine number constant as well. The Gentoo ARCH is "loong";
    +all six ABIs defined in the LoongArch ELF psABI spec [1] are supported.
    +The upstream binutils port currently implements an earlier version of the +spec [2]; the IL
  • From =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?=@21:1/5 to WANG Xuerui on Sun Apr 24 20:00:01 2022
    On Sun, 2022-04-24 at 23:21 +0800, WANG Xuerui wrote:
    Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
    ---
    .../portage/files/3.0.30-loong-abis.patch | 133 +++++++++


    Why add a patch when we can make a new Portage release with this?

    --
    Best regards,
    Michał Górny

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