1e9ce7
# Only x86_64 and i686 are Tier 1 platforms at this time.
1e9ce7
# https://doc.rust-lang.org/nightly/rustc/platform-support.html
1e9ce7
%global rust_arches x86_64 i686 aarch64 ppc64le s390x
1e9ce7
1e9ce7
# The channel can be stable, beta, or nightly
1e9ce7
%{!?channel: %global channel stable}
1e9ce7
1e9ce7
# To bootstrap from scratch, set the channel and date from src/stage0.json
1e9ce7
# e.g. 1.10.0 wants rustc: 1.9.0-2016-05-24
1e9ce7
# or nightly wants some beta-YYYY-MM-DD
1e9ce7
# Note that cargo matches the program version here, not its crate version.
1e9ce7
%global bootstrap_rust 1.57.0
1e9ce7
%global bootstrap_cargo 1.57.0
1e9ce7
%global bootstrap_channel 1.57.0
1e9ce7
%global bootstrap_date 2021-12-02
1e9ce7
1e9ce7
# Only the specified arches will use bootstrap binaries.
1e9ce7
#global bootstrap_arches %%{rust_arches}
1e9ce7
1e9ce7
# Define a space-separated list of targets to ship rust-std-static-$triple for
1e9ce7
# cross-compilation. The packages are noarch, but they're not fully
1e9ce7
# reproducible between hosts, so only x86_64 actually builds it.
1e9ce7
%ifarch x86_64
1e9ce7
%if 0%{?fedora}
1e9ce7
%global mingw_targets i686-pc-windows-gnu x86_64-pc-windows-gnu
1e9ce7
%endif
1e9ce7
%if 0%{?fedora} || 0%{?rhel} >= 8
1e9ce7
%global wasm_targets wasm32-unknown-unknown wasm32-wasi
1e9ce7
%endif
1e9ce7
%endif
1e9ce7
1e9ce7
# We need CRT files for *-wasi targets, at least as new as the commit in
1e9ce7
# src/ci/docker/host-x86_64/dist-various-2/build-wasi-toolchain.sh
1e9ce7
%global wasi_libc_url https://github.com/WebAssembly/wasi-libc
1e9ce7
%global wasi_libc_commit ad5133410f66b93a2381db5b542aad5e0964db96
1e9ce7
%global wasi_libc_name wasi-libc-%{wasi_libc_commit}
1e9ce7
%global wasi_libc_source %{wasi_libc_url}/archive/%{wasi_libc_commit}/%{wasi_libc_name}.tar.gz
1e9ce7
%global wasi_libc_dir %{_builddir}/%{wasi_libc_name}
1e9ce7
1e9ce7
# Using llvm-static may be helpful as an opt-in, e.g. to aid LLVM rebases.
1e9ce7
%bcond_with llvm_static
1e9ce7
1e9ce7
# We can also choose to just use Rust's bundled LLVM, in case the system LLVM
1e9ce7
# is insufficient.  Rust currently requires LLVM 12.0+.
1e9ce7
%global min_llvm_version 12.0.0
1e9ce7
%global bundled_llvm_version 13.0.0
1e9ce7
%bcond_with bundled_llvm
1e9ce7
1e9ce7
# Requires stable libgit2 1.3
1e9ce7
%global min_libgit2_version 1.3.0
1e9ce7
%global bundled_libgit2_version 1.3.0
1e9ce7
%if 0%{?fedora} >= 36
1e9ce7
%bcond_with bundled_libgit2
1e9ce7
%else
1e9ce7
%bcond_without bundled_libgit2
1e9ce7
%endif
1e9ce7
1e9ce7
# needs libssh2_userauth_publickey_frommemory
1e9ce7
%global min_libssh2_version 1.6.0
1e9ce7
%if 0%{?rhel}
1e9ce7
# Disable cargo->libgit2->libssh2 on RHEL, as it's not approved for FIPS (rhbz1732949)
1e9ce7
%bcond_without disabled_libssh2
1e9ce7
%else
1e9ce7
%bcond_with disabled_libssh2
1e9ce7
%endif
1e9ce7
1e9ce7
%if 0%{?rhel} && 0%{?rhel} < 8
1e9ce7
%bcond_with curl_http2
1e9ce7
%else
1e9ce7
%bcond_without curl_http2
1e9ce7
%endif
1e9ce7
1e9ce7
# LLDB isn't available everywhere...
1e9ce7
%if 0%{?rhel} && 0%{?rhel} < 8
1e9ce7
%bcond_with lldb
1e9ce7
%else
1e9ce7
%bcond_without lldb
1e9ce7
%endif
1e9ce7
1e9ce7
Name:           rust
1e9ce7
Version:        1.58.1
1e9ce7
Release:        1%{?dist}
1e9ce7
Summary:        The Rust Programming Language
1e9ce7
License:        (ASL 2.0 or MIT) and (BSD and MIT)
1e9ce7
# ^ written as: (rust itself) and (bundled libraries)
1e9ce7
URL:            https://www.rust-lang.org
1e9ce7
ExclusiveArch:  %{rust_arches}
1e9ce7
1e9ce7
%if "%{channel}" == "stable"
1e9ce7
%global rustc_package rustc-%{version}-src
1e9ce7
%else
1e9ce7
%global rustc_package rustc-%{channel}-src
1e9ce7
%endif
1e9ce7
Source0:        https://static.rust-lang.org/dist/%{rustc_package}.tar.xz
1e9ce7
Source1:        %{wasi_libc_source}
1e9ce7
# Sources for bootstrap_arches are inserted by lua below
1e9ce7
1e9ce7
# By default, rust tries to use "rust-lld" as a linker for WebAssembly.
1e9ce7
Patch1:         0001-Use-lld-provided-by-system-for-wasm.patch
1e9ce7
1e9ce7
### RHEL-specific patches below ###
1e9ce7
1e9ce7
# Disable cargo->libgit2->libssh2 on RHEL, as it's not approved for FIPS (rhbz1732949)
1e9ce7
Patch100:       rustc-1.56.0-disable-libssh2.patch
1e9ce7
1e9ce7
# libcurl on RHEL7 doesn't have http2, but since cargo requests it, curl-sys
1e9ce7
# will try to build it statically -- instead we turn off the feature.
1e9ce7
Patch101:       rustc-1.58.0-disable-http2.patch
1e9ce7
1e9ce7
# kernel rh1410097 causes too-small stacks for PIE.
1e9ce7
# (affects RHEL6 kernels when building for RHEL7)
1e9ce7
Patch102:       rustc-1.58.0-no-default-pie.patch
1e9ce7
1e9ce7
1e9ce7
# Get the Rust triple for any arch.
1e9ce7
%{lua: function rust_triple(arch)
1e9ce7
  local abi = "gnu"
1e9ce7
  if arch == "armv7hl" then
1e9ce7
    arch = "armv7"
1e9ce7
    abi = "gnueabihf"
1e9ce7
  elseif arch == "ppc64" then
1e9ce7
    arch = "powerpc64"
1e9ce7
  elseif arch == "ppc64le" then
1e9ce7
    arch = "powerpc64le"
1e9ce7
  elseif arch == "riscv64" then
1e9ce7
    arch = "riscv64gc"
1e9ce7
  end
1e9ce7
  return arch.."-unknown-linux-"..abi
1e9ce7
end}
1e9ce7
1e9ce7
%global rust_triple %{lua: print(rust_triple(rpm.expand("%{_target_cpu}")))}
1e9ce7
1e9ce7
%if %defined bootstrap_arches
1e9ce7
# For each bootstrap arch, add an additional binary Source.
1e9ce7
# Also define bootstrap_source just for the current target.
1e9ce7
%{lua: do
1e9ce7
  local bootstrap_arches = {}
1e9ce7
  for arch in string.gmatch(rpm.expand("%{bootstrap_arches}"), "%S+") do
1e9ce7
    table.insert(bootstrap_arches, arch)
1e9ce7
  end
1e9ce7
  local base = rpm.expand("https://static.rust-lang.org/dist/%{bootstrap_date}"
1e9ce7
                          .."/rust-%{bootstrap_channel}")
1e9ce7
  local target_arch = rpm.expand("%{_target_cpu}")
1e9ce7
  for i, arch in ipairs(bootstrap_arches) do
1e9ce7
    i = 100 + i
1e9ce7
    print(string.format("Source%d: %s-%s.tar.xz\n",
1e9ce7
                        i, base, rust_triple(arch)))
1e9ce7
    if arch == target_arch then
1e9ce7
      rpm.define("bootstrap_source "..i)
1e9ce7
    end
1e9ce7
  end
1e9ce7
end}
1e9ce7
%endif
1e9ce7
1e9ce7
%ifarch %{bootstrap_arches}
1e9ce7
%global bootstrap_root rust-%{bootstrap_channel}-%{rust_triple}
1e9ce7
%global local_rust_root %{_builddir}/%{bootstrap_root}/usr
1e9ce7
Provides:       bundled(%{name}-bootstrap) = %{bootstrap_rust}
1e9ce7
%else
1e9ce7
BuildRequires:  cargo >= %{bootstrap_cargo}
1e9ce7
%if 0%{?rhel} && 0%{?rhel} < 8
1e9ce7
BuildRequires:  %{name} >= %{bootstrap_rust}
1e9ce7
BuildConflicts: %{name} > %{version}
1e9ce7
%else
1e9ce7
BuildRequires:  (%{name} >= %{bootstrap_rust} with %{name} <= %{version})
1e9ce7
%endif
1e9ce7
%global local_rust_root %{_prefix}
1e9ce7
%endif
1e9ce7
1e9ce7
BuildRequires:  make
1e9ce7
BuildRequires:  gcc
1e9ce7
BuildRequires:  gcc-c++
1e9ce7
BuildRequires:  ncurses-devel
1e9ce7
# explicit curl-devel to avoid httpd24-curl (rhbz1540167)
1e9ce7
BuildRequires:  curl-devel
1e9ce7
BuildRequires:  pkgconfig(libcurl)
1e9ce7
BuildRequires:  pkgconfig(liblzma)
1e9ce7
BuildRequires:  pkgconfig(openssl)
1e9ce7
BuildRequires:  pkgconfig(zlib)
1e9ce7
1e9ce7
%if %{without bundled_libgit2}
1e9ce7
BuildRequires:  pkgconfig(libgit2) >= %{min_libgit2_version}
1e9ce7
%endif
1e9ce7
1e9ce7
%if %{without disabled_libssh2}
1e9ce7
BuildRequires:  pkgconfig(libssh2) >= %{min_libssh2_version}
1e9ce7
%endif
1e9ce7
1e9ce7
%if 0%{?rhel} == 8
1e9ce7
BuildRequires:  platform-python
1e9ce7
%else
1e9ce7
BuildRequires:  python3
1e9ce7
%endif
1e9ce7
BuildRequires:  python3-rpm-macros
1e9ce7
1e9ce7
%if %with bundled_llvm
1e9ce7
BuildRequires:  cmake3 >= 3.13.4
1e9ce7
BuildRequires:  ninja-build
1e9ce7
Provides:       bundled(llvm) = %{bundled_llvm_version}
1e9ce7
%else
1e9ce7
BuildRequires:  cmake >= 2.8.11
1e9ce7
%if 0%{?epel} == 7
1e9ce7
%global llvm llvm13
1e9ce7
%endif
1e9ce7
%if %defined llvm
1e9ce7
%global llvm_root %{_libdir}/%{llvm}
1e9ce7
%else
1e9ce7
%global llvm llvm
1e9ce7
%global llvm_root %{_prefix}
1e9ce7
%endif
1e9ce7
BuildRequires:  %{llvm}-devel >= %{min_llvm_version}
1e9ce7
%if %with llvm_static
1e9ce7
BuildRequires:  %{llvm}-static
1e9ce7
BuildRequires:  libffi-devel
1e9ce7
%endif
1e9ce7
%endif
1e9ce7
1e9ce7
# make check needs "ps" for src/test/ui/wait-forked-but-failed-child.rs
1e9ce7
BuildRequires:  procps-ng
1e9ce7
1e9ce7
# debuginfo-gdb tests need gdb
1e9ce7
BuildRequires:  gdb
1e9ce7
1e9ce7
# Virtual provides for folks who attempt "dnf install rustc"
1e9ce7
Provides:       rustc = %{version}-%{release}
1e9ce7
Provides:       rustc%{?_isa} = %{version}-%{release}
1e9ce7
1e9ce7
# Always require our exact standard library
1e9ce7
Requires:       %{name}-std-static%{?_isa} = %{version}-%{release}
1e9ce7
1e9ce7
# The C compiler is needed at runtime just for linking.  Someday rustc might
1e9ce7
# invoke the linker directly, and then we'll only need binutils.
1e9ce7
# https://github.com/rust-lang/rust/issues/11937
1e9ce7
Requires:       /usr/bin/cc
1e9ce7
1e9ce7
%if 0%{?epel} == 7
1e9ce7
%global devtoolset_name devtoolset-9
1e9ce7
BuildRequires:  %{devtoolset_name}-binutils
1e9ce7
BuildRequires:  %{devtoolset_name}-gcc
1e9ce7
BuildRequires:  %{devtoolset_name}-gcc-c++
1e9ce7
%global devtoolset_bindir /opt/rh/%{devtoolset_name}/root/usr/bin
1e9ce7
%global __cc     %{devtoolset_bindir}/gcc
1e9ce7
%global __cxx    %{devtoolset_bindir}/g++
1e9ce7
%global __ar     %{devtoolset_bindir}/ar
1e9ce7
%global __ranlib %{devtoolset_bindir}/ranlib
1e9ce7
%global __strip  %{devtoolset_bindir}/strip
1e9ce7
%else
1e9ce7
%global __ranlib %{_bindir}/ranlib
1e9ce7
%endif
1e9ce7
1e9ce7
# ALL Rust libraries are private, because they don't keep an ABI.
1e9ce7
%global _privatelibs lib(.*-[[:xdigit:]]{16}*|rustc.*)[.]so.*
1e9ce7
%global __provides_exclude ^(%{_privatelibs})$
1e9ce7
%global __requires_exclude ^(%{_privatelibs})$
1e9ce7
%global __provides_exclude_from ^(%{_docdir}|%{rustlibdir}/src)/.*$
1e9ce7
%global __requires_exclude_from ^(%{_docdir}|%{rustlibdir}/src)/.*$
1e9ce7
1e9ce7
# While we don't want to encourage dynamic linking to Rust shared libraries, as
1e9ce7
# there's no stable ABI, we still need the unallocated metadata (.rustc) to
1e9ce7
# support custom-derive plugins like #[proc_macro_derive(Foo)].
1e9ce7
%if 0%{?rhel} && 0%{?rhel} < 8
1e9ce7
# eu-strip is very eager by default, so we have to limit it to -g, only debugging symbols.
1e9ce7
%global _find_debuginfo_opts -g
1e9ce7
%undefine _include_minidebuginfo
1e9ce7
%else
1e9ce7
# Newer find-debuginfo.sh supports --keep-section, which is preferable. rhbz1465997
1e9ce7
%global _find_debuginfo_opts --keep-section .rustc
1e9ce7
%endif
1e9ce7
1e9ce7
%if %{without bundled_llvm}
1e9ce7
%if "%{llvm_root}" == "%{_prefix}" || 0%{?scl:1}
1e9ce7
%global llvm_has_filecheck 1
1e9ce7
%endif
1e9ce7
%endif
1e9ce7
1e9ce7
# We're going to override --libdir when configuring to get rustlib into a
1e9ce7
# common path, but we'll fix the shared libraries during install.
1e9ce7
%global common_libdir %{_prefix}/lib
1e9ce7
%global rustlibdir %{common_libdir}/rustlib
1e9ce7
1e9ce7
%if %defined mingw_targets
1e9ce7
BuildRequires:  mingw32-filesystem >= 95
1e9ce7
BuildRequires:  mingw64-filesystem >= 95
1e9ce7
BuildRequires:  mingw32-gcc
1e9ce7
BuildRequires:  mingw64-gcc
1e9ce7
%endif
1e9ce7
1e9ce7
%if %defined wasm_targets
1e9ce7
BuildRequires:  clang
1e9ce7
# brp-strip-static-archive breaks the archive index for wasm
1e9ce7
%global __os_install_post \
1e9ce7
%__os_install_post \
1e9ce7
find '%{buildroot}%{rustlibdir}' -type f -path '*/wasm*/lib/*.rlib' -print -exec '%{llvm_root}/bin/llvm-ranlib' '{}' ';' \
1e9ce7
%{nil}
1e9ce7
%endif
1e9ce7
1e9ce7
%description
1e9ce7
Rust is a systems programming language that runs blazingly fast, prevents
1e9ce7
segfaults, and guarantees thread safety.
1e9ce7
1e9ce7
This package includes the Rust compiler and documentation generator.
1e9ce7
1e9ce7
1e9ce7
%package std-static
1e9ce7
Summary:        Standard library for Rust
1e9ce7
Requires:       %{name} = %{version}-%{release}
1e9ce7
Requires:       glibc-devel%{?_isa} >= 2.11
1e9ce7
1e9ce7
%description std-static
1e9ce7
This package includes the standard libraries for building applications
1e9ce7
written in Rust.
1e9ce7
1e9ce7
%if %defined mingw_targets
1e9ce7
%{lua: do
1e9ce7
  for triple in string.gmatch(rpm.expand("%{mingw_targets}"), "%S+") do
1e9ce7
    local subs = {
1e9ce7
      triple = triple,
1e9ce7
      name = rpm.expand("%{name}"),
1e9ce7
      verrel = rpm.expand("%{version}-%{release}"),
1e9ce7
      mingw = string.sub(triple, 1, 4) == "i686" and "mingw32" or "mingw64",
1e9ce7
    }
1e9ce7
    local s = string.gsub([[
1e9ce7
1e9ce7
%package std-static-{{triple}}
1e9ce7
Summary:        Standard library for Rust {{triple}}
1e9ce7
BuildArch:      noarch
1e9ce7
Provides:       {{mingw}}-rust = {{verrel}}
1e9ce7
Provides:       {{mingw}}-rustc = {{verrel}}
1e9ce7
Requires:       {{mingw}}-crt
1e9ce7
Requires:       {{mingw}}-gcc
1e9ce7
Requires:       {{mingw}}-winpthreads-static
1e9ce7
Requires:       {{name}} = {{verrel}}
1e9ce7
1e9ce7
%description std-static-{{triple}}
1e9ce7
This package includes the standard libraries for building applications
1e9ce7
written in Rust for the MinGW target {{triple}}.
1e9ce7
1e9ce7
]], "{{(%w+)}}", subs)
1e9ce7
    print(s)
1e9ce7
  end
1e9ce7
end}
1e9ce7
%endif
1e9ce7
1e9ce7
%if %defined wasm_targets
1e9ce7
%{lua: do
1e9ce7
  for triple in string.gmatch(rpm.expand("%{wasm_targets}"), "%S+") do
1e9ce7
    local subs = {
1e9ce7
      triple = triple,
1e9ce7
      name = rpm.expand("%{name}"),
1e9ce7
      verrel = rpm.expand("%{version}-%{release}"),
1e9ce7
      wasi = string.find(triple, "-wasi") and 1 or 0,
1e9ce7
    }
1e9ce7
    local s = string.gsub([[
1e9ce7
1e9ce7
%package std-static-{{triple}}
1e9ce7
Summary:        Standard library for Rust {{triple}}
1e9ce7
BuildArch:      noarch
1e9ce7
Requires:       {{name}} = {{verrel}}
1e9ce7
Requires:       lld >= 8.0
1e9ce7
%if {{wasi}}
1e9ce7
Provides:       bundled(wasi-libc)
1e9ce7
%endif
1e9ce7
1e9ce7
%description std-static-{{triple}}
1e9ce7
This package includes the standard libraries for building applications
1e9ce7
written in Rust for the WebAssembly target {{triple}}.
1e9ce7
1e9ce7
]], "{{(%w+)}}", subs)
1e9ce7
    print(s)
1e9ce7
  end
1e9ce7
end}
1e9ce7
%endif
1e9ce7
1e9ce7
1e9ce7
%package debugger-common
1e9ce7
Summary:        Common debugger pretty printers for Rust
1e9ce7
BuildArch:      noarch
1e9ce7
1e9ce7
%description debugger-common
1e9ce7
This package includes the common functionality for %{name}-gdb and %{name}-lldb.
1e9ce7
1e9ce7
1e9ce7
%package gdb
1e9ce7
Summary:        GDB pretty printers for Rust
1e9ce7
BuildArch:      noarch
1e9ce7
Requires:       gdb
1e9ce7
Requires:       %{name}-debugger-common = %{version}-%{release}
1e9ce7
1e9ce7
%description gdb
1e9ce7
This package includes the rust-gdb script, which allows easier debugging of Rust
1e9ce7
programs.
1e9ce7
1e9ce7
1e9ce7
%if %with lldb
1e9ce7
1e9ce7
%package lldb
1e9ce7
Summary:        LLDB pretty printers for Rust
1e9ce7
BuildArch:      noarch
1e9ce7
Requires:       lldb
1e9ce7
Requires:       python3-lldb
1e9ce7
Requires:       %{name}-debugger-common = %{version}-%{release}
1e9ce7
1e9ce7
%description lldb
1e9ce7
This package includes the rust-lldb script, which allows easier debugging of Rust
1e9ce7
programs.
1e9ce7
1e9ce7
%endif
1e9ce7
1e9ce7
1e9ce7
%package doc
1e9ce7
Summary:        Documentation for Rust
1e9ce7
# NOT BuildArch:      noarch
1e9ce7
# Note, while docs are mostly noarch, some things do vary by target_arch.
1e9ce7
# Koji will fail the build in rpmdiff if two architectures build a noarch
1e9ce7
# subpackage differently, so instead we have to keep its arch.
1e9ce7
1e9ce7
%description doc
1e9ce7
This package includes HTML documentation for the Rust programming language and
1e9ce7
its standard library.
1e9ce7
1e9ce7
1e9ce7
%package -n cargo
1e9ce7
Summary:        Rust's package manager and build tool
1e9ce7
%if %with bundled_libgit2
1e9ce7
Provides:       bundled(libgit2) = %{bundled_libgit2_version}
1e9ce7
%endif
1e9ce7
# For tests:
1e9ce7
BuildRequires:  git-core
1e9ce7
# Cargo is not much use without Rust
1e9ce7
Requires:       %{name}
1e9ce7
1e9ce7
# "cargo vendor" is a builtin command starting with 1.37.  The Obsoletes and
1e9ce7
# Provides are mostly relevant to RHEL, but harmless to have on Fedora/etc. too
1e9ce7
Obsoletes:      cargo-vendor <= 0.1.23
1e9ce7
Provides:       cargo-vendor = %{version}-%{release}
1e9ce7
1e9ce7
%description -n cargo
1e9ce7
Cargo is a tool that allows Rust projects to declare their various dependencies
1e9ce7
and ensure that you'll always get a repeatable build.
1e9ce7
1e9ce7
1e9ce7
%package -n cargo-doc
1e9ce7
Summary:        Documentation for Cargo
1e9ce7
BuildArch:      noarch
1e9ce7
# Cargo no longer builds its own documentation
1e9ce7
# https://github.com/rust-lang/cargo/pull/4904
1e9ce7
Requires:       %{name}-doc = %{version}-%{release}
1e9ce7
1e9ce7
%description -n cargo-doc
1e9ce7
This package includes HTML documentation for Cargo.
1e9ce7
1e9ce7
1e9ce7
%package -n rustfmt
1e9ce7
Summary:        Tool to find and fix Rust formatting issues
1e9ce7
Requires:       cargo
1e9ce7
1e9ce7
# The component/package was rustfmt-preview until Rust 1.31.
1e9ce7
Obsoletes:      rustfmt-preview < 1.0.0
1e9ce7
Provides:       rustfmt-preview = %{version}-%{release}
1e9ce7
1e9ce7
%description -n rustfmt
1e9ce7
A tool for formatting Rust code according to style guidelines.
1e9ce7
1e9ce7
1e9ce7
%package -n rls
1e9ce7
Summary:        Rust Language Server for IDE integration
1e9ce7
%if %with bundled_libgit2
1e9ce7
Provides:       bundled(libgit2) = %{bundled_libgit2_version}
1e9ce7
%endif
1e9ce7
Requires:       %{name}-analysis
1e9ce7
# /usr/bin/rls is dynamically linked against internal rustc libs
1e9ce7
Requires:       %{name}%{?_isa} = %{version}-%{release}
1e9ce7
1e9ce7
# The component/package was rls-preview until Rust 1.31.
1e9ce7
Obsoletes:      rls-preview < 1.31.6
1e9ce7
Provides:       rls-preview = %{version}-%{release}
1e9ce7
1e9ce7
%description -n rls
1e9ce7
The Rust Language Server provides a server that runs in the background,
1e9ce7
providing IDEs, editors, and other tools with information about Rust programs.
1e9ce7
It supports functionality such as 'goto definition', symbol search,
1e9ce7
reformatting, and code completion, and enables renaming and refactorings.
1e9ce7
1e9ce7
1e9ce7
%package -n clippy
1e9ce7
Summary:        Lints to catch common mistakes and improve your Rust code
1e9ce7
Requires:       cargo
1e9ce7
# /usr/bin/clippy-driver is dynamically linked against internal rustc libs
1e9ce7
Requires:       %{name}%{?_isa} = %{version}-%{release}
1e9ce7
1e9ce7
# The component/package was clippy-preview until Rust 1.31.
1e9ce7
Obsoletes:      clippy-preview <= 0.0.212
1e9ce7
Provides:       clippy-preview = %{version}-%{release}
1e9ce7
1e9ce7
%description -n clippy
1e9ce7
A collection of lints to catch common mistakes and improve your Rust code.
1e9ce7
1e9ce7
1e9ce7
%package src
1e9ce7
Summary:        Sources for the Rust standard library
1e9ce7
BuildArch:      noarch
1e9ce7
1e9ce7
%description src
1e9ce7
This package includes source files for the Rust standard library.  It may be
1e9ce7
useful as a reference for code completion tools in various editors.
1e9ce7
1e9ce7
1e9ce7
%package analysis
1e9ce7
Summary:        Compiler analysis data for the Rust standard library
1e9ce7
Requires:       %{name}-std-static%{?_isa} = %{version}-%{release}
1e9ce7
1e9ce7
%description analysis
1e9ce7
This package contains analysis data files produced with rustc's -Zsave-analysis
1e9ce7
feature for the Rust standard library. The RLS (Rust Language Server) uses this
1e9ce7
data to provide information about the Rust standard library.
1e9ce7
1e9ce7
1e9ce7
%prep
1e9ce7
1e9ce7
%ifarch %{bootstrap_arches}
1e9ce7
%setup -q -n %{bootstrap_root} -T -b %{bootstrap_source}
1e9ce7
./install.sh --components=cargo,rustc,rust-std-%{rust_triple} \
1e9ce7
  --prefix=%{local_rust_root} --disable-ldconfig
1e9ce7
test -f '%{local_rust_root}/bin/cargo'
1e9ce7
test -f '%{local_rust_root}/bin/rustc'
1e9ce7
%endif
1e9ce7
1e9ce7
%if %defined wasm_targets
1e9ce7
%setup -q -n %{wasi_libc_name} -T -b 1
1e9ce7
%endif
1e9ce7
1e9ce7
%setup -q -n %{rustc_package}
1e9ce7
1e9ce7
%patch1 -p1
1e9ce7
1e9ce7
%if %with disabled_libssh2
1e9ce7
%patch100 -p1
1e9ce7
%endif
1e9ce7
1e9ce7
%if %without curl_http2
1e9ce7
%patch101 -p1
1e9ce7
rm -rf vendor/libnghttp2-sys/
1e9ce7
%endif
1e9ce7
1e9ce7
%if 0%{?rhel} && 0%{?rhel} < 8
1e9ce7
%patch102 -p1
1e9ce7
%endif
1e9ce7
1e9ce7
# Use our explicit python3 first
1e9ce7
sed -i.try-python -e '/^try python3 /i try "%{__python3}" "$@"' ./configure
1e9ce7
1e9ce7
%if %without bundled_llvm
1e9ce7
rm -rf src/llvm-project/
1e9ce7
mkdir -p src/llvm-project/libunwind/
1e9ce7
%endif
1e9ce7
1e9ce7
# Remove other unused vendored libraries
1e9ce7
rm -rf vendor/curl-sys/curl/
1e9ce7
rm -rf vendor/jemalloc-sys/jemalloc/
1e9ce7
rm -rf vendor/libssh2-sys/libssh2/
1e9ce7
rm -rf vendor/libz-sys/src/zlib/
1e9ce7
rm -rf vendor/libz-sys/src/zlib-ng/
1e9ce7
rm -rf vendor/lzma-sys/xz-*/
1e9ce7
rm -rf vendor/openssl-src/openssl/
1e9ce7
1e9ce7
%if %without bundled_libgit2
1e9ce7
rm -rf vendor/libgit2-sys/libgit2/
1e9ce7
%endif
1e9ce7
1e9ce7
%if %with disabled_libssh2
1e9ce7
rm -rf vendor/libssh2-sys/
1e9ce7
%endif
1e9ce7
1e9ce7
# This only affects the transient rust-installer, but let it use our dynamic xz-libs
1e9ce7
sed -i.lzma -e '/LZMA_API_STATIC/d' src/bootstrap/tool.rs
1e9ce7
1e9ce7
%if %{with bundled_llvm} && 0%{?epel} == 7
1e9ce7
mkdir -p cmake-bin
1e9ce7
ln -s /usr/bin/cmake3 cmake-bin/cmake
1e9ce7
%global cmake_path $PWD/cmake-bin
1e9ce7
%endif
1e9ce7
1e9ce7
%if %{without bundled_llvm} && %{with llvm_static}
1e9ce7
# Static linking to distro LLVM needs to add -lffi
1e9ce7
# https://github.com/rust-lang/rust/issues/34486
1e9ce7
sed -i.ffi -e '$a #[link(name = "ffi")] extern {}' \
1e9ce7
  src/librustc_llvm/lib.rs
1e9ce7
%endif
1e9ce7
1e9ce7
# The configure macro will modify some autoconf-related files, which upsets
1e9ce7
# cargo when it tries to verify checksums in those files.  If we just truncate
1e9ce7
# that file list, cargo won't have anything to complain about.
1e9ce7
find vendor -name .cargo-checksum.json \
1e9ce7
  -exec sed -i.uncheck -e 's/"files":{[^}]*}/"files":{ }/' '{}' '+'
1e9ce7
1e9ce7
# Sometimes Rust sources start with #![...] attributes, and "smart" editors think
1e9ce7
# it's a shebang and make them executable. Then brp-mangle-shebangs gets upset...
1e9ce7
find -name '*.rs' -type f -perm /111 -exec chmod -v -x '{}' '+'
1e9ce7
1e9ce7
# Set up shared environment variables for build/install/check
1e9ce7
%global rust_env %{?rustflags:RUSTFLAGS="%{rustflags}"}
1e9ce7
%if 0%{?cmake_path:1}
1e9ce7
%global rust_env %{?rust_env} PATH="%{cmake_path}:$PATH"
1e9ce7
%endif
1e9ce7
%if %without disabled_libssh2
1e9ce7
# convince libssh2-sys to use the distro libssh2
1e9ce7
%global rust_env %{?rust_env} LIBSSH2_SYS_USE_PKG_CONFIG=1
1e9ce7
%endif
1e9ce7
%global export_rust_env %{?rust_env:export %{rust_env}}
1e9ce7
1e9ce7
1e9ce7
%build
1e9ce7
%{export_rust_env}
1e9ce7
1e9ce7
%ifarch %{arm} %{ix86} s390x
1e9ce7
# full debuginfo is exhausting memory; just do libstd for now
1e9ce7
# https://github.com/rust-lang/rust/issues/45854
1e9ce7
%if 0%{?rhel} && 0%{?rhel} < 8
1e9ce7
# Older rpmbuild didn't work with partial debuginfo coverage.
1e9ce7
%global debug_package %{nil}
1e9ce7
%define enable_debuginfo --debuginfo-level=0
1e9ce7
%else
1e9ce7
%define enable_debuginfo --debuginfo-level=0 --debuginfo-level-std=2
1e9ce7
%endif
1e9ce7
%else
1e9ce7
%define enable_debuginfo --debuginfo-level=2
1e9ce7
%endif
1e9ce7
1e9ce7
# Some builders have relatively little memory for their CPU count.
1e9ce7
# At least 2GB per CPU is a good rule of thumb for building rustc.
1e9ce7
ncpus=$(/usr/bin/getconf _NPROCESSORS_ONLN)
1e9ce7
max_cpus=$(( ($(free -g | awk '/^Mem:/{print $2}') + 1) / 2 ))
1e9ce7
if [ "$max_cpus" -ge 1 -a "$max_cpus" -lt "$ncpus" ]; then
1e9ce7
  ncpus="$max_cpus"
1e9ce7
fi
1e9ce7
1e9ce7
%define target_config %{shrink:
1e9ce7
  --set target.%{rust_triple}.linker=%{__cc}
1e9ce7
  --set target.%{rust_triple}.cc=%{__cc}
1e9ce7
  --set target.%{rust_triple}.cxx=%{__cxx}
1e9ce7
  --set target.%{rust_triple}.ar=%{__ar}
1e9ce7
  --set target.%{rust_triple}.ranlib=%{__ranlib}
1e9ce7
}
1e9ce7
1e9ce7
%if %defined mingw_targets
1e9ce7
%{lua: do
1e9ce7
  local cfg = ""
1e9ce7
  for triple in string.gmatch(rpm.expand("%{mingw_targets}"), "%S+") do
1e9ce7
    local subs = {
1e9ce7
      triple = triple,
1e9ce7
      mingw = string.sub(triple, 1, 4) == "i686" and "mingw32" or "mingw64",
1e9ce7
    }
1e9ce7
    local s = string.gsub([[%{shrink:
1e9ce7
      --set target.{{triple}}.linker=%{{{mingw}}_cc}
1e9ce7
      --set target.{{triple}}.cc=%{{{mingw}}_cc}
1e9ce7
      --set target.{{triple}}.ar=%{{{mingw}}_ar}
1e9ce7
      --set target.{{triple}}.ranlib=%{{{mingw}}_ranlib}
1e9ce7
    }]], "{{(%w+)}}", subs)
1e9ce7
    cfg = cfg .. " " .. s
1e9ce7
  end
1e9ce7
  rpm.define("mingw_target_config " .. cfg)
1e9ce7
end}
1e9ce7
%endif
1e9ce7
1e9ce7
%if %defined wasm_targets
1e9ce7
%make_build --quiet -C %{wasi_libc_dir}
1e9ce7
%{lua: do
1e9ce7
  local wasi_root = rpm.expand("%{wasi_libc_dir}") .. "/sysroot"
1e9ce7
  local cfg = ""
1e9ce7
  for triple in string.gmatch(rpm.expand("%{wasm_targets}"), "%S+") do
1e9ce7
    if string.find(triple, "-wasi") then
1e9ce7
      cfg = cfg .. " --set target." .. triple .. ".wasi-root=" .. wasi_root
1e9ce7
    end
1e9ce7
  end
1e9ce7
  rpm.define("wasm_target_config "..cfg)
1e9ce7
end}
1e9ce7
%endif
1e9ce7
1e9ce7
%configure --disable-option-checking \
1e9ce7
  --libdir=%{common_libdir} \
1e9ce7
  --build=%{rust_triple} --host=%{rust_triple} --target=%{rust_triple} \
1e9ce7
  %{target_config} \
1e9ce7
  %{?mingw_target_config} \
1e9ce7
  %{?wasm_target_config} \
1e9ce7
  --python=%{__python3} \
1e9ce7
  --local-rust-root=%{local_rust_root} \
1e9ce7
  %{!?with_bundled_llvm: --llvm-root=%{llvm_root} \
1e9ce7
    %{!?llvm_has_filecheck: --disable-codegen-tests} \
1e9ce7
    %{!?with_llvm_static: --enable-llvm-link-shared } } \
1e9ce7
  --disable-rpath \
1e9ce7
  %{enable_debuginfo} \
1e9ce7
  --set rust.codegen-units-std=1 \
1e9ce7
  --enable-extended \
1e9ce7
  --tools=analysis,cargo,clippy,rls,rustfmt,src \
1e9ce7
  --enable-vendor \
1e9ce7
  --enable-verbose-tests \
1e9ce7
  --dist-compression-formats=gz \
1e9ce7
  --release-channel=%{channel} \
1e9ce7
  --release-description="%{?fedora:Fedora }%{?rhel:Red Hat }%{version}-%{release}"
1e9ce7
1e9ce7
%{__python3} ./x.py build -j "$ncpus" --stage 2
1e9ce7
%{__python3} ./x.py doc --stage 2
1e9ce7
1e9ce7
for triple in %{?mingw_targets} %{?wasm_targets}; do
1e9ce7
  %{__python3} ./x.py build --stage 2 --target=$triple std
1e9ce7
done
1e9ce7
1e9ce7
%install
1e9ce7
%{export_rust_env}
1e9ce7
1e9ce7
DESTDIR=%{buildroot} %{__python3} ./x.py install
1e9ce7
1e9ce7
for triple in %{?mingw_targets} %{?wasm_targets}; do
1e9ce7
  DESTDIR=%{buildroot} %{__python3} ./x.py install --target=$triple std
1e9ce7
done
1e9ce7
1e9ce7
# These are transient files used by x.py dist and install
1e9ce7
rm -rf ./build/dist/ ./build/tmp/
1e9ce7
1e9ce7
# Make sure the shared libraries are in the proper libdir
1e9ce7
%if "%{_libdir}" != "%{common_libdir}"
1e9ce7
mkdir -p %{buildroot}%{_libdir}
1e9ce7
find %{buildroot}%{common_libdir} -maxdepth 1 -type f -name '*.so' \
1e9ce7
  -exec mv -v -t %{buildroot}%{_libdir} '{}' '+'
1e9ce7
%endif
1e9ce7
1e9ce7
# The shared libraries should be executable for debuginfo extraction.
1e9ce7
find %{buildroot}%{_libdir} -maxdepth 1 -type f -name '*.so' \
1e9ce7
  -exec chmod -v +x '{}' '+'
