Browse Source

updated 8 packages

clang-17.0.2-1

compiler-rt-17.0.2-1

lld-17.0.2-1

lldb-17.0.2-1

llvm-17.0.2-1

libomp-17.0.2-1

mesa-23.1.8-1

rust-1.73.0-1
Tomohiro "Tomo-p" KATO 5 months ago
parent
commit
e4934b2955

+ 53 - 32
c/clang/clang-vl.spec

@@ -14,7 +14,7 @@
 Summary:        A C language family front-end for LLVM
 Summary(ja):    LLVM の C 言語フロントエンド
 Name:           clang
-Version:        15.0.6
+Version:        17.0.2
 Release:        1%{?_dist_release}
 Group:          programming
 Vendor:         Project Vine
@@ -29,21 +29,25 @@ Source1:        https://github.com/llvm/llvm-project/releases/download/llvmorg-%
 Source11:   clang-config.h
 
 # Patches for clang
-Patch0:     0001-PATCH-clang-Reorganize-gtest-integration.patch
-Patch1:     0002-PATCH-clang-Make-funwind-tables-the-default-on-all-a.patch
+Patch1:     0001-PATCH-clang-Make-funwind-tables-the-default-on-all-a.patch
 Patch2:     0003-PATCH-clang-Don-t-install-static-libraries.patch
 Patch3:     0001-Driver-Add-a-gcc-equivalent-triple-to-the-list-of-tr.patch
-Patch4:     0001-cmake-Allow-shared-libraries-to-customize-the-soname.patch
-# This patch can be dropped once gcc-12.0.1-0.5.fc36 is in the repo.
-Patch5:     0001-Work-around-gcc-miscompile.patch
-Patch7:     0010-PATCH-clang-Produce-DWARF4-by-default.patch
-
+# Drop the following patch after debugedit adds support to DWARF-5:
+# https://sourceware.org/bugzilla/show_bug.cgi?id=28728
+Patch4:     0001-Produce-DWARF4-by-default.patch
+# Workaround a bug in ORC on ppc64le.
+# More info is available here: https://reviews.llvm.org/D159115#4641826
+Patch5:     0001-Workaround-a-bug-in-ORC-on-ppc64le.patch
+
+# RHEL specific patches
+# Avoid unwanted dependency on python-recommonmark
+Patch101:  0009-disable-recommonmark.patch
+
+%if %{without compat_build}
 # Patches for clang-tools-extra
 # See https://reviews.llvm.org/D120301
-Patch201:   llvm-hello.patch
-# See https://github.com/llvm/llvm-project/issues/54116
-Patch202:   remove-test.patch
-
+Patch201:   0001-clang-tools-extra-Make-test-dependency-on-LLVMHello-.patch
+%endif
 
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@@ -146,16 +150,11 @@ A set of extra tools built using Clang's tooling API.
 %setup -T -q -b 1 -n clang-tools-extra-%{version}.src
 %autopatch -m200 -p2
 
-# This test is broken upstream. It is a clang-tidy unittest
-# that includes a file from clang, breaking standalone builds.
-# https://github.com/llvm/llvm-project/issues/54116
-rm unittests/clang-tidy/ReadabilityModuleTest.cpp
-
 # failing test case
-#rm test/clang-tidy/checkers/altera-struct-pack-align.cpp
+rm test/clang-tidy/checkers/altera/struct-pack-align.cpp
 
 pathfix%{python3_version}.py -i %{__python3} -pn \
