Compare commits
5 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| bda8bd3631 | |||
| b8b6479163 | |||
| 22aec448f4 | |||
| 357c69f397 | |||
| c3f7534b9d |
21
rust-build-onig_sys-as-C17.patch
Normal file
21
rust-build-onig_sys-as-C17.patch
Normal file
File diff suppressed because one or more lines are too long
@@ -1,3 +1,19 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 11 04:52:47 UTC 2025 - William Brown <william.brown@suse.com>
|
||||
|
||||
- Add wasm32-unknown-unknown support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 11 03:34:45 UTC 2025 - William Brown <william.brown@suse.com>
|
||||
|
||||
- Support SLE12 for Firefox LTS
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 4 18:21:31 UTC 2025 - Martin Jambor <mjambor@suse.com>
|
||||
|
||||
- Add rust-build-onig_sys-as-C17.patch so that the package can be
|
||||
built with GCC 15. [boo#1241943]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 10 07:40:08 UTC 2025 - William Brown <william.brown@suse.com>
|
||||
|
||||
@@ -26,7 +42,6 @@ Compiler
|
||||
- [Fix emission of `overflowing_literals` under certain macro environments.](https://github.com/rust-lang/rust/pull/136393)
|
||||
|
||||
Platform Support
|
||||
----------------
|
||||
- [Replace `i686-unknown-redox` target with `i586-unknown-redox`.](https://github.com/rust-lang/rust/pull/136698)
|
||||
- [Increase baseline CPU of `i686-unknown-hurd-gnu` to Pentium 4.](https://github.com/rust-lang/rust/pull/136700)
|
||||
- New tier 3 targets:
|
||||
@@ -54,7 +69,6 @@ Libraries
|
||||
- [On recent versions of Windows, `std::fs::remove_file` will now remove read-only files.](https://github.com/rust-lang/rust/pull/134679)
|
||||
|
||||
Stabilized APIs
|
||||
---------------
|
||||
|
||||
- [`{float}::next_down`](https://doc.rust-lang.org/stable/std/primitive.f64.html#method.next_down)
|
||||
- [`{float}::next_up`](https://doc.rust-lang.org/stable/std/primitive.f64.html#method.next_up)
|
||||
@@ -92,7 +106,6 @@ Rustdoc
|
||||
- [Add a sans-serif font setting.](https://github.com/rust-lang/rust/pull/133636)
|
||||
|
||||
Compatibility Notes
|
||||
-------------------
|
||||
- [The `wasm_c_abi` future compatibility warning is now a hard error.](https://github.com/rust-lang/rust/pull/133951)
|
||||
Users of `wasm-bindgen` should upgrade to at least version 0.2.89, otherwise compilation will fail.
|
||||
- [Remove long-deprecated no-op attributes `#![no_start]` and `#![crate_id]`.](https://github.com/rust-lang/rust/pull/134300)
|
||||
@@ -101,7 +114,6 @@ Compatibility Notes
|
||||
To compile for pre-SSE2 32-bit x86, use a "i586" target instead.
|
||||
|
||||
Internal Changes
|
||||
----------------
|
||||
|
||||
These changes do not affect any public interfaces of Rust, but they represent
|
||||
significant improvements to the performance or internals of rustc and related
|
||||
|
||||
@@ -30,6 +30,13 @@
|
||||
%global need_gcc_version 13
|
||||
%endif
|
||||
|
||||
# Use correct python-version for SLE-12
|
||||
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000
|
||||
%define python python3.9
|
||||
%else
|
||||
%define python python3
|
||||
%endif
|
||||
|
||||
#KEEP NOSOURCE DEBUGINFO
|
||||
|
||||
%define obsolete_rust_versioned() \
|
||||
@@ -100,7 +107,7 @@ Obsoletes: %{1}1.62%{?2:-%{2}}
|
||||
%global rust_triple %{rust_arch}-unknown-linux-%{abi}
|
||||
|
||||
# Web Assembly targets
|
||||
%define rust_wasm_targets %{?with_wasi:,wasm32-wasip1}
|
||||
%define rust_wasm_targets %{?with_wasi:,wasm32-wasip1,wasm32-unknown-unknown}
|
||||
|
||||
# Base Rust targets for all architectures
|
||||
%define rust_base_targets %{rust_triple}%{rust_wasm_targets}
|
||||
@@ -286,6 +293,9 @@ Patch0: ignore-Wstring-conversion.patch
|
||||
Patch3: 0001-Disable-pidfs-tests-for-15SP3.patch
|
||||
%endif
|
||||
|
||||
# PATCH-FIX-OPENSUSE boo#1241943 - obsoleted by upstream github.com/rust-lang/rust/pull/141684
|
||||
Patch4: rust-build-onig_sys-as-C17.patch
|
||||
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: curl
|
||||
# BUG - fdupes on leap/sle causes issues with debug info
|
||||
@@ -294,7 +304,11 @@ BuildRequires: fdupes
|
||||
%endif
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: procps
|
||||
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} < 150000
|
||||
BuildRequires: python39-base
|
||||
%else
|
||||
BuildRequires: python3-base
|
||||
%endif
|
||||
BuildRequires: util-linux
|
||||
BuildRequires: pkgconfig(libcurl)
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
@@ -468,7 +482,7 @@ rm -rf src/tools/clang
|
||||
rm -rf src/tools/lldb
|
||||
|
||||
# Fix rpmlint error "This script uses 'env' as an interpreter"
|
||||
sed -i '1s|#!%{_bindir}/env python|#!%{_bindir}/python3|' library/core/src/unicode/printable.py
|
||||
sed -i '1s|#!%{_bindir}/env python|#!%{_bindir}/%{python}|' library/core/src/unicode/printable.py
|
||||
chmod +x library/core/src/unicode/printable.py
|
||||
|
||||
%if %{with wasi}
|
||||
@@ -590,7 +604,7 @@ RUSTC_LOG=rustc_codegen_ssa::back::link=info %{rust_root}/bin/rustc -C link-args
|
||||
# the same version (they did previous ver)
|
||||
|
||||
%if %{without test}
|
||||
python3 ./x.py build
|
||||
%{python} ./x.py build
|
||||
# Debug for post build
|
||||
free -h
|
||||
df -h
|
||||
@@ -601,7 +615,7 @@ df -h
|
||||
%if %{without test}
|
||||
. ./.env.sh
|
||||
|
||||
python3 ./x.py install
|
||||
%{python} ./x.py install
|
||||
|
||||
# bsc#1199126 - rust-lld contains an rpath, which is invalid.
|
||||
chrpath -d %{buildroot}%{rustlibdir}/%{rust_triple}/bin/rust-lld
|
||||
@@ -676,7 +690,7 @@ ln -s %{rust_root} %{_builddir}/rustc-%{version}-src/build/%{rust_triple}/stage0
|
||||
# Exclude mte-ffi as aarch64-linux-gnu-gcc isn't available
|
||||
|
||||
%ifarch aarch64
|
||||
python3 ./x.py test --target=%{rust_triple} \
|
||||
%{python} ./x.py test --target=%{rust_triple} \
|
||||
--exclude tests/run-make/issue-71519 \
|
||||
--exclude tests/run-make/pgo-branch-weights \
|
||||
--exclude src/tools/tidy \
|
||||
@@ -691,7 +705,7 @@ python3 ./x.py test --target=%{rust_triple} \
|
||||
--exclude tests/run-make/linker-warning \
|
||||
--exclude src/bootstrap
|
||||
%else
|
||||
python3 ./x.py test --target=%{rust_triple} \
|
||||
%{python} ./x.py test --target=%{rust_triple} \
|
||||
--exclude tests/run-make/issue-71519 \
|
||||
--exclude tests/run-make/pgo-branch-weights \
|
||||
--exclude src/tools/tidy \
|
||||
@@ -749,6 +763,9 @@ python3 ./x.py test --target=%{rust_triple} \
|
||||
%{rustlibdir}/wasm32-wasip1/lib/*.rlib
|
||||
%{rustlibdir}/wasm32-wasip1/lib/self-contained/*.o
|
||||
%{rustlibdir}/wasm32-wasip1/lib/self-contained/*.a
|
||||
%dir %{rustlibdir}/wasm32-unknown-unknown
|
||||
%dir %{rustlibdir}/wasm32-unknown-unknown/lib
|
||||
%{rustlibdir}/wasm32-unknown-unknown/lib/*.rlib
|
||||
%endif
|
||||
%ifarch x86_64
|
||||
%dir %{rustlibdir}/x86_64-unknown-none
|
||||
|
||||
Reference in New Issue
Block a user