1e9ce7
1e9ce7
# The libdir libraries are identical to those under rustlib/.  It's easier on
1e9ce7
# library loading if we keep them in libdir, but we do need them in rustlib/
1e9ce7
# to support dynamic linking for compiler plugins, so we'll symlink.
1e9ce7
(cd "%{buildroot}%{rustlibdir}/%{rust_triple}/lib" &&
1e9ce7
 find ../../../../%{_lib} -maxdepth 1 -name '*.so' |
1e9ce7
 while read lib; do
1e9ce7
   if [ -f "${lib##*/}" ]; then
1e9ce7
     # make sure they're actually identical!
1e9ce7
     cmp "$lib" "${lib##*/}"
1e9ce7
     ln -v -f -s -t . "$lib"
1e9ce7
   fi
1e9ce7
 done)
1e9ce7
1e9ce7
# Remove installer artifacts (manifests, uninstall scripts, etc.)
1e9ce7
find %{buildroot}%{rustlibdir} -maxdepth 1 -type f -exec rm -v '{}' '+'
1e9ce7
1e9ce7
# Remove backup files from %%configure munging
1e9ce7
find %{buildroot}%{rustlibdir} -type f -name '*.orig' -exec rm -v '{}' '+'
1e9ce7
1e9ce7
# https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error
1e9ce7
# We don't actually need to ship any of those python scripts in rust-src anyway.
1e9ce7
find %{buildroot}%{rustlibdir}/src -type f -name '*.py' -exec rm -v '{}' '+'
1e9ce7
1e9ce7
# FIXME: __os_install_post will strip the rlibs
1e9ce7
# -- should we find a way to preserve debuginfo?
1e9ce7
1e9ce7
# Remove unwanted documentation files (we already package them)
1e9ce7
rm -f %{buildroot}%{_docdir}/%{name}/README.md
1e9ce7
rm -f %{buildroot}%{_docdir}/%{name}/COPYRIGHT
1e9ce7
rm -f %{buildroot}%{_docdir}/%{name}/LICENSE
1e9ce7
rm -f %{buildroot}%{_docdir}/%{name}/LICENSE-APACHE
1e9ce7
rm -f %{buildroot}%{_docdir}/%{name}/LICENSE-MIT
1e9ce7
rm -f %{buildroot}%{_docdir}/%{name}/LICENSE-THIRD-PARTY
1e9ce7
rm -f %{buildroot}%{_docdir}/%{name}/*.old
1e9ce7
1e9ce7
# Sanitize the HTML documentation
1e9ce7
find %{buildroot}%{_docdir}/%{name}/html -empty -delete
1e9ce7
find %{buildroot}%{_docdir}/%{name}/html -type f -exec chmod -x '{}' '+'
1e9ce7
1e9ce7
# Create the path for crate-devel packages
1e9ce7
mkdir -p %{buildroot}%{_datadir}/cargo/registry
1e9ce7
1e9ce7
# Cargo no longer builds its own documentation
1e9ce7
# https://github.com/rust-lang/cargo/pull/4904
1e9ce7
mkdir -p %{buildroot}%{_docdir}/cargo
1e9ce7
ln -sT ../rust/html/cargo/ %{buildroot}%{_docdir}/cargo/html
1e9ce7
1e9ce7
%if %without lldb
1e9ce7
rm -f %{buildroot}%{_bindir}/rust-lldb
1e9ce7
rm -f %{buildroot}%{rustlibdir}/etc/lldb_*
1e9ce7
%endif
1e9ce7
1e9ce7
# We don't want Rust copies of LLVM tools (rust-lld, rust-llvm-dwp)
1e9ce7
rm -f %{buildroot}%{rustlibdir}/%{rust_triple}/bin/rust-ll*
1e9ce7
1e9ce7
1e9ce7
%check
1e9ce7
%{export_rust_env}
1e9ce7
1e9ce7
# Sanity-check the installed binaries, debuginfo-stripped and all.
1e9ce7
%{buildroot}%{_bindir}/cargo new build/hello-world
1e9ce7
env RUSTC=%{buildroot}%{_bindir}/rustc \
1e9ce7
    LD_LIBRARY_PATH="%{buildroot}%{_libdir}:$LD_LIBRARY_PATH" \
1e9ce7
    %{buildroot}%{_bindir}/cargo run --manifest-path build/hello-world/Cargo.toml
1e9ce7
1e9ce7
# The results are not stable on koji, so mask errors and just log it.
1e9ce7
# Some of the larger test artifacts are manually cleaned to save space.
1e9ce7
%{__python3} ./x.py test --no-fail-fast --stage 2 || :
1e9ce7
rm -rf "./build/%{rust_triple}/test/"
1e9ce7
1e9ce7
%{__python3} ./x.py test --no-fail-fast --stage 2 cargo || :
1e9ce7
rm -rf "./build/%{rust_triple}/stage2-tools/%{rust_triple}/cit/"
1e9ce7
1e9ce7
%{__python3} ./x.py test --no-fail-fast --stage 2 clippy || :
1e9ce7
1e9ce7
env RLS_TEST_WAIT_FOR_AGES=1 \
1e9ce7
%{__python3} ./x.py test --no-fail-fast --stage 2 rls || :
1e9ce7
1e9ce7
%{__python3} ./x.py test --no-fail-fast --stage 2 rustfmt || :
1e9ce7
1e9ce7
1e9ce7
%ldconfig_scriptlets
1e9ce7
1e9ce7
1e9ce7
%files
1e9ce7
%license COPYRIGHT LICENSE-APACHE LICENSE-MIT
1e9ce7
%doc README.md
1e9ce7
%{_bindir}/rustc
1e9ce7
%{_bindir}/rustdoc
1e9ce7
%{_libdir}/*.so
1e9ce7
%{_mandir}/man1/rustc.1*
1e9ce7
%{_mandir}/man1/rustdoc.1*
1e9ce7
%dir %{rustlibdir}
1e9ce7
%dir %{rustlibdir}/%{rust_triple}
1e9ce7
%dir %{rustlibdir}/%{rust_triple}/lib
1e9ce7
%{rustlibdir}/%{rust_triple}/lib/*.so
1e9ce7
1e9ce7
1e9ce7
%files std-static
1e9ce7
%dir %{rustlibdir}
1e9ce7
%dir %{rustlibdir}/%{rust_triple}
1e9ce7
%dir %{rustlibdir}/%{rust_triple}/lib
1e9ce7
%{rustlibdir}/%{rust_triple}/lib/*.rlib
1e9ce7
1e9ce7
1e9ce7
%if %defined mingw_targets
1e9ce7
%{lua: do
1e9ce7
  for triple in string.gmatch(rpm.expand("%{mingw_targets}"), "%S+") do
1e9ce7
    local subs = {
1e9ce7
      triple = triple,
1e9ce7
      rustlibdir = rpm.expand("%{rustlibdir}"),
1e9ce7
    }
1e9ce7
    local s = string.gsub([[
1e9ce7
1e9ce7
%files std-static-{{triple}}
1e9ce7
%dir {{rustlibdir}}
1e9ce7
%dir {{rustlibdir}}/{{triple}}
1e9ce7
%dir {{rustlibdir}}/{{triple}}/lib
1e9ce7
{{rustlibdir}}/{{triple}}/lib/*.rlib
1e9ce7
{{rustlibdir}}/{{triple}}/lib/rs*.o
1e9ce7
%exclude {{rustlibdir}}/{{triple}}/lib/*.dll
1e9ce7
%exclude {{rustlibdir}}/{{triple}}/lib/*.dll.a
1e9ce7
%exclude {{rustlibdir}}/{{triple}}/lib/self-contained
1e9ce7
1e9ce7
]], "{{(%w+)}}", subs)
1e9ce7
    print(s)
1e9ce7
  end
1e9ce7
end}
1e9ce7
%endif
1e9ce7
1e9ce7
1e9ce7
%if %defined wasm_targets
1e9ce7
%{lua: do
1e9ce7
  for triple in string.gmatch(rpm.expand("%{wasm_targets}"), "%S+") do
1e9ce7
    local subs = {
1e9ce7
      triple = triple,
1e9ce7
      rustlibdir = rpm.expand("%{rustlibdir}"),
1e9ce7
      wasi = string.find(triple, "-wasi") and 1 or 0,
1e9ce7
    }
1e9ce7
    local s = string.gsub([[
1e9ce7
1e9ce7
%files std-static-{{triple}}
1e9ce7
%dir {{rustlibdir}}
1e9ce7
%dir {{rustlibdir}}/{{triple}}
1e9ce7
%dir {{rustlibdir}}/{{triple}}/lib
1e9ce7
{{rustlibdir}}/{{triple}}/lib/*.rlib
1e9ce7
%if {{wasi}}
1e9ce7
%dir {{rustlibdir}}/{{triple}}/lib/self-contained
1e9ce7
{{rustlibdir}}/{{triple}}/lib/self-contained/crt*.o
1e9ce7
{{rustlibdir}}/{{triple}}/lib/self-contained/libc.a
1e9ce7
%endif
1e9ce7
1e9ce7
]], "{{(%w+)}}", subs)
1e9ce7
    print(s)
1e9ce7
  end
1e9ce7
end}
1e9ce7
%endif
1e9ce7
1e9ce7
1e9ce7
%files debugger-common
1e9ce7
%dir %{rustlibdir}
1e9ce7
%dir %{rustlibdir}/etc
1e9ce7
%{rustlibdir}/etc/rust_*.py*
1e9ce7
1e9ce7
1e9ce7
%files gdb
1e9ce7
%{_bindir}/rust-gdb
1e9ce7
%{rustlibdir}/etc/gdb_*
1e9ce7
%exclude %{_bindir}/rust-gdbgui
1e9ce7
1e9ce7
1e9ce7
%if %with lldb
1e9ce7
%files lldb
1e9ce7
%{_bindir}/rust-lldb
1e9ce7
%{rustlibdir}/etc/lldb_*
1e9ce7
%endif
1e9ce7
1e9ce7
1e9ce7
%files doc
1e9ce7
%docdir %{_docdir}/%{name}
1e9ce7
%dir %{_docdir}/%{name}
1e9ce7
%dir %{_docdir}/%{name}/html
1e9ce7
%{_docdir}/%{name}/html/*/
1e9ce7
%{_docdir}/%{name}/html/*.html
1e9ce7
%{_docdir}/%{name}/html/*.css
1e9ce7
%{_docdir}/%{name}/html/*.js
1e9ce7
%{_docdir}/%{name}/html/*.png
1e9ce7
%{_docdir}/%{name}/html/*.svg
1e9ce7
%{_docdir}/%{name}/html/*.woff
1e9ce7
%{_docdir}/%{name}/html/*.woff2
1e9ce7
%license %{_docdir}/%{name}/html/*.txt
1e9ce7
%license %{_docdir}/%{name}/html/*.md
1e9ce7
1e9ce7
1e9ce7
%files -n cargo
1e9ce7
%license src/tools/cargo/LICENSE-APACHE src/tools/cargo/LICENSE-MIT src/tools/cargo/LICENSE-THIRD-PARTY
1e9ce7
%doc src/tools/cargo/README.md
1e9ce7
%{_bindir}/cargo
1e9ce7
%{_libexecdir}/cargo*
1e9ce7
%{_mandir}/man1/cargo*.1*
1e9ce7
%{_sysconfdir}/bash_completion.d/cargo
1e9ce7
%{_datadir}/zsh/site-functions/_cargo
1e9ce7
%dir %{_datadir}/cargo
1e9ce7
%dir %{_datadir}/cargo/registry
1e9ce7
1e9ce7
1e9ce7
%files -n cargo-doc
1e9ce7
%docdir %{_docdir}/cargo
1e9ce7
%dir %{_docdir}/cargo
1e9ce7
%{_docdir}/cargo/html
1e9ce7
1e9ce7
1e9ce7
%files -n rustfmt
1e9ce7
%{_bindir}/rustfmt
1e9ce7
%{_bindir}/cargo-fmt
1e9ce7
%doc src/tools/rustfmt/{README,CHANGELOG,Configurations}.md
1e9ce7
%license src/tools/rustfmt/LICENSE-{APACHE,MIT}
1e9ce7
1e9ce7
1e9ce7
%files -n rls
1e9ce7
%{_bindir}/rls
1e9ce7
%doc src/tools/rls/{README.md,COPYRIGHT,debugging.md}
1e9ce7
%license src/tools/rls/LICENSE-{APACHE,MIT}
1e9ce7
1e9ce7
1e9ce7
%files -n clippy
1e9ce7
%{_bindir}/cargo-clippy
1e9ce7
%{_bindir}/clippy-driver
1e9ce7
%doc src/tools/clippy/{README.md,CHANGELOG.md}
1e9ce7
%license src/tools/clippy/LICENSE-{APACHE,MIT}
1e9ce7
1e9ce7
1e9ce7
%files src
1e9ce7
%dir %{rustlibdir}
1e9ce7
%{rustlibdir}/src
1e9ce7
1e9ce7
1e9ce7
%files analysis
1e9ce7
%{rustlibdir}/%{rust_triple}/analysis/
1e9ce7
1e9ce7
1e9ce7
%changelog
1e9ce7
* Thu Jan 20 2022 Josh Stone <jistone@redhat.com> - 1.58.1-1
1e9ce7
- Update to 1.58.1.
1e9ce7
1e9ce7
* Thu Jan 13 2022 Josh Stone <jistone@redhat.com> - 1.58.0-1
1e9ce7
- Update to 1.58.0.
1e9ce7
1e9ce7
* Wed Dec 15 2021 Josh Stone <jistone@redhat.com> - 1.57.0-1
1e9ce7
- Update to 1.57.0.
1e9ce7
1e9ce7
* Wed Dec 01 2021 Josh Stone <jistone@redhat.com> - 1.56.1-2
1e9ce7
- Add rust-std-static-wasm32-wasi
1e9ce7
  Resolves: rhbz#1980082
1e9ce7
1e9ce7
* Thu Nov 04 2021 Josh Stone <jistone@redhat.com> - 1.56.1-1
1e9ce7
- Update to 1.56.1.
1e9ce7
1e9ce7
* Fri Oct 29 2021 Josh Stone <jistone@redhat.com> - 1.55.0-1
1e9ce7
- Update to 1.55.0.
1e9ce7
1e9ce7
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.54.0-2
1e9ce7
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
1e9ce7
  Related: rhbz#1991688
1e9ce7
1e9ce7
* Wed Aug 04 2021 Josh Stone <jistone@redhat.com> - 1.54.0-1
1e9ce7
- Update to 1.54.0.
1e9ce7
1e9ce7
* Tue Jun 22 2021 Josh Stone <jistone@redhat.com> - 1.53.0-1
1e9ce7
- Update to 1.53.0.
1e9ce7
- Update openssl crates to published versions for 3.0 support.
1e9ce7
1e9ce7
* Tue Jun 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.52.1-4
1e9ce7
- Rebuilt for RHEL 9 BETA for openssl 3.0
1e9ce7
1e9ce7
* Mon Jun 07 2021 Josh Stone <jistone@redhat.com> - 1.52.1-3
1e9ce7
- Set rust.codegen-units-std=1 for all targets again.
1e9ce7
- Add rust-std-static-wasm32-unknown-unknown.
1e9ce7
1e9ce7
* Tue May 18 2021 Josh Stone <jistone@redhat.com> - 1.52.1-2
1e9ce7
- Rebuild for OpenSSL 3.0.0-alpha16
1e9ce7
1e9ce7
* Thu May 13 2021 Josh Stone <jistone@redhat.com> - 1.52.1-1
1e9ce7
- Update to 1.52.1. Includes security fixes for CVE-2020-36323,
1e9ce7
  CVE-2021-28876, CVE-2021-28878, CVE-2021-28879, and CVE-2021-31162.
1e9ce7
- Initial support for OpenSSL 3.0.0-alpha15
1e9ce7
1e9ce7
* Wed Apr 28 2021 Josh Stone <jistone@redhat.com> - 1.51.0-1
1e9ce7
- Update to 1.51.0. Includes security fixes for CVE-2021-28875
1e9ce7
  and CVE-2021-28877.
1e9ce7
1e9ce7
* Tue Apr 27 2021 Josh Stone <jistone@redhat.com> - 1.50.0-1
1e9ce7
- Update to 1.50.0.
1e9ce7
1e9ce7
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.49.0-5
1e9ce7
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
1e9ce7
1e9ce7
* Fri Feb 12 2021 Josh Stone <jistone@redhat.com> - 1.49.0-4
1e9ce7
- Rebuild without bootstrap binaries
1e9ce7
1e9ce7
* Thu Feb 11 2021 Josh Stone <jistone@redhat.com> - 1.49.0-3
1e9ce7
- Re-bootstrap due to removed LLVM targets
1e9ce7
1e9ce7
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.49.0-2
1e9ce7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1e9ce7
1e9ce7
* Tue Jan 05 2021 Josh Stone <jistone@redhat.com> - 1.49.0-1
1e9ce7
- Update to 1.49.0.
1e9ce7
1e9ce7
* Tue Dec 29 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.48.0-3
1e9ce7
- De-bootstrap
1e9ce7
1e9ce7
* Mon Dec 28 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.48.0-2
1e9ce7
- Rebuild for libgit2 1.1.x
1e9ce7
1e9ce7
* Thu Nov 19 2020 Josh Stone <jistone@redhat.com> - 1.48.0-1
1e9ce7
- Update to 1.48.0.
1e9ce7
1e9ce7
* Sat Oct 10 2020 Jeff Law <law@redhat.com> - 1.47.0-2
1e9ce7
- Re-enable LTO
1e9ce7
1e9ce7
* Thu Oct 08 2020 Josh Stone <jistone@redhat.com> - 1.47.0-1
1e9ce7
- Update to 1.47.0.
1e9ce7
1e9ce7
* Fri Aug 28 2020 Fabio Valentini <decathorpe@gmail.com> - 1.46.0-2
1e9ce7
- Fix LTO with doctests (backported cargo PR#8657).
1e9ce7
1e9ce7
* Thu Aug 27 2020 Josh Stone <jistone@redhat.com> - 1.46.0-1
1e9ce7
- Update to 1.46.0.
1e9ce7
1e9ce7
* Mon Aug 03 2020 Josh Stone <jistone@redhat.com> - 1.45.2-1
1e9ce7
- Update to 1.45.2.
1e9ce7
1e9ce7
* Thu Jul 30 2020 Josh Stone <jistone@redhat.com> - 1.45.1-1
1e9ce7
- Update to 1.45.1.
1e9ce7
1e9ce7
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.45.0-2
1e9ce7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1e9ce7
1e9ce7
* Thu Jul 16 2020 Josh Stone <jistone@redhat.com> - 1.45.0-1
1e9ce7
- Update to 1.45.0.
1e9ce7
1e9ce7
* Wed Jul 01 2020 Jeff Law <law@redhat.com> - 1.44.1-2
1e9ce7
- Disable LTO
1e9ce7
1e9ce7
* Thu Jun 18 2020 Josh Stone <jistone@redhat.com> - 1.44.1-1
1e9ce7
- Update to 1.44.1.
1e9ce7
1e9ce7
* Thu Jun 04 2020 Josh Stone <jistone@redhat.com> - 1.44.0-1
1e9ce7
- Update to 1.44.0.
1e9ce7
1e9ce7
* Thu May 07 2020 Josh Stone <jistone@redhat.com> - 1.43.1-1
1e9ce7
- Update to 1.43.1.
1e9ce7
1e9ce7
* Thu Apr 23 2020 Josh Stone <jistone@redhat.com> - 1.43.0-1
1e9ce7
- Update to 1.43.0.
1e9ce7
1e9ce7
* Thu Mar 12 2020 Josh Stone <jistone@redhat.com> - 1.42.0-1
1e9ce7
- Update to 1.42.0.
1e9ce7
1e9ce7
* Thu Feb 27 2020 Josh Stone <jistone@redhat.com> - 1.41.1-1
1e9ce7
- Update to 1.41.1.
1e9ce7
1e9ce7
* Thu Feb 20 2020 Josh Stone <jistone@redhat.com> - 1.41.0-2
1e9ce7
- Rebuild with llvm9.0
1e9ce7
1e9ce7
* Thu Jan 30 2020 Josh Stone <jistone@redhat.com> - 1.41.0-1
1e9ce7
- Update to 1.41.0.
1e9ce7
1e9ce7
* Thu Jan 16 2020 Josh Stone <jistone@redhat.com> - 1.40.0-3
1e9ce7
- Build compiletest with in-tree libtest
1e9ce7
1e9ce7
* Tue Jan 07 2020 Josh Stone <jistone@redhat.com> - 1.40.0-2
1e9ce7
- Fix compiletest with newer (local-rebuild) libtest
1e9ce7
- Fix ARM EHABI unwinding
1e9ce7
1e9ce7
* Thu Dec 19 2019 Josh Stone <jistone@redhat.com> - 1.40.0-1
1e9ce7
- Update to 1.40.0.
1e9ce7
1e9ce7
* Tue Nov 12 2019 Josh Stone <jistone@redhat.com> - 1.39.0-2
1e9ce7
- Fix a couple build and test issues with rustdoc.
1e9ce7
1e9ce7
* Thu Nov 07 2019 Josh Stone <jistone@redhat.com> - 1.39.0-1
1e9ce7
- Update to 1.39.0.
1e9ce7
1e9ce7
* Fri Sep 27 2019 Josh Stone <jistone@redhat.com> - 1.38.0-2
1e9ce7
- Filter the libraries included in rust-std (rhbz1756487)
1e9ce7
1e9ce7
* Thu Sep 26 2019 Josh Stone <jistone@redhat.com> - 1.38.0-1
1e9ce7
- Update to 1.38.0.
1e9ce7
1e9ce7
* Thu Aug 15 2019 Josh Stone <jistone@redhat.com> - 1.37.0-1
1e9ce7
- Update to 1.37.0.
1e9ce7
1e9ce7
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.36.0-2
1e9ce7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1e9ce7
1e9ce7
* Thu Jul 04 2019 Josh Stone <jistone@redhat.com> - 1.36.0-1
1e9ce7
- Update to 1.36.0.
1e9ce7
1e9ce7
* Wed May 29 2019 Josh Stone <jistone@redhat.com> - 1.35.0-2
1e9ce7
- Fix compiletest for rebuild testing.
1e9ce7
1e9ce7
* Thu May 23 2019 Josh Stone <jistone@redhat.com> - 1.35.0-1
1e9ce7
- Update to 1.35.0.
1e9ce7
1e9ce7
* Tue May 14 2019 Josh Stone <jistone@redhat.com> - 1.34.2-1
1e9ce7
- Update to 1.34.2 -- fixes CVE-2019-12083.
1e9ce7
1e9ce7
* Tue Apr 30 2019 Josh Stone <jistone@redhat.com> - 1.34.1-3
1e9ce7
- Set rust.codegen-units-std=1
1e9ce7
1e9ce7
* Fri Apr 26 2019 Josh Stone <jistone@redhat.com> - 1.34.1-2
1e9ce7
- Remove the ThinLTO workaround.
1e9ce7
1e9ce7
* Thu Apr 25 2019 Josh Stone <jistone@redhat.com> - 1.34.1-1
1e9ce7
- Update to 1.34.1.
1e9ce7
- Add a ThinLTO fix for rhbz1701339.
1e9ce7
1e9ce7
* Thu Apr 11 2019 Josh Stone <jistone@redhat.com> - 1.34.0-1
1e9ce7
- Update to 1.34.0.
1e9ce7
1e9ce7
* Fri Mar 01 2019 Josh Stone <jistone@redhat.com> - 1.33.0-2
1e9ce7
- Fix deprecations for self-rebuild
1e9ce7
1e9ce7
* Thu Feb 28 2019 Josh Stone <jistone@redhat.com> - 1.33.0-1
1e9ce7
- Update to 1.33.0.
1e9ce7
1e9ce7
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.32.0-2
1e9ce7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1e9ce7
1e9ce7
* Thu Jan 17 2019 Josh Stone <jistone@redhat.com> - 1.32.0-1
1e9ce7
- Update to 1.32.0.
1e9ce7
1e9ce7
* Mon Jan 07 2019 Josh Stone <jistone@redhat.com> - 1.31.1-9
1e9ce7
- Update to 1.31.1 for RLS fixes.
1e9ce7
1e9ce7
* Thu Dec 06 2018 Josh Stone <jistone@redhat.com> - 1.31.0-8
1e9ce7
- Update to 1.31.0 -- Rust 2018!
1e9ce7
- clippy/rls/rustfmt are no longer -preview
1e9ce7
1e9ce7
* Thu Nov 08 2018 Josh Stone <jistone@redhat.com> - 1.30.1-7
1e9ce7
- Update to 1.30.1.
1e9ce7
1e9ce7
* Thu Oct 25 2018 Josh Stone <jistone@redhat.com> - 1.30.0-6
1e9ce7
- Update to 1.30.0.
1e9ce7
1e9ce7
* Mon Oct 22 2018 Josh Stone <jistone@redhat.com> - 1.29.2-5
1e9ce7
- Rebuild without bootstrap binaries.
1e9ce7
1e9ce7
* Sat Oct 20 2018 Josh Stone <jistone@redhat.com> - 1.29.2-4
1e9ce7
- Re-bootstrap armv7hl due to rhbz#1639485
1e9ce7
1e9ce7
* Fri Oct 12 2018 Josh Stone <jistone@redhat.com> - 1.29.2-3
1e9ce7
- Update to 1.29.2.
1e9ce7
1e9ce7
* Tue Sep 25 2018 Josh Stone <jistone@redhat.com> - 1.29.1-2
1e9ce7
- Update to 1.29.1.
1e9ce7
- Security fix for str::repeat (pending CVE).
1e9ce7
1e9ce7
* Thu Sep 13 2018 Josh Stone <jistone@redhat.com> - 1.29.0-1
1e9ce7
- Update to 1.29.0.
1e9ce7
- Add a clippy-preview subpackage
1e9ce7
1e9ce7
* Mon Aug 13 2018 Josh Stone <jistone@redhat.com> - 1.28.0-3
1e9ce7
- Use llvm6.0 instead of llvm-7 for now
1e9ce7
1e9ce7
* Tue Aug 07 2018 Josh Stone <jistone@redhat.com> - 1.28.0-2
1e9ce7
- Rebuild for LLVM ppc64/s390x fixes
1e9ce7
1e9ce7
* Thu Aug 02 2018 Josh Stone <jistone@redhat.com> - 1.28.0-1
1e9ce7
- Update to 1.28.0.
1e9ce7
1e9ce7
* Tue Jul 24 2018 Josh Stone <jistone@redhat.com> - 1.27.2-4
1e9ce7
- Update to 1.27.2.
1e9ce7
1e9ce7
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.27.1-3
1e9ce7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1e9ce7
1e9ce7
* Tue Jul 10 2018 Josh Stone <jistone@redhat.com> - 1.27.1-2
1e9ce7
- Update to 1.27.1.
1e9ce7
- Security fix for CVE-2018-1000622
1e9ce7
1e9ce7
* Thu Jun 21 2018 Josh Stone <jistone@redhat.com> - 1.27.0-1
1e9ce7
- Update to 1.27.0.
1e9ce7
1e9ce7
* Tue Jun 05 2018 Josh Stone <jistone@redhat.com> - 1.26.2-4
1e9ce7
- Rebuild without bootstrap binaries.
1e9ce7
1e9ce7
* Tue Jun 05 2018 Josh Stone <jistone@redhat.com> - 1.26.2-3
1e9ce7
- Update to 1.26.2.
1e9ce7
- Re-bootstrap to deal with LLVM symbol changes.
1e9ce7
1e9ce7
* Tue May 29 2018 Josh Stone <jistone@redhat.com> - 1.26.1-2
1e9ce7
- Update to 1.26.1.
1e9ce7
1e9ce7
* Thu May 10 2018 Josh Stone <jistone@redhat.com> - 1.26.0-1
1e9ce7
- Update to 1.26.0.
1e9ce7
1e9ce7
* Mon Apr 16 2018 Dan Callaghan <dcallagh@redhat.com> - 1.25.0-3
1e9ce7
- Add cargo, rls, and analysis
1e9ce7
1e9ce7
* Tue Apr 10 2018 Josh Stone <jistone@redhat.com> - 1.25.0-2
1e9ce7
- Filter codegen-backends from Provides too.
1e9ce7
1e9ce7
* Thu Mar 29 2018 Josh Stone <jistone@redhat.com> - 1.25.0-1
1e9ce7
- Update to 1.25.0.
1e9ce7
1e9ce7
* Thu Mar 01 2018 Josh Stone <jistone@redhat.com> - 1.24.1-1
1e9ce7
- Update to 1.24.1.
1e9ce7
1e9ce7
* Wed Feb 21 2018 Josh Stone <jistone@redhat.com> - 1.24.0-3
1e9ce7
- Backport a rebuild fix for rust#48308.
1e9ce7
1e9ce7
* Mon Feb 19 2018 Josh Stone <jistone@redhat.com> - 1.24.0-2
1e9ce7
- rhbz1546541: drop full-bootstrap; cmp libs before symlinking.
1e9ce7
- Backport pr46592 to fix local_rebuild bootstrapping.
1e9ce7
- Backport pr48362 to fix relative/absolute libdir.
1e9ce7
1e9ce7
* Thu Feb 15 2018 Josh Stone <jistone@redhat.com> - 1.24.0-1
1e9ce7
- Update to 1.24.0.
1e9ce7
1e9ce7
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.23.0-4
1e9ce7
- Update Python 2 dependency declarations to new packaging standards
1e9ce7
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
1e9ce7
1e9ce7
* Tue Feb 06 2018 Josh Stone <jistone@redhat.com> - 1.23.0-3
1e9ce7
- Use full-bootstrap to work around a rebuild issue.
1e9ce7
- Patch binaryen for GCC 8
1e9ce7
1e9ce7
* Thu Feb 01 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.23.0-2
1e9ce7
- Switch to %%ldconfig_scriptlets
1e9ce7
1e9ce7
* Mon Jan 08 2018 Josh Stone <jistone@redhat.com> - 1.23.0-1
1e9ce7
- Update to 1.23.0.
1e9ce7
1e9ce7
* Thu Nov 23 2017 Josh Stone <jistone@redhat.com> - 1.22.1-1
1e9ce7
- Update to 1.22.1.
1e9ce7
1e9ce7
* Thu Oct 12 2017 Josh Stone <jistone@redhat.com> - 1.21.0-1
1e9ce7
- Update to 1.21.0.
1e9ce7
1e9ce7
* Mon Sep 11 2017 Josh Stone <jistone@redhat.com> - 1.20.0-2
1e9ce7
- ABI fixes for ppc64 and s390x.
1e9ce7
1e9ce7
* Thu Aug 31 2017 Josh Stone <jistone@redhat.com> - 1.20.0-1
1e9ce7
- Update to 1.20.0.
1e9ce7
- Add a rust-src subpackage.
1e9ce7
1e9ce7
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.0-4
1e9ce7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1e9ce7
1e9ce7
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.0-3
1e9ce7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1e9ce7
1e9ce7
* Mon Jul 24 2017 Josh Stone <jistone@redhat.com> - 1.19.0-2
1e9ce7
- Use find-debuginfo.sh --keep-section .rustc
1e9ce7
1e9ce7
* Thu Jul 20 2017 Josh Stone <jistone@redhat.com> - 1.19.0-1
1e9ce7
- Update to 1.19.0.
1e9ce7
1e9ce7
* Thu Jun 08 2017 Josh Stone <jistone@redhat.com> - 1.18.0-1
1e9ce7
- Update to 1.18.0.
1e9ce7
1e9ce7
* Mon May 08 2017 Josh Stone <jistone@redhat.com> - 1.17.0-2
1e9ce7
- Move shared libraries back to libdir and symlink in rustlib
1e9ce7
1e9ce7
* Thu Apr 27 2017 Josh Stone <jistone@redhat.com> - 1.17.0-1
1e9ce7
- Update to 1.17.0.
1e9ce7
1e9ce7
* Mon Mar 20 2017 Josh Stone <jistone@redhat.com> - 1.16.0-3
1e9ce7
- Make rust-lldb arch-specific to deal with lldb deps
1e9ce7
1e9ce7
* Fri Mar 17 2017 Josh Stone <jistone@redhat.com> - 1.16.0-2
1e9ce7
- Limit rust-lldb arches
1e9ce7
1e9ce7
* Thu Mar 16 2017 Josh Stone <jistone@redhat.com> - 1.16.0-1
1e9ce7
- Update to 1.16.0.
1e9ce7
- Use rustbuild instead of the old makefiles.
1e9ce7
- Update bootstrapping to include rust-std and cargo.
1e9ce7
- Add a rust-lldb subpackage.
1e9ce7
1e9ce7
* Thu Feb 09 2017 Josh Stone <jistone@redhat.com> - 1.15.1-1
1e9ce7
- Update to 1.15.1.
1e9ce7
- Require rust-rpm-macros for new crate packaging.
1e9ce7
- Keep shared libraries under rustlib/, only debug-stripped.
1e9ce7
- Merge and clean up conditionals for epel7.
1e9ce7
1e9ce7
* Fri Dec 23 2016 Josh Stone <jistone@redhat.com> - 1.14.0-2
1e9ce7
- Rebuild without bootstrap binaries.
1e9ce7
1e9ce7
* Thu Dec 22 2016 Josh Stone <jistone@redhat.com> - 1.14.0-1
1e9ce7
- Update to 1.14.0.
1e9ce7
- Rewrite bootstrap logic to target specific arches.
1e9ce7
- Bootstrap ppc64, ppc64le, s390x. (thanks to Sinny Kumari for testing!)
1e9ce7
1e9ce7
* Thu Nov 10 2016 Josh Stone <jistone@redhat.com> - 1.13.0-1
1e9ce7
- Update to 1.13.0.
1e9ce7
- Use hardening flags for linking.
1e9ce7
- Split the standard library into its own package
1e9ce7
- Centralize rustlib/ under /usr/lib/ for multilib integration.
1e9ce7
1e9ce7
* Thu Oct 20 2016 Josh Stone <jistone@redhat.com> - 1.12.1-1
1e9ce7
- Update to 1.12.1.
1e9ce7
1e9ce7
* Fri Oct 14 2016 Josh Stone <jistone@redhat.com> - 1.12.0-7
1e9ce7
- Rebuild with LLVM 3.9.
1e9ce7
- Add ncurses-devel for llvm-config's -ltinfo.
1e9ce7
1e9ce7
* Thu Oct 13 2016 Josh Stone <jistone@redhat.com> - 1.12.0-6
1e9ce7
- Rebuild with llvm-static, preparing for 3.9
1e9ce7
1e9ce7
* Fri Oct 07 2016 Josh Stone <jistone@redhat.com> - 1.12.0-5
1e9ce7
- Rebuild with fixed eu-strip (rhbz1380961)
1e9ce7
1e9ce7
* Fri Oct 07 2016 Josh Stone <jistone@redhat.com> - 1.12.0-4
1e9ce7
- Rebuild without bootstrap binaries.
1e9ce7
1e9ce7
* Thu Oct 06 2016 Josh Stone <jistone@redhat.com> - 1.12.0-3
1e9ce7
- Bootstrap aarch64.
1e9ce7
- Use jemalloc's MALLOC_CONF to work around #36944.
1e9ce7
- Apply pr36933 to really disable armv7hl NEON.
1e9ce7
1e9ce7
* Sat Oct 01 2016 Josh Stone <jistone@redhat.com> - 1.12.0-2
1e9ce7
- Protect .rustc from rpm stripping.
1e9ce7
1e9ce7
* Fri Sep 30 2016 Josh Stone <jistone@redhat.com> - 1.12.0-1
1e9ce7
- Update to 1.12.0.
1e9ce7
- Always use --local-rust-root, even for bootstrap binaries.
1e9ce7
- Remove the rebuild conditional - the build system now figures it out.
1e9ce7
- Let minidebuginfo do its thing, since metadata is no longer a note.
1e9ce7
- Let rust build its own compiler-rt builtins again.
1e9ce7
1e9ce7
* Sat Sep 03 2016 Josh Stone <jistone@redhat.com> - 1.11.0-3
1e9ce7
- Rebuild without bootstrap binaries.
1e9ce7
1e9ce7
* Fri Sep 02 2016 Josh Stone <jistone@redhat.com> - 1.11.0-2
1e9ce7
- Bootstrap armv7hl, with backported no-neon patch.
1e9ce7
1e9ce7
* Wed Aug 24 2016 Josh Stone <jistone@redhat.com> - 1.11.0-1
1e9ce7
- Update to 1.11.0.
1e9ce7
- Drop the backported patches.
1e9ce7
- Patch get-stage0.py to trust existing bootstrap binaries.
1e9ce7
- Use libclang_rt.builtins from compiler-rt, dodging llvm-static issues.
1e9ce7
- Use --local-rust-root to make sure the right bootstrap is used.
1e9ce7
1e9ce7
* Sat Aug 13 2016 Josh Stone <jistone@redhat.com> 1.10.0-4
1e9ce7
- Rebuild without bootstrap binaries.
1e9ce7
1e9ce7
* Fri Aug 12 2016 Josh Stone <jistone@redhat.com> - 1.10.0-3
1e9ce7
- Initial import into Fedora (#1356907), bootstrapped
1e9ce7
- Format license text as suggested in review.
1e9ce7
- Note how the tests already run in parallel.
1e9ce7
- Undefine _include_minidebuginfo, because it duplicates ".note.rustc".
1e9ce7
- Don't let checks fail the whole build.
1e9ce7
- Note that -doc can't be noarch, as rpmdiff doesn't allow variations.
1e9ce7
1e9ce7
* Tue Jul 26 2016 Josh Stone <jistone@redhat.com> - 1.10.0-2
1e9ce7
- Update -doc directory ownership, and mark its licenses.
1e9ce7
- Package and declare licenses for libbacktrace and hoedown.
1e9ce7
- Set bootstrap_base as a global.
1e9ce7
- Explicitly require python2.
1e9ce7
1e9ce7
* Thu Jul 14 2016 Josh Stone <jistone@fedoraproject.org> - 1.10.0-1
1e9ce7
- Initial package, bootstrapped