-	clang-tidy/tool/*.py \
+	clang-tidy/tool/ \
 	clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
 
 %setup -q -n clang-%{version}.src
@@ -165,7 +164,7 @@ pathfix%{python3_version}.py -i %{__python3} -pn \
 rm test/CodeGen/profile-filter.c
 
 pathfix%{python3_version}.py -i %{__python3} -pn \
-	tools/clang-format/*.py \
+	tools/clang-format/ \
 	tools/clang-format/git-clang-format \
 	utils/hmaptool/hmaptool \
 	tools/scan-view/bin/scan-view \
@@ -177,7 +176,7 @@ pathfix%{python3_version}.py -i %{__python3} -pn \
 sed -i -e 's/"i686-linux-gnu",/"i686-linux-gnu","i686-vine-linux","i686-vine-linux-gnu",/' lib/Driver/ToolChains/Gnu.cpp
 sed -i -e 's/"x86_64-linux-gnu",/"x86_64-linux-gnu","x86_64-vine-linux","x86_64-vine-linux-gnu",/' lib/Driver/ToolChains/Gnu.cpp
 
-sed -i -e 's/"ld"/"ld.gold"/' include/clang/Driver/ToolChain.h
+#sed -i -e 's/"ld"/"ld.gold"/' include/clang/Driver/ToolChain.h
 
 
 %build
@@ -191,13 +190,22 @@ sed -i -e 's/"ld"/"ld.gold"/' include/clang/Driver/ToolChain.h
 
 %cmake \
     -GNinja \
+    -DCLANG_DEFAULT_PIE_ON_LINUX=OFF \
     -DLLVM_PARALLEL_LINK_JOBS=1 \
     -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
-    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
     -DPYTHON_EXECUTABLE=%{__python3} \
     -DCMAKE_SKIP_RPATH:BOOL=ON \
-    -DCMAKE_INSTALL_RPATH:BOOL=";" \
+%ifarch %ix86
+    -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
+    -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
+%endif
+    -DCLANG_INCLUDE_DOCS:BOOL=ON \
+    -DCLANG_INCLUDE_TESTS:BOOL=OFF \
+    -DLLVM_BUILD_UTILS:BOOL=ON \
     -DLLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=../clang-tools-extra-%{version}.src \
+    -DLLVM_CMAKE_DIR=%{_libdir}/cmake/llvm \
+    -DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \
 %if 0%{?__isa_bits} == 64
     -DLLVM_LIBDIR_SUFFIX=64 \
 %else
@@ -205,21 +213,18 @@ sed -i -e 's/"ld"/"ld.gold"/' include/clang/Driver/ToolChain.h
 %endif
     \
     -DLLVM_TABLEGEN_EXE:FILEPATH=%{_bindir}/llvm-tblgen \
+    -DLLVM_COMMON_CMAKE_UTILS=%{_datadir}/llvm/cmake \
+    -DLLVM_CMAKE_DIR=%{_libdir}/cmake/llvm \
     -DCLANG_ENABLE_ARCMT:BOOL=ON \
     -DCLANG_ENABLE_STATIC_ANALYZER:BOOL=ON \
-    -DCLANG_ENABLE_ARCMT:BOOL=ON \
-    -DCLANG_ENABLE_STATIC_ANALYZER:BOOL=ON \
-    -DCLANG_INCLUDE_DOCS:BOOL=ON \
-    -DCLANG_INCLUDE_TESTS:BOOL=ON \
-    -DCLANG_PLUGIN_SUPPORT:BOOL=ON \
-    \
-    -DCLANG_INCLUDE_DOCS:BOOL=ON \
-    -DCLANG_PLUGIN_SUPPORT:BOOL=ON \
+    -DCLANG_PLUGIN_SUPPORT:BOOL=OFF \
+    -DLLVM_ENABLE_PLUGINS:BOOL=OFF \
     -DENABLE_LINKER_BUILD_ID:BOOL=ON \
     -DLLVM_ENABLE_EH=ON \
     -DLLVM_ENABLE_RTTI=ON \
     -DLLVM_BUILD_DOCS=ON \
     -DLLVM_ENABLE_SPHINX=OFF \
+    -DLLVM_INCLUDE_TESTS:BOOL=OFF \
     -DCLANG_LINK_CLANG_DYLIB=ON \
     \
     -DCLANG_LINK_CLANG_DYLIB=ON \
@@ -239,12 +244,15 @@ rm -rf %{buildroot}
 # remove static libraries
 rm -fv %{buildroot}%{_libdir}/libclang*.a
 
+# Add clang++-{version} symlink
+ln -s clang++ %{buildroot}%{_bindir}/clang++-%{ver_suffix}
+
 # install clang python bindings
 mkdir -p %{buildroot}%{python3_sitelib}/clang/
 install -p -m644 bindings/python/clang/* %{buildroot}%{python3_sitelib}/clang/
 
 # install scanbuild-py to python sitelib.
-mv %{buildroot}%{_prefix}/lib/{libear,libscanbuild} %{buildroot}%{python3_sitelib}
+mv %{buildroot}%{_libdir}/{libear,libscanbuild} %{buildroot}%{python3_sitelib}
 
 mv -v %{buildroot}%{_includedir}/clang/Config/config{,-%{__isa_bits}}.h
 install -m 0644 %{SOURCE11} %{buildroot}%{_includedir}/clang/Config/config.h
@@ -292,6 +300,7 @@ rm -rf %{buildroot}
 %{_bindir}/clang
 %{_bindir}/clang++
 %{_bindir}/clang-%{ver_suffix}
+%{_bindir}/clang++-%{ver_suffix}
 %{_bindir}/clang-cl
 %{_bindir}/clang-cpp
 
@@ -334,17 +343,20 @@ rm -rf %{buildroot}
 %{python3_sitelib}/clang/
 
 %files tools-extra
+%{_bindir}/amdgpu-arch
 %{_bindir}/c-index-test
 %{_bindir}/clang*
 %exclude %{_bindir}/clang
 %exclude %{_bindir}/clang++
 %exclude %{_bindir}/clang-%{ver_suffix}
+%exclude %{_bindir}/clang++-%{ver_suffix}
 %exclude %{_bindir}/clang-cl
 %exclude %{_bindir}/clang-cpp
 %{_bindir}/diagtool
 %{_bindir}/find-all-symbols
 %{_bindir}/hmaptool
 %{_bindir}/modularize
+%{_bindir}/nvptx-arch
 %{_bindir}/pp-trace
 %{_bindir}/run-clang-tidy
 %{_datadir}/clang/clang-tidy-diff.py*
@@ -352,6 +364,15 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Sat Oct 07 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 17.0.2-1
+- new upstream release.
+
+* Sat Sep 30 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 17.0.1-1
+- new upstream release.
+
+* Sun May 28 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 16.0.4-1
+- new upstream release.
+
 * Fri Dec 16 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 15.0.6-1
 - new upstream release.
 

+ 35 - 28
c/compiler-rt/compiler-rt-vl.spec

@@ -6,10 +6,17 @@
 
 %define _unpackaged_files_terminate_build 1
 
+# see https://sourceware.org/bugzilla/show_bug.cgi?id=25271
+%global optflags %(echo %{optflags} -D_DEFAULT_SOURCE)
+
+# see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93615
+%global optflags %(echo %{optflags} -Dasm=__asm__)
+
 Summary:        LLVM "compiler-rt" runtime libraries
 Summary(ja):    LLVM "compiler-rt" ランタイムライブラリ
 Name:           compiler-rt
-Version:        15.0.6
+Version:        17.0.2
+%define         shortver %(echo %{version} | cut -d. -f1)
 Release:        1%{?_dist_release}
 Group:          programming
 Vendor:         Project Vine
@@ -20,12 +27,13 @@ URL:            https://llvm.org/
 Source0:        https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/compiler-rt-%{version}.src.tar.xz
 
 # patches
-Patch0:         add-llvm-cmake-package.patch
+Patch0:		0001-compiler-rt-Fix-FLOAT16-feature-detection.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 
 BuildRequires:  cmake
 BuildRequires:  ninja
+BuildRequires:  clang
 BuildRequires:  python3
 BuildRequires:  python3-devel
 BuildRequires:	llvm-devel = %{version}
@@ -49,16 +57,25 @@ instrumentation, and Blocks C language extension.
 
 %prep
 %autosetup -n compiler-rt-%{version}.src -p2
+
+# compiler-rt does not allow configuring LLVM_COMMON_CMAKE_UTILS.
+rm -f ../cmake
+ln -s %{_datadir}/llvm/cmake ../cmake
+
 pathfix%{python3_version}.py -i %{__python3} -pn lib/hwasan/scripts/hwasan_symbolize
 
 
 %build
+# Copy CFLAGS into ASMFLAGS, so -fcf-protection is used when compiling assembly files.
+export ASMFLAGS=$CFLAGS
+
 %cmake \
         -GNinja \
-        -DCMAKE_BUILD_TYPE=Release \
-        -DLLVM_CONFIG_PATH:FILEPATH=%{_bindir}/llvm-config-%{__isa_bits} \
-        -DCMAKE_INSTALL_RPATH=";" \
+        -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+        -DCMAKE_MODULE_PATH=%{_libdir}/cmake/llvm \
         -DCMAKE_SKIP_RPATH:BOOL=ON \
+        -DCOMPILER_RT_INSTALL_PATH=%{_libdir}/clang/%{shortver} \
+        -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON \
 %if 0%{?__isa_bits} == 64
         -DLLVM_LIBDIR_SUFFIX=64 \
 %else
@@ -70,27 +87,8 @@ pathfix%{python3_version}.py -i %{__python3} -pn lib/hwasan/scripts/hwasan_symbo
 
 
 %install
-rm -rf %{buildroot}
-
 %cmake_install
 
-# compiler-rt
-
-# move sanitizer lists to better place
-mkdir -p %{buildroot}%{_libdir}/clang/%{version}/share
-        mv -v %{buildroot}%{_datadir}/*list.txt %{buildroot}%{_libdir}/clang/%{version}/share/
-
-# move sanitizer libs to better place
-%global libclang_rt_installdir lib/linux
-mkdir -p %{buildroot}%{_libdir}/clang/%{version}/lib
-mv -v %{buildroot}%{_prefix}/%{libclang_rt_installdir}/*clang_rt* %{buildroot}%{_libdir}/clang/%{version}/lib
-mkdir -p %{buildroot}%{_libdir}/clang/%{version}/lib/linux/
-pushd %{buildroot}%{_libdir}/clang/%{version}/lib
-for i in *.a *.so
-do
-	ln -s ../$i linux/$i
-done
-
 
 %if %{with test}
 %check
@@ -104,15 +102,24 @@ rm -rf %{buildroot}
 
 %files
 %license LICENSE.TXT
-%{_includedir}/*
-%{_libdir}/clang/%{version}/lib/*
-%{_libdir}/clang/%{version}/share/*
 %ifarch x86_64 aarch64
-%{_bindir}/hwasan_symbolize
+%{_libdir}/clang/%{shortver}/bin/*
 %endif
+%{_libdir}/clang/%{shortver}/include/*
+%{_libdir}/clang/%{shortver}/lib/*
+%{_libdir}/clang/%{shortver}/share/*
 
 
 %changelog
+* Sat Oct 07 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 17.0.2-1
+- new upstream release.
+
+* Sun Oct 01 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 17.0.1-1
+- new upstream release.
+
+* Sun May 28 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 16.0.4-1
+- new upstream release.
+
 * Fri Dec 16 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 15.0.6-1
 - new upstream release.
 

+ 21 - 7
l/lld/lld-vl.spec

@@ -9,7 +9,7 @@
 Summary:        The LLVM Linker
 Summary(ja):    LLVMリンカー
 Name:           lld
-Version:        15.0.6
+Version:        17.0.2
 Release:        1%{?_dist_release}
 Group:          programming
 Vendor:         Project Vine
@@ -21,9 +21,8 @@ Source0:        https://github.com/llvm/llvm-project/releases/download/llvmorg-%
 
 # patches
 
-Patch0:         0001-PATCH-lld-CMake-Check-for-gtest-headers-even-if-lit..patch
 # Bundle libunwind header need during build for MachO support
-Patch1:         0002-PATCH-lld-Import-compact_unwind_encoding.h-from-libu.patch
+Patch2:         0002-PATCH-lld-Import-compact_unwind_encoding.h-from-libu.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 
@@ -69,8 +68,11 @@ programs that use the LLD infrastructure.
 
 
 %prep
-%setup -q  -n lld-%{version}.src 
-%autopatch -p2
+#%setup -T -q -b 1 -n cmake-%{version}.src
+#cd ..
+#mv cmake-%{version}.src cmake
+
+%autosetup -p2 -n lld-%{version}.src 
 
 
 %build
@@ -79,14 +81,16 @@ programs that use the LLD infrastructure.
 
 %cmake \
         -GNinja \
-        -DCMAKE_BUILD_TYPE=Release \
+        -DCMAKE_BUILD_TYPE=RelWithDebInfo \
         -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
 %if %{with lld_libs}
         -DLLVM_DYLIB_COMPONENTS="all" \
+        -DLLVM_COMMON_CMAKE_UTILS=%{_datadir}/llvm/cmake \
 %endif
         -DCMAKE_SKIP_RPATH:BOOL=ON \
         -DPYTHON_EXECUTABLE:STRING=%{__python3} \
-        -DLLVM_INCLUDE_TESTS:BOOL=ON \
+        -DLLVM_CMAKE_DIR=%{_libdir}/cmake/llvm \
+        -DLLVM_INCLUDE_TESTS:BOOL=OFF \
         -DLLVM_LIT_ARGS="-sv \
         --path %{_libdir}/llvm" \
 %if 0%{?__isa_bits} == 64
@@ -94,6 +98,7 @@ programs that use the LLD infrastructure.
 %else
         -DLLVM_LIBDIR_SUFFIX= \
 %endif
+        -DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \
         %{nil}
 
 %cmake_build
@@ -161,6 +166,15 @@ fi
 
 
 %changelog
+* Sat Oct 07 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 17.0.2-1
+- new upstream release.
+
+* Sun Oct 01 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 17.0.1-1
+- new upstream release.
+
+* Sun May 28 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 16.0.4-1
+- new upstream release.
+
 * Fri Dec 16 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 15.0.6-1
 - new upstream release.
 

+ 13 - 2
l/lldb/lldb-vl.spec

@@ -7,7 +7,7 @@
 Summary:        Next generation high-performance debugger
 Summary(ja):    高性能デバッガー
 Name:           lldb
-Version:        15.0.6
+Version:        17.0.2
 Release:        1%{?_dist_release}
 Group:          programming
 Vendor:         Project Vine
@@ -80,9 +80,11 @@ CXXFLAGS="%{optflags} -Wno-error=format-security"
 
 %cmake \
         -GNinja \
-        -DCMAKE_BUILD_TYPE=Release \
+        -DCMAKE_BUILD_TYPE=RelWithDebInfo \
         -DCMAKE_SKIP_RPATH:BOOL=ON \
         -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
+        -DLLVM_CONFIG:FILEPATH=/usr/bin/llvm-config-%{__isa_bits} \
+        -DLLVM_COMMON_CMAKE_UTILS=%{_datadir}/llvm/cmake \
         \
         -DLLDB_DISABLE_CURSES:BOOL=OFF \
         -DLLDB_DISABLE_LIBEDIT:BOOL=OFF \
@@ -146,6 +148,15 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Sat Oct 07 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 17.0.2-1
+- new upstream release.
+
+* Sun Oct 01 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 17.0.1-1
+- new upstream release.
+
+* Mon May 29 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 16.0.4-1
+- new upstream release.
+
 * Fri Dec 16 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 15.0.6-1
 - new upstream release.
 

+ 60 - 17
l/llvm/llvm-vl.spec

@@ -26,7 +26,7 @@
 Summary:        The Low Level Virtual Machine
 Summary(ja):    LLVM - 低レベルバーチャルマシン
 Name:           llvm
-Version:        15.0.6
+Version:        17.0.2
 Release:        1%{?_dist_release}
 Group:          programming
 Vendor:         Project Vine
@@ -36,11 +36,13 @@ License:        NCSA
 URL:            https://llvm.org/
 Source0:        https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/llvm-%{version}.src.tar.xz
 Source1:        https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/cmake-%{version}.src.tar.xz
-
+Source2:        https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/third-party-%{version}.src.tar.xz
 # multilib fixes
 Source10:        llvm-config.h
 
 # patches
+# RHEL-specific patch to avoid unwanted recommonmark dep
+Patch101:	0101-Deactivate-markdown-doc.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 
@@ -55,7 +57,7 @@ BuildRequires:  python3-rpm-macros
 BuildRequires:  valgrind-devel
 BuildRequires:  zlib-devel
 
-Requires:       llvm%{ver_suffix}-libs = %{version}-%{release}
+Requires:       llvm-libs-extras = %{version}-%{release}
 
 %description
 LLVM is a compiler infrastructure designed for compile-time,
@@ -70,7 +72,7 @@ Summary:        Libraries and header files for LLVM
 Summary(ja):    LLVM のライブラリおよびヘッダファイル
 Group:          programming
 Requires:       %{name} = %{version}-%{release}
-Requires:       llvm%{ver_suffix}-libs = %{version}-%{release}
+Requires:       llvm-libs-extras = %{version}-%{release}
 Requires:       libedit-devel
 
 %description devel
@@ -91,12 +93,28 @@ Obsoletes:      %{name}-doc < %{version}-%{release}
 Documentation for the LLVM compiler infrastructure.
 
 
+%package libs-extras
+Summary:        extra files of LLVM shared libraries
+Summary(ja):    LLVM 共有ライブラリの追加ファイル
+Group:          system
+Requires:       %{name} = %{version}-%{release}
+Requires:       llvm%{ver_suffix}-libs = %{version}-%{release}
+
+%description libs-extras
+ This package contains extra files of shared libraries for the LLVM
+compiler infrastructure.
+
+
 %package -n llvm%{ver_suffix}-libs
 Summary:        LLVM shared libraries
 Summary(ja):    LLVM 共有ライブラリ
 Group:          system
-Provides:       llvm-libs = %{version}-%{release}
-Obsoletes:      llvm-libs <= 7.0.0
+Obsoletes:      llvm-libs < 15.0.0
+Obsoletes:      llvm16-libs < 17.0.0
+Obsoletes:      llvm15-libs < 16.0.0
+Obsoletes:      llvm14-libs < 15.0.0
+Obsoletes:      llvm13-libs < 14.0.0
+Obsoletes:      llvm12-libs < 13.0.0
 
 %description -n llvm%{ver_suffix}-libs
 Shared libraries for the LLVM compiler infrastructure.
@@ -134,10 +152,17 @@ Shared libraries for the LLVM compiler infrastructure.
 
 
 %prep
-%setup -q -n llvm-%{version}.src -a 1
-%autopatch -p2
+%setup -q -T -b 1 -n cmake-%{version}.src
+cd ..
+mv -f cmake-%{version}.src cmake
+
+%setup -q -T -b 2 -n third-party-%{version}.src
+%autopatch -p2 -m200
+cd ..
+mv -f third-party-%{version}.src third-party
 
-mv -f cmake-%{version}.src/Modules/* cmake/modules/
+%setup -q -T -b 0 -n llvm-%{version}.src
+%autopatch -p2 -M199
 
 pathfix%{python3_version}.py -i %{__python3} -pn \
 	test/BugPoint/compile-custom.ll.py \
@@ -148,7 +173,7 @@ pathfix%{python3_version}.py -i %{__python3} -pn \
 %build
 %global _lto_cflags %{nil}
 
-%ifarch s390 s390x %{arm} %ix86
+%ifarch s390 s390x %{arm} %ix86 x86_64
 # Decrease debuginfo verbosity to reduce memory consumption during final library linking
 %global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
 %endif
@@ -157,8 +182,12 @@ pathfix%{python3_version}.py -i %{__python3} -pn \
         -GNinja \
         -DBUILD_SHARED_LIBS:BOOL=OFF \
         -DLLVM_PARALLEL_LINK_JOBS=1 \
-        -DCMAKE_BUILD_TYPE=Release \
+        -DCMAKE_BUILD_TYPE=RelWithDebInfo \
         -DCMAKE_SKIP_RPATH:BOOL=ON \
+%ifarch %ix86 x86_64
+        -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
+        -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
+%endif
 %if 0%{?__isa_bits} == 64
         -DLLVM_LIBDIR_SUFFIX=64 \
 %else
@@ -214,8 +243,6 @@ pathfix%{python3_version}.py -i %{__python3} -pn \
 
 
 %install
-rm -rf %{buildroot}
-
 %cmake_install
 
 pushd %{_vpath_builddir}
@@ -231,6 +258,9 @@ install -m 0644 %{SOURCE10} %{buildroot}%{_includedir}/llvm/Config/llvm-config.h
 ln -s ../LLVMgold.so %{buildroot}%{_libdir}/bfd-plugins/LLVMgold.so
 popd
 
+mkdir -p %{buildroot}%{_datadir}/llvm/cmake
+cp -Rv ../cmake/* %{buildroot}%{_datadir}/llvm/cmake/
+
 
 %if %{with test}
 %check
@@ -270,6 +300,12 @@ exit 0
 %doc %{_mandir}/man1/*
 %{_datadir}/opt-viewer
 
+%files libs-extras
+%{_libdir}/libLTO.so
+%{_libdir}/libRemarks.so
+%{_libdir}/LLVMgold.so
+%{_libdir}/bfd-plugins/LLVMgold.so
+
 %files -n llvm%{ver_suffix}-libs
 %defattr(-,root,root,-)
 %license LICENSE.TXT
@@ -284,11 +320,9 @@ exit 0
 %{_includedir}/%{name}
 %{_includedir}/%{name}-c
 %{_libdir}/libLLVM.so
-%{_libdir}/libLTO.so
-%{_libdir}/libRemarks.so
-%{_libdir}/LLVMgold.so
-%{_libdir}/bfd-plugins/LLVMgold.so
 %{_libdir}/cmake/llvm
+%dir %{_datadir}/llvm
+%{_datadir}/llvm/cmake
 
 %files static
 %{_libdir}/*.a
@@ -307,6 +341,15 @@ exit 0
 
 
 %changelog
+* Fri Oct 06 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 17.0.2-1
+- new upstream release.
+
+* Sat Sep 30 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 17.0.1-1
+- new upstream release.
+
+* Sun May 28 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 16.0.4-1
+- new upstream release.
+
 * Fri Dec 16 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 15.0.6-1
 - new upstream release.
 

+ 27 - 34
lib/libo/libomp/libomp-vl.spec

@@ -7,7 +7,8 @@
 Summary:        OpenMP runtime for clang
 Summary(ja):    clang用OpenMPランタイム
 Name:           libomp
-Version:        15.0.6
+Version:        17.0.2
+%define         shortver %(echo %{version} | cut -d. -f1)
 Release:        1%{?_dist_release}
 Group:          system
 Vendor:         Project Vine
@@ -16,10 +17,8 @@ Distribution:   Vine Linux
 License:        NCSA
 URL:            https://llvm.org/
 Source0:        https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/openmp-%{version}.src.tar.xz
-Source1:        https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/cmake-%{version}.src.tar.xz
 
 # patches
-Patch0:         0001-PATCH-openmp-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 
@@ -53,9 +52,7 @@ The package contains the OpenMP header files.
 
 
 %prep
-%autosetup -p2 -n openmp-%{version}.src -a 1
-
-mv -f cmake-%{version}.src/Modules/* cmake/
+%autosetup -p2 -n openmp-%{version}.src
 
 
 %build
@@ -65,14 +62,16 @@ mv -f cmake-%{version}.src/Modules/* cmake/
 %cmake \
         -GNinja \
         -DLIBOMP_INSTALL_ALIASES=OFF \
+        -DCMAKE_MODULE_PATH=%{_datadir}/llvm/cmake/Modules \
         -DLLVM_DIR=%{_libdir}/cmake/llvm \
-        -DLIBOMP_HEADERS_INSTALL_PATH:PATH=%{_libdir}/clang/%{version}/include \
+        -DCMAKE_INSTALL_INCLUDEDIR=%{_libdir}/clang/%{shortver}/include \
 %if 0%{?__isa_bits} == 64
         -DOPENMP_LIBDIR_SUFFIX=64 \
 %else
         -DOPENMP_LIBDIR_SUFFIX= \
 %endif
-        -DCMAKE_SKIP_RPATH:BOOL=ON
+        -DCMAKE_SKIP_RPATH:BOOL=ON \
+        -DLIBOMP_HAVE_VERSION_SCRIPT_FLAG:BOOL=ON
 
 %cmake_build
 
@@ -96,48 +95,42 @@ rm -f %{buildroot}%{_libdir}/libarcher_static.a
 rm -rf %{buildroot}
 
 
-%pre
-if [ -e %{_libdir}/libomptarget.so ]; then
-    rm -f %{_libdir}/libomptarget.so
-fi
-%ifnarch %{ix86} %{arm}
-for f in \
-    %{_libdir}/libomptarget.rtl.amdgpu.so \
-    %{_libdir}/libomptarget.rtl.cuda.so \
-    %{_libdir}/libomptarget.rtl.%{_arch}.so
-do
-    if [ -e $f ]; then
-        rm -f $f
-    fi
-done
-%endif
-
-
 %files
 %license LICENSE.TXT
 %{_libdir}/libarcher.so
 %{_libdir}/libomp.so
 %{_libdir}/libompd.so
-%{_libdir}/libomptarget.so*
 %ifnarch %{ix86} %{arm}
-%{_libdir}/libomptarget-*.bc
-%{_libdir}/libomptarget.rtl.amdgpu.so*
-%{_libdir}/libomptarget.rtl.cuda.so*
-%{_libdir}/libomptarget.rtl.%{_arch}.so*
+%{_libdir}/libomptarget.so.*
+%{_libdir}/libomptarget.rtl.*.so*
 %endif
 
 %files devel
 %ifnarch %{ix86} %{arm}
 %{_libdir}/libomptarget.devicertl.a
 %endif
-%{_libdir}/clang/%{version}/include/omp.h
-%{_libdir}/clang/%{version}/include/omp-tools.h
-%{_libdir}/clang/%{version}/include/ompt.h
-%{_includedir}/ompt-multiplex.h
+%{_libdir}/clang/%{shortver}/include/omp.h
+%{_libdir}/clang/%{shortver}/include/omp-tools.h
+%{_libdir}/clang/%{shortver}/include/ompt.h
+%{_libdir}/clang/%{shortver}/include/ompt-multiplex.h
 %{_libdir}/cmake/openmp/FindOpenMPTarget.cmake
+%ifnarch %{ix86} %{arm}
+%{_libdir}/libomptarget.so
+%{_libdir}/libomptarget.rtl.*.so
+%{_libdir}/libomptarget-*.bc
+%endif
 
 
 %changelog
+* Sat Oct 07 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 17.0.2-1
+- new upstream release.
+
+* Sun Oct 01 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 17.0.1-1
+- new upstream release.
+
+* Mon May 29 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 16.0.4-1
+- new upstream release.
+
 * Fri Dec 16 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 15.0.6-1
 - new upstream release.
 

+ 28 - 10
m/mesa/mesa-vl.spec

@@ -15,19 +15,18 @@
 #global with_opencl 1
 %global base_drivers nouveau,r100,r200
 
-%ifarch %{ix86}
+%ifarch %{ix86} x86_64
 %define ix86_drivers ,i915,i965
 %endif
-#ifarch x86_64
-#define amd64_drivers ,i915,i965
-#endif
 %define dri_drivers %{base_drivers}%{?ix86_drivers}%{?amd64_drivers}
 
+%global with_crocus 1
+%global with_i915   1
 %global with_iris   1
 %global with_vmware 1
 %global with_xa     1
 %if %{with vulkan}
-%global vulkan_drivers swrast,intel,amd
+%global vulkan_drivers swrast,intel,intel_hasvk,amd
 %else
 %global vulkan_drivers %{nil}
 %endif
@@ -40,7 +39,7 @@
 Summary:        Mesa graphics libraries
 Summary(ja):    Mesa グラフィックスライブラリ
 Name:           mesa
-Version:        22.2.0
+Version:        23.1.8
 Release:        1%{?_dist_release}
 Group:          system
 Vendor:         Project Vine
@@ -55,6 +54,11 @@ Source0:        https://mesa.freedesktop.org/archive/%{name}-%{version}.tar.xz
 # Fedora opts to ignore the optional part of clause 2 and treat that code as 2 clause BSD.
 Source4:        Mesa-MLAA-License-Clarification-Email.txt
 
+Patch10:        gnome-shell-glthread-disable.patch
+
+# from upstream
+Patch1000:      mesa-llvm17.patch
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: meson
 BuildRequires: pkgconfig
@@ -77,6 +81,7 @@ BuildRequires: libXi-devel
 BuildRequires: libXmu-devel
 BuildRequires: libXrandr-devel
 BuildRequires: libxshmfence-devel
+BuildRequires: libzstd-devel
 BuildRequires: eudev-libudev-devel
 BuildRequires: llvm-devel >= 9.0.0
 %if 0%{?with_opencl}
@@ -431,6 +436,7 @@ Headers for development with the Vulkan API.
 
 %prep
 %setup -n %{name}-%{version}
+%autopatch -p1
 
 cp %{SOURCE4} docs/
 
@@ -446,12 +452,11 @@ export PYTHON=%{__pythpn3}
 %endif
   -Ddri3=enabled \
 %if 0%{?with_hardware}
-  -Dgallium-drivers=swrast,virgl,nouveau%{?with_r300:,r300}%{?with_crocus:,crocus}%{?with_iris:,iris}%{?with_vmware:,svga}%{?with_radeonsi:,radeonsi}%{?with_r600:,r600}%{?with_freedreno:,freedreno}%{?with_etnaviv:,etnaviv}%{?with_tegra:,tegra}%{?with_vc4:,vc4}%{?with_v3d:,v3d}%{?with_kmsro:,kmsro}%{?with_lima:,lima}%{?with_panfrost:,panfrost}%{?with_vulkan:,zink} \
+  -Dgallium-drivers=swrast,virgl,nouveau%{?with_r300:,r300}%{?with_crocus:,crocus}%{?with_i915:,i915}%{?with_iris:,iris}%{?with_vmware:,svga}%{?with_radeonsi:,radeonsi}%{?with_r600:,r600}%{?with_freedreno:,freedreno}%{?with_etnaviv:,etnaviv}%{?with_tegra:,tegra}%{?with_vc4:,vc4}%{?with_v3d:,v3d}%{?with_kmsro:,kmsro}%{?with_lima:,lima}%{?with_panfrost:,panfrost}%{?with_vulkan:,zink} \
 %else
   -Dgallium-drivers=swrast,virgl \
 %endif
   -Dgallium-vdpau=%{?with_vdpau:enabled}%{!?with_vdpau:disabled} \
-  -Dgallium-xvmc=disabled \
   -Dgallium-omx=%{?with_omx:bellagio}%{!?with_omx:disabled} \
   -Dgallium-va=%{?with_vaapi:enabled}%{!?with_vaapi:disabled} \
   -Dgallium-xa=%{?with_xa:enabled}%{!?with_xa:disabled} \
@@ -478,6 +483,9 @@ export PYTHON=%{__pythpn3}
   -Dbuild-tests=false \
   -Dselinux=false \
   -Dosmesa=true \
+  -Dandroid-libbacktrace=disabled \
+  -Dlibunwind=disabled \
+  -Dlmsensors=disabled \
   %{nil}
 %meson_build
 
@@ -545,8 +553,8 @@ mkdir -p $RPM_BUILD_ROOT/%{mesasourcedir}
 
 %files libEGL-devel
 %dir %{_includedir}/EGL
+%{_includedir}/EGL/eglext_angle.h
 %{_includedir}/EGL/eglmesaext.h
-%{_includedir}/EGL/eglextchromium.h
 
 %files libOSMesa
 %{_libdir}/libOSMesa.so.8*
@@ -605,9 +613,9 @@ mkdir -p $RPM_BUILD_ROOT/%{mesasourcedir}
 
 %files vdpau-drivers
 %{_libdir}/vdpau/libvdpau_nouveau.so.1*
-%{_libdir}/vdpau/libvdpau_r300.so.1*
 %{_libdir}/vdpau/libvdpau_r600.so.1*
 %{_libdir}/vdpau/libvdpau_radeonsi.so.1*
+%{_libdir}/vdpau/libvdpau_virtio_gpu.so.1*
 
 %if %{with vulkan}
 %files vulkan-drivers
@@ -619,6 +627,8 @@ mkdir -p $RPM_BUILD_ROOT/%{mesasourcedir}
 %ifarch %{ix86} x86_64
 %{_libdir}/libvulkan_intel.so
 %{_datadir}/vulkan/icd.d/intel_icd.*.json
+%{_libdir}/libvulkan_intel_hasvk.so
+%{_datadir}/vulkan/icd.d/intel_hasvk_icd.*.json
 %endif
 %{_libdir}/libvulkan_radeon.so
 %{_datadir}/vulkan/icd.d/radeon_icd.*.json
@@ -674,6 +684,14 @@ mkdir -p $RPM_BUILD_ROOT/%{mesasourcedir}
 
 
 %changelog
+* Sun Oct 01 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 23.1.8-1
+- updated to 23.1.8.
+- built with llvm-17.
+
+* Mon May 29 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 23.1.1-1
+- updated to 23.1.1.
+- built with llvm-16.
+
 * Thu Sep 22 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 22.2.0-1
 - updated to 22.1.5.
 - built with llvm-15.

+ 22 - 6
r/rust/rust-vl.spec

@@ -9,7 +9,7 @@
 # Some sub-packages are versioned independently of the rust compiler and runtime itself.
 # Also beware that if any of these are not changed in a version bump, then the release
 # number should still increase, not be reset to 1!
-%global rustc_version 1.69.0
+%global rustc_version 1.73.0
 %global cargo_version %{rustc_version}
 %global rustfmt_version %{rustc_version}
 %global rls_version %{rustc_version}
@@ -25,8 +25,8 @@
 # To bootstrap from scratch, set the channel and date from src/stage0.txt
 # e.g. 1.10.0 wants rustc: 1.9.0-2016-05-24
 # or nightly wants some beta-YYYY-MM-DD
-%global bootstrap_rust 1.68.2
-%global bootstrap_cargo 1.68.2
+%global bootstrap_rust 1.72.1
+%global bootstrap_cargo 1.72.1
 %global bootstrap_channel %{bootstrap_rust}
 
 # Only the specified arches will use bootstrap binaries.
@@ -534,8 +534,8 @@ export RUSTFLAGS="$RUSTFLAGS -C linker=clang -C link-arg=-fuse-ld=lld"
   --release-description="Vine Linux %{version}-%{release}" \
   %{nil}
 
-RUST_BACKTRACE=1 %{__python3} ./x.py build -j "$ncpus" --stage 2
-%{__python3} ./x.py doc --stage 2
+%{__python3} ./x.py build -j "$ncpus"
+%{__python3} ./x.py doc
 
 
 %install
@@ -614,6 +614,8 @@ mkdir -p %{buildroot}%{_datadir}/cargo/registry
 mkdir -p %{buildroot}%{_docdir}/cargo
 ln -sT ../rust/html/cargo/ %{buildroot}%{_docdir}/cargo/html
 
+rm -f %{buildroot}%{_bindir}/*.old
+
 %if %{without lldb}
 rm -f %{buildroot}%{_bindir}/rust-lldb
 rm -f %{buildroot}%{rustlibdir}/etc/lldb_*.py*
@@ -699,7 +701,6 @@ export RUSTFLAGS="$RUSTFLAGS -C linker=ld.lld -C link-arg=-fuse-ld=lld"
 %license src/tools/cargo/LICENSE-APACHE src/tools/cargo/LICENSE-MIT src/tools/cargo/LICENSE-THIRD-PARTY
 %doc src/tools/cargo/README.md
 %{_bindir}/cargo
-%{_libexecdir}/cargo*
 %{_mandir}/man1/cargo*.1*
 %dir %{_sysconfdir}/bash_completion.d
 %{_sysconfdir}/bash_completion.d/cargo
@@ -742,6 +743,21 @@ export RUSTFLAGS="$RUSTFLAGS -C linker=ld.lld -C link-arg=-fuse-ld=lld"
 
 
 %changelog
+* Fri Oct 06 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.73.0-1
+- new upstream release.
+
+* Sun Oct 01 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.72.1-1
+- new upstream release.
+
+* Fri Aug 25 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.72.0-1
+- new upstream release.
+
+* Fri Jul 14 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.71.0-1
+- new upstream release.
+
+* Sun Jun 04 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.70.0-1
+- new upstream release.
+
 * Thu Apr 20 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.69.0-1
 - new upstream release.
 - dropped rust-analysis.