public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sun Haiyong <sunhaiyong@zdbr.net>
To: git-commits@fedoraproject.org
Subject: [rpms/ilbc] rawhide: Add loongarch support.
Date: Thu, 02 Jul 2026 20:12:21 GMT	[thread overview]
Message-ID: <178302314190.1.7187247789676823054.rpms-ilbc-fc966265eb26@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/ilbc
            Branch : rawhide
            Commit : fc966265eb269130e1eb4d7d2b138cc0bebcb6da
            Author : Sun Haiyong <sunhaiyong@zdbr.net>
            Date   : 2026-06-24T17:39:06+08:00
            Stats  : +38/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/ilbc/c/fc966265eb269130e1eb4d7d2b138cc0bebcb6da?branch=rawhide

            Log:
            Add loongarch support.

Add preprocessor support for loongarch architectures

---
diff --git a/ilbc-loongarch.patch b/ilbc-loongarch.patch
new file mode 100644
index 0000000..6ec895f
--- /dev/null
+++ b/ilbc-loongarch.patch
@@ -0,0 +1,33 @@
+From 1cee903f9fd7d13556801f4fdbbf9c82518641e0 Mon Sep 17 00:00:00 2001
+From: Sun Haiyong <sunhaiyong@zdbr.net>
+Date: Wed, 24 Jun 2026 17:31:14 +0800
+Subject: [PATCH] Add preprocessor support for loongarch architectures
+
+__loongarch__ and __loongarch_grlen are defined by
+https://github.com/loongson/la-toolchain-conventions#cc-preprocessor-built-in-macro-definitions
+---
+ rtc_base/system/arch.h | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/rtc_base/system/arch.h b/rtc_base/system/arch.h
+index be2367b85f..d036fe8424 100644
+--- a/rtc_base/system/arch.h
++++ b/rtc_base/system/arch.h
+@@ -73,6 +73,14 @@
+ #elif defined(__riscv) && __riscv_xlen == 32
+ #define WEBRTC_ARCH_32_BITS
+ #define WEBRTC_ARCH_LITTLE_ENDIAN
++#elif defined(__loongarch__) && __loongarch_grlen == 64
++#define WEBRTC_ARCH_LOONGARCH_FAMILY
++#define WEBRTC_ARCH_64_BITS
++#define WEBRTC_ARCH_LITTLE_ENDIAN
++#elif defined(__loongarch__) && __loongarch_grlen == 32
++#define WEBRTC_ARCH_LOONGARCH_FAMILY
++#define WEBRTC_ARCH_32_BITS
++#define WEBRTC_ARCH_LITTLE_ENDIAN
+ #elif defined(__pnacl__)
+ #define WEBRTC_ARCH_32_BITS
+ #define WEBRTC_ARCH_LITTLE_ENDIAN
+-- 
+2.48.1
+

diff --git a/ilbc.spec b/ilbc.spec
index 8eef957..f12bff1 100644
--- a/ilbc.spec
+++ b/ilbc.spec
@@ -1,13 +1,14 @@
 Name:       ilbc
 Summary:    Internet Low Bitrate Codec
 Version:    3.0.4
-Release:    19%{?dist}
+Release:    20%{?dist}
 License:    BSD-3-Clause
 URL:        https://github.com/TimothyGu/libilbc
 
 Source0:    %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Patch0:     %{name}-flags.patch
 Patch1:     %{name}-s390.patch
+Patch2:     %{name}-loongarch.patch
 
 BuildRequires:  abseil-cpp-devel
 BuildRequires:  cmake
@@ -59,6 +60,9 @@ rm -fr %{buildroot}%{_docdir}/libilbc
 %{_libdir}/lib%{name}.so
 
 %changelog
+* Wed Jun 24 2026 Sun Haiyong <sunhaiyong@zdbr.net> - 3.0.4-20
+- Add loongarch support.
+
 * Wed Jan 28 2026 Benjamin A. Beasley <code@musicinmybrain.net> - 3.0.4-19
 - Rebuilt for abseil-cpp 20260107.0
 

                 reply	other threads:[~2026-07-02 20:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178302314190.1.7187247789676823054.rpms-ilbc-fc966265eb26@fedoraproject.org \
    --to=sunhaiyong@zdbr.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox