public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/castxml] rawhide: Apply upstream patch to supporm llvm 23
@ 2026-09-14 19:24 Mattias Ellert
  0 siblings, 0 replies; only message in thread
From: Mattias Ellert @ 2026-09-14 19:24 UTC (permalink / raw)
  To: git-commits

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)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-14 19:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-14 19:24 [rpms/castxml] rawhide: Apply upstream patch to supporm llvm 23 Mattias Ellert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox