public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mattias Ellert <mattias.ellert@physics.uu.se>
To: git-commits@fedoraproject.org
Subject: [rpms/castxml] rawhide: Apply upstream patch to supporm llvm 23
Date: Mon, 14 Sep 2026 19:24:52 GMT	[thread overview]
Message-ID: <178941389296.1.5174562432519300930.rpms-castxml-9ed2b4232d59@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/castxml
Branch : rawhide
Commit : 9ed2b4232d5945882a9bf747aa2cdf559fd1a92c
Author : Mattias Ellert <mattias.ellert@physics.uu.se>
Date   : 2026-09-14T21:24:28+02:00
Stats  : +42/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/castxml/c/9ed2b4232d5945882a9bf747aa2cdf559fd1a92c?branch=rawhide

Log:
Apply upstream patch to supporm llvm 23

---
diff --git a/0001-Port-to-LLVM-Clang-Git-main-as-of-2026-10-10-6f47b6d.patch b/0001-Port-to-LLVM-Clang-Git-main-as-of-2026-10-10-6f47b6d.patch
new file mode 100644
index 0000000..324ca0b
--- /dev/null
+++ b/0001-Port-to-LLVM-Clang-Git-main-as-of-2026-10-10-6f47b6d.patch
@@ -0,0 +1,36 @@
+From 315fbacc4e4b9c7ea21d25ad489a90b73a526326 Mon Sep 17 00:00:00 2001
+From: Brad King <brad.king@kitware.com>
+Date: Wed, 10 Jun 2026 10:55:10 -0400
+Subject: [PATCH] Port to LLVM/Clang Git main as of 2026-10-10 (6f47b6de08)
+
+---
+ src/Output.cxx | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/src/Output.cxx b/src/Output.cxx
+index bb986d4..9f722ef 100644
+--- a/src/Output.cxx
++++ b/src/Output.cxx
+@@ -119,6 +119,10 @@ clang::NestedNameSpecifier const& deref(NestedNameSpecifier const& nns)
+ #  define isPureVirtual isPure
+ #endif
+ 
++#if LLVM_VERSION_MAJOR < 23
++#  define getRawCommentNoCache getRawCommentForDeclNoCache
++#endif
++
+ class ASTVisitorBase
+ {
+ protected:
+@@ -1973,7 +1977,7 @@ void ASTVisitor::PrintCommentAttribute(clang::Decl const* d,
+   if (!this->Opts.CastXml) {
+     return;
+   }
+-  if (clang::RawComment const* rc = this->CTX.getRawCommentForDeclNoCache(d)) {
++  if (clang::RawComment const* rc = this->CTX.getRawCommentNoCache(d)) {
+     unsigned int index = ++this->CommentCount;
+     CommentEntry e = { index, rc, dn };
+     this->CommentQueue.push(e);
+-- 
+2.55.0
+

diff --git a/castxml.spec b/castxml.spec
index 31caf19..7691dea 100644
--- a/castxml.spec
+++ b/castxml.spec
@@ -2,12 +2,13 @@
 
 Name:		castxml
 Version:	0.7.0
-Release:	3%{?dist}
+Release:	4%{?dist}
 Summary:	C-family abstract syntax tree XML output tool
 
 License:	Apache-2.0
 URL:		https://github.com/CastXML/CastXML
 Source0:	%{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+Patch0:		0001-Port-to-LLVM-Clang-Git-main-as-of-2026-10-10-6f47b6d.patch
 
 BuildRequires:	cmake
 BuildRequires:	make
@@ -29,6 +30,7 @@ may support alternative output formats.
 
 %prep
 %setup -q -n CastXML-%{version}
+%patch -P0 -p1
 
 %build
 %cmake -DCastXML_INSTALL_DOC_DIR:STRING=share/doc/%{name} \
@@ -60,6 +62,9 @@ rm %{buildroot}%{_pkgdocdir}/NOTICE
 %license LICENSE NOTICE
 
 %changelog
+* Mon Sep 14 2026 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.0-4
+- Apply upstream patch to supporm llvm 23
+
 * Mon Aug 03 2026 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.7.0-3
 - Rebuild for llvm/clang 21 (EPEL 8/9)
 - Rebuild for llvm/clang 22 (fedora 44)

                 reply	other threads:[~2026-09-14 19:24 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=178941389296.1.5174562432519300930.rpms-castxml-9ed2b4232d59@fedoraproject.org \
    --to=mattias.ellert@physics.uu.se \
    --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