Go to file
2024-12-20 16:12:04 +01:00
_constraints Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
_multibuild Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
_service Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
.gitattributes Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
0001-Disable-pidfs-tests-for-15SP3.patch Sync from SUSE:SLFO:Main rust1.81 revision 71f6bddcfe3775bc32c949a5ddfe5527 2024-12-20 16:12:04 +01:00
ignore-Wstring-conversion.patch Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
README.suse-maint Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust1.81-rpmlintrc Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust1.81.changes Sync from SUSE:SLFO:Main rust1.81 revision 71f6bddcfe3775bc32c949a5ddfe5527 2024-12-20 16:12:04 +01:00
rust1.81.spec Sync from SUSE:SLFO:Main rust1.81 revision 71f6bddcfe3775bc32c949a5ddfe5527 2024-12-20 16:12:04 +01:00
rust-1.81.0-aarch64-unknown-linux-gnu.tar.xz Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-aarch64-unknown-linux-gnu.tar.xz.asc Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-arm-unknown-linux-gnueabihf.tar.xz Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-arm-unknown-linux-gnueabihf.tar.xz.asc Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-armv7-unknown-linux-gnueabihf.tar.xz Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-armv7-unknown-linux-gnueabihf.tar.xz.asc Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-i686-unknown-linux-gnu.tar.xz Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-i686-unknown-linux-gnu.tar.xz.asc Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-powerpc64-unknown-linux-gnu.tar.xz Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-powerpc64-unknown-linux-gnu.tar.xz.asc Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-powerpc64le-unknown-linux-gnu.tar.xz Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-powerpc64le-unknown-linux-gnu.tar.xz.asc Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-powerpc-unknown-linux-gnu.tar.xz Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-powerpc-unknown-linux-gnu.tar.xz.asc Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-riscv64gc-unknown-linux-gnu.tar.xz Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-riscv64gc-unknown-linux-gnu.tar.xz.asc Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-s390x-unknown-linux-gnu.tar.xz Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-s390x-unknown-linux-gnu.tar.xz.asc Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-x86_64-unknown-linux-gnu.tar.xz Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust-1.81.0-x86_64-unknown-linux-gnu.tar.xz.asc Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rust.keyring Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00
rustc-1.81.0-src.tar.xz Sync from SUSE:SLFO:Main rust1.81 revision 16d1dea4c1354add88aa9d4c32fe8e42 2024-09-20 16:10:58 +02:00

# Automatic updating via _service

Edit the rustX.YY.spec file, and update the variables related with the
version:

- *version_suffix*: for the new version of Rust, in X.YY format
- *version_current*: for the new version of Rust, in X.YY.Z format
- *version_previous*: for the previous version of Rust, in X.YY.X
   format

Generate the spec files for the different bootstrap compilers.  This
will take the version from the main spec file.

  ./update-bootstrap.sh

After that, we can execute the service file:

  osc service disabledrun

This will download the new bootstrap compilers and the signature file.

If `osc` complains about a missing service component, double check
that the components are installed. For example, for Tumbleweed:

  zypper in obs-service-download_files obs-service-refresh_patches

Finally, update the changelog based on the releases notes:

  https://github.com/rust-lang/rust/blob/master/RELEASES.md

# Updating to a new version from upstream

(Original link: https://en.opensuse.org/Rust)

Branch the rust package in the devel:languages:rust project.

You'll need to download precompiled binaries for the compiler used for
bootstrapping, and the actual source code for the compiler. In the
"Other Installation Methods" page listed below, note that it shows
links to .tar.gz packages and their .tar.gz.asc GPG signatures, but
.tar.xz versions are also available.

*Binaries for bootstrapping* - Go to the "Other Installation Methods"
page from rust-lang.org and scroll down to the "Standalone installers"
section. Download the following:

- rust-<version>-aarch64-unknown-linux-gnu.tar.xz
- rust-<version>-armv7-unknown-linux-gnueabihf.tar.xz
- rust-<version>-i686-unknown-linux-gnu.tar.xz
- rust-<version>-powerpc64le-unknown-linux-gnu.tar.xz
- rust-<version>-powerpc64-unknown-linux-gnu.tar.xz
- rust-<version>-s390x-unknown-linux-gnu.tar.xz
- rust-<version>-x86_64-unknown-linux-gnu.tar.xz

*Compiler source code* - From the same page, but now in the "Source
code" section, download this:

  rustc-<version>-src.tar.xz

Update those files in the source RPM. Check that all the patches still
apply.

Update the version number in rust.spec.

Add the release notes to rust.changes.

# Running the tests locally

The tests are executed outside the main package using the _multibuild
feature of OBS.  This is convenient for several reasons:

* We force the installation of the new rustc / cargo in the system

* All the test / bootstrabs and utilities are compiled using the new
  compiler, and not the one used to generate the initial Rust
  compiler.

* A test fail do not block the release.  Upstream tests can be
  affected by some environment application, and there is some delay
  for the fix.

The tests can be run with:

  osc build -M test

This will install the Rust compiler from OBS, so is a good idea that
we have them available.

If some test fail, we can enter the chroot to debug it:

  osc shell

There is more information about the test infrastructure here:

  https://rustc-dev-guide.rust-lang.org/tests/intro.html