From 461ef15b3700ee55b15dc6fd616da173e9fbf550 Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Thu, 13 Jul 2023 10:05:11 -0300 Subject: [PATCH] Fix rhbz#2221585 Module imp got removed from Python 3.12. Source: https://docs.python.org/3/library/imp.html --- D155192.diff | 12 ++++++++++++ clang.spec | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 D155192.diff diff --git a/D155192.diff b/D155192.diff new file mode 100644 index 0000000..d53698c --- /dev/null +++ b/D155192.diff @@ -0,0 +1,12 @@ +diff --git a/clang/tools/scan-view/bin/scan-view b/clang/tools/scan-view/bin/scan-view +--- a/clang/tools/scan-view/bin/scan-view ++++ b/clang/tools/scan-view/bin/scan-view +@@ -6,7 +6,6 @@ + """ + + import sys +-import imp + import os + import posixpath + import threading + diff --git a/clang.spec b/clang.spec index d03062d..1654eca 100644 --- a/clang.spec +++ b/clang.spec @@ -43,7 +43,7 @@ Name: %pkg_name Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: A C language family front-end for LLVM License: Apache-2.0 WITH LLVM-exception OR NCSA @@ -75,6 +75,9 @@ Patch8: D138472.diff Patch10: fix-ieee128-cross.diff +# https://reviews.llvm.org/D155192 +Patch11: D155192.diff + # RHEL specific patches # Avoid unwanted dependency on python-recommonmark Patch101: 0009-disable-recommonmark.patch @@ -610,6 +613,9 @@ false %endif %changelog +* Wed Jul 12 2023 Tulio Magno Quites Machado Filho - 16.0.6-2 +- Fix rhbz#2221585 + * Fri Jun 16 2023 Tulio Magno Quites Machado Filho - 16.0.6-1 - Update to LLVM 16.0.6