Accepting request 1221298 from devel:languages:rust

OBS-URL: https://build.opensuse.org/request/show/1221298
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rust1.82?expand=0&rev=2
This commit is contained in:
Ana Guerrero 2024-11-05 14:39:50 +00:00 committed by Git OBS Bridge
commit 7f683e03fe
3 changed files with 23 additions and 1 deletions

14
ppc64le-float.patch Normal file
View File

@ -0,0 +1,14 @@
diff -rupN rustc-1.82.0-src.orig/src/llvm-project/llvm/lib/Analysis/ConstantFolding.cpp rustc-1.82.0-src/src/llvm-project/llvm/lib/Analysis/ConstantFolding.cpp
--- rustc-1.82.0-src.orig/src/llvm-project/llvm/lib/Analysis/ConstantFolding.cpp
+++ rustc-1.82.0-src/src/llvm-project/llvm/lib/Analysis/ConstantFolding.cpp
@@ -1784,8 +1784,8 @@ Constant *ConstantFoldFP(double (*Native
}
#if defined(HAS_IEE754_FLOAT128) && defined(HAS_LOGF128)
-Constant *ConstantFoldFP128(long double (*NativeFP)(long double),
- const APFloat &V, Type *Ty) {
+Constant *ConstantFoldFP128(float128 (*NativeFP)(float128), const APFloat &V,
+ Type *Ty) {
llvm_fenv_clearexcept();
float128 Result = NativeFP(V.convertToQuad());
if (llvm_fenv_testexcept()) {

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 5 03:41:46 UTC 2024 - William Brown <william.brown@suse.com>
- Resolve build failure on PPC64LE due to invalid float cast
* ppc64le-float.patch
-------------------------------------------------------------------
Tue Oct 22 02:58:38 UTC 2024 - William Brown <william.brown@suse.com>

View File

@ -1,5 +1,5 @@
#
# spec file for package rust1.81
# spec file for package rust1.82
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2019 Luke Jones, luke@ljones.dev
@ -267,8 +267,10 @@ Source209: %{dl_url}/rust-%{version_current}-riscv64gc-unknown-linux-gnu.ta
NoSource: 209
# Make factory-auto stop complaining...
Source1000: README.suse-maint
# PATCH-FIX-OPENSUSE: edit src/librustc_llvm/build.rs to ignore GCC incompatible flag
Patch0: ignore-Wstring-conversion.patch
Patch1: ppc64le-float.patch
# IMPORTANT - To generate patches for submodules in git so they apply relatively you can use
# git format-patch --text --dst-prefix=b/src/tools/cargo/ HEAD~2