[11321] | 1 | %bcond_with bootstrap |
---|
[11972] | 2 | %bcond_with test |
---|
[12506] | 3 | %bcond_with newrpm |
---|
[12228] | 4 | %bcond_without clang |
---|
| 5 | %bcond_without bundled_libgit2 |
---|
| 6 | %bcond_without bundled_libssh2 |
---|
[11321] | 7 | |
---|
[11972] | 8 | # Some sub-packages are versioned independently of the rust compiler and runtime itself. |
---|
| 9 | # Also beware that if any of these are not changed in a version bump, then the release |
---|
| 10 | # number should still increase, not be reset to 1! |
---|
[12521] | 11 | %global rustc_version 1.49.0 |
---|
[12228] | 12 | %global cargo_version %{rustc_version} |
---|
| 13 | %global rustfmt_version %{rustc_version} |
---|
| 14 | %global rls_version %{rustc_version} |
---|
| 15 | %global clippy_version %{rustc_version} |
---|
[11972] | 16 | |
---|
[12228] | 17 | # The channel can be stable, beta, or nightly |
---|
| 18 | %{!?channel: %global channel stable} |
---|
| 19 | |
---|
[11321] | 20 | # Only x86_64 and i686 are Tier 1 platforms at this time. |
---|
| 21 | # https://forge.rust-lang.org/platform-support.html |
---|
| 22 | %global rust_arches x86_64 i686 |
---|
| 23 | |
---|
| 24 | # To bootstrap from scratch, set the channel and date from src/stage0.txt |
---|
| 25 | # e.g. 1.10.0 wants rustc: 1.9.0-2016-05-24 |
---|
| 26 | # or nightly wants some beta-YYYY-MM-DD |
---|
[12499] | 27 | %global bootstrap_rust 1.46.0 |
---|
| 28 | %global bootstrap_cargo 1.46.0 |
---|
[11321] | 29 | %global bootstrap_channel %{bootstrap_rust} |
---|
| 30 | |
---|
| 31 | # Only the specified arches will use bootstrap binaries. |
---|
| 32 | %if %{with bootstrap} |
---|
| 33 | %global bootstrap_arches %%{rust_arches} |
---|
| 34 | %endif |
---|
| 35 | |
---|
| 36 | # We generally don't want llvm-static present at all, since llvm-config will |
---|
| 37 | # make us link statically. But we can opt in, e.g. to aid LLVM rebases. |
---|
| 38 | # FIXME: LLVM 3.9 prefers shared linking now! Which is good, but next time we |
---|
| 39 | # *want* static we'll have to force it with "llvm-config --link-static". |
---|
| 40 | # See also https://github.com/rust-lang/rust/issues/36854 |
---|
| 41 | # The new rustbuild accepts `--enable-llvm-link-shared`, else links static. |
---|
| 42 | %bcond_with llvm_static |
---|
| 43 | |
---|
| 44 | # We can also choose to just use Rust's bundled LLVM, in case the system LLVM |
---|
| 45 | # is insufficient. Rust currently requires LLVM 3.7+. |
---|
| 46 | %bcond_with bundled_llvm |
---|
| 47 | |
---|
| 48 | # LLDB only works on some architectures |
---|
| 49 | %ifarch %{arm} aarch64 %{ix86} x86_64 |
---|
| 50 | # LLDB isn't available everywhere... |
---|
| 51 | %bcond_without lldb |
---|
| 52 | %else |
---|
| 53 | %bcond_with lldb |
---|
| 54 | %endif |
---|
| 55 | |
---|
[12499] | 56 | Summary: The Rust Programming Language |
---|
[11321] | 57 | Name: rust |
---|
[12228] | 58 | Version: %{rustc_version} |
---|
[11321] | 59 | Release: 1%{?_dist_release} |
---|
[12499] | 60 | Group: programming |
---|
| 61 | Vendor: Project Vine |
---|
| 62 | Distribution: Vine Linux |
---|
| 63 | |
---|
[11321] | 64 | License: (ASL 2.0 or MIT) and (BSD and ISC and MIT) |
---|
| 65 | # ^ written as: (rust itself) and (bundled libraries) |
---|
| 66 | URL: https://www.rust-lang.org |
---|
[12499] | 67 | |
---|
[11321] | 68 | ExclusiveArch: %{rust_arches} |
---|
| 69 | |
---|
| 70 | %if "%{channel}" == "stable" |
---|
| 71 | %global rustc_package rustc-%{version}-src |
---|
| 72 | %else |
---|
| 73 | %global rustc_package rustc-%{channel}-src |
---|
| 74 | %endif |
---|
| 75 | Source0: https://static.rust-lang.org/dist/%{rustc_package}.tar.gz |
---|
| 76 | |
---|
| 77 | # Get the Rust triple for any arch. |
---|
| 78 | %{lua: function rust_triple(arch) |
---|
| 79 | local abi = "gnu" |
---|
| 80 | if arch == "armv7hl" then |
---|
| 81 | arch = "armv7" |
---|
| 82 | abi = "gnueabihf" |
---|
| 83 | elseif arch == "ppc64" then |
---|
| 84 | arch = "powerpc64" |
---|
| 85 | elseif arch == "ppc64le" then |
---|
| 86 | arch = "powerpc64le" |
---|
| 87 | end |
---|
| 88 | return arch.."-unknown-linux-"..abi |
---|
| 89 | end} |
---|
| 90 | |
---|
| 91 | %global rust_triple %{lua: print(rust_triple(rpm.expand("%{_target_cpu}")))} |
---|
| 92 | |
---|
| 93 | %if %defined bootstrap_arches |
---|
| 94 | # For each bootstrap arch, add an additional binary Source. |
---|
| 95 | # Also define bootstrap_source just for the current target. |
---|
| 96 | %{lua: do |
---|
| 97 | local bootstrap_arches = {} |
---|
| 98 | for arch in string.gmatch(rpm.expand("%{bootstrap_arches}"), "%S+") do |
---|
| 99 | table.insert(bootstrap_arches, arch) |
---|
| 100 | end |
---|
[11972] | 101 | local base = rpm.expand("https://static.rust-lang.org/dist" |
---|
[11321] | 102 | .."/rust-%{bootstrap_channel}") |
---|
| 103 | local target_arch = rpm.expand("%{_target_cpu}") |
---|
| 104 | for i, arch in ipairs(bootstrap_arches) do |
---|
| 105 | print(string.format("Source%d: %s-%s.tar.gz\n", |
---|
| 106 | i, base, rust_triple(arch))) |
---|
| 107 | if arch == target_arch then |
---|
| 108 | rpm.define("bootstrap_source "..i) |
---|
| 109 | end |
---|
| 110 | end |
---|
| 111 | end} |
---|
| 112 | %endif |
---|
| 113 | |
---|
| 114 | %ifarch %{bootstrap_arches} |
---|
| 115 | %global bootstrap_root rust-%{bootstrap_channel}-%{rust_triple} |
---|
| 116 | %global local_rust_root %{_builddir}/%{bootstrap_root}/usr |
---|
| 117 | Provides: bundled(%{name}-bootstrap) = %{bootstrap_rust} |
---|
| 118 | %else |
---|
| 119 | BuildRequires: cargo >= %{bootstrap_cargo} |
---|
| 120 | BuildRequires: %{name} >= %{bootstrap_rust} |
---|
| 121 | BuildConflicts: %{name} > %{version} |
---|
| 122 | %global local_rust_root %{_prefix} |
---|
| 123 | %endif |
---|
| 124 | |
---|
| 125 | BuildRequires: cmake |
---|
| 126 | BuildRequires: make |
---|
[12228] | 127 | %if %{with clang} |
---|
| 128 | BuildRequires: clang |
---|
| 129 | BuildRequires: lld |
---|
| 130 | %else |
---|
[11321] | 131 | BuildRequires: gcc |
---|
| 132 | BuildRequires: gcc-c++ |
---|
[12228] | 133 | %endif |
---|
| 134 | %if %{without bundled_libgit2} |
---|
[11972] | 135 | BuildRequires: libgit2-devel |
---|
[12228] | 136 | %endif |
---|
| 137 | %if %{without bundled_libssh2} |
---|
[11972] | 138 | BuildRequires: libssh2-devel |
---|
[12228] | 139 | %endif |
---|
[11321] | 140 | BuildRequires: ncurses-devel |
---|
[11972] | 141 | BuildRequires: openssl-devel |
---|
[11321] | 142 | BuildRequires: zlib-devel |
---|
[12228] | 143 | BuildRequires: python3 |
---|
| 144 | BuildRequires: python3-rpm-macros |
---|
[11321] | 145 | BuildRequires: curl |
---|
[12228] | 146 | BuildRequires: curl-devel |
---|
| 147 | BuildRequires: xz-devel |
---|
[11321] | 148 | |
---|
| 149 | %if %{with bundled_llvm} |
---|
| 150 | BuildRequires: cmake |
---|
[12228] | 151 | BuildRequires: git |
---|
| 152 | Provides: bundled(llvm) = 6.0 |
---|
[11321] | 153 | %else |
---|
[12506] | 154 | BuildRequires: cmake |
---|
[11321] | 155 | %if %defined llvm |
---|
| 156 | %global llvm_root %{_libdir}/%{llvm} |
---|
| 157 | %else |
---|
| 158 | %global llvm llvm |
---|
| 159 | %global llvm_root %{_prefix} |
---|
[12506] | 160 | %global llvm_has_filecheck 1 |
---|
[11321] | 161 | %endif |
---|
[12506] | 162 | BuildRequires: %{llvm}-devel >= 11.0.0 |
---|
[11321] | 163 | %if %{with llvm_static} |
---|
| 164 | BuildRequires: %{llvm}-static |
---|
| 165 | BuildRequires: libffi-devel |
---|
| 166 | %else |
---|
| 167 | BuildConflicts: %{llvm}-static |
---|
| 168 | %endif |
---|
| 169 | %endif |
---|
| 170 | |
---|
| 171 | # make check needs "ps" for src/test/run-pass/wait-forked-but-failed-child.rs |
---|
| 172 | BuildRequires: procps |
---|
| 173 | |
---|
| 174 | # debuginfo-gdb tests need gdb |
---|
| 175 | BuildRequires: gdb |
---|
| 176 | |
---|
| 177 | # TODO: work on unbundling these! |
---|
| 178 | Provides: bundled(jquery) = 2.1.4 |
---|
| 179 | Provides: bundled(miniz) = 1.14 |
---|
| 180 | |
---|
| 181 | # Virtual provides for folks who attempt "dnf install rustc" |
---|
| 182 | Provides: rustc = %{version}-%{release} |
---|
| 183 | Provides: rustc%{?_isa} = %{version}-%{release} |
---|
| 184 | |
---|
| 185 | # Always require our exact standard library |
---|
| 186 | Requires: %{name}-std-static%{?_isa} = %{version}-%{release} |
---|
| 187 | |
---|
| 188 | # The C compiler is needed at runtime just for linking. Someday rustc might |
---|
| 189 | # invoke the linker directly, and then we'll only need binutils. |
---|
| 190 | # https://github.com/rust-lang/rust/issues/11937 |
---|
| 191 | Requires: /usr/bin/cc |
---|
| 192 | |
---|
| 193 | # ALL Rust libraries are private, because they don't keep an ABI. |
---|
[12506] | 194 | %global _privatelibs lib(.*-[[:xdigit:]]{16}*|rustc.*)[.]so.* |
---|
[11321] | 195 | %global __provides_exclude ^(%{_privatelibs})$ |
---|
| 196 | %global __requires_exclude ^(%{_privatelibs})$ |
---|
[12506] | 197 | %global __provides_exclude_from ^(%{_docdir}|%{rustlibdir}/src)/.*$ |
---|
| 198 | %global __requires_exclude_from ^(%{_docdir}|%{rustlibdir}/src)/.*$ |
---|
[11321] | 199 | |
---|
[12506] | 200 | %if !%{with newrpm} |
---|
| 201 | # eu-strip is very eager by default, so we have to limit it to -g, only debugging symbols. |
---|
| 202 | %global _find_debuginfo_opts -g |
---|
| 203 | %undefine _include_minidebuginfo |
---|
| 204 | %else |
---|
[11321] | 205 | # Newer find-debuginfo.sh supports --keep-section, which is preferable. rhbz1465997 |
---|
| 206 | %global _find_debuginfo_opts --keep-section .rustc |
---|
| 207 | %endif |
---|
| 208 | |
---|
| 209 | # Use hardening ldflags. |
---|
| 210 | %global rustflags -Clink-arg=-Wl,-z,relro,-z,now |
---|
| 211 | |
---|
| 212 | %if %{without bundled_llvm} && "%{llvm_root}" != "%{_prefix}" |
---|
| 213 | # https://github.com/rust-lang/rust/issues/40717 |
---|
| 214 | %global library_path $(%{llvm_root}/bin/llvm-config --libdir) |
---|
| 215 | %endif |
---|
| 216 | |
---|
| 217 | %description |
---|
| 218 | Rust is a systems programming language that runs blazingly fast, prevents |
---|
| 219 | segfaults, and guarantees thread safety. |
---|
| 220 | |
---|
| 221 | This package includes the Rust compiler and documentation generator. |
---|
| 222 | |
---|
| 223 | |
---|
| 224 | %package std-static |
---|
| 225 | Summary: Standard library for Rust |
---|
[12499] | 226 | Group: programming |
---|
[11321] | 227 | |
---|
| 228 | %description std-static |
---|
| 229 | This package includes the standard libraries for building applications |
---|
| 230 | written in Rust. |
---|
| 231 | |
---|
| 232 | |
---|
| 233 | %package debugger-common |
---|
| 234 | Summary: Common debugger pretty printers for Rust |
---|
[12499] | 235 | Group: programming |
---|
[11321] | 236 | BuildArch: noarch |
---|
| 237 | |
---|
| 238 | %description debugger-common |
---|
| 239 | This package includes the common functionality for %{name}-gdb and %{name}-lldb. |
---|
| 240 | |
---|
| 241 | |
---|
| 242 | %package gdb |
---|
| 243 | Summary: GDB pretty printers for Rust |
---|
[12499] | 244 | Group: programming |
---|
[11321] | 245 | BuildArch: noarch |
---|
| 246 | Requires: gdb |
---|
| 247 | Requires: %{name}-debugger-common = %{version}-%{release} |
---|
| 248 | |
---|
| 249 | %description gdb |
---|
| 250 | This package includes the rust-gdb script, which allows easier debugging of Rust |
---|
| 251 | programs. |
---|
| 252 | |
---|
| 253 | |
---|
| 254 | %if %{with lldb} |
---|
| 255 | |
---|
| 256 | %package lldb |
---|
| 257 | Summary: LLDB pretty printers for Rust |
---|
[12499] | 258 | Group: programming |
---|
[11321] | 259 | |
---|
| 260 | # It could be noarch, but lldb has limited availability |
---|
| 261 | #BuildArch: noarch |
---|
| 262 | |
---|
| 263 | Requires: lldb |
---|
[12499] | 264 | Requires: python3-lldb |
---|
[11321] | 265 | Requires: %{name}-debugger-common = %{version}-%{release} |
---|
| 266 | |
---|
| 267 | %description lldb |
---|
| 268 | This package includes the rust-lldb script, which allows easier debugging of Rust |
---|
| 269 | programs. |
---|
| 270 | |
---|
| 271 | %endif |
---|
| 272 | |
---|
| 273 | |
---|
| 274 | %package doc |
---|
| 275 | Summary: Documentation for Rust |
---|
[12499] | 276 | Group: documentation |
---|
[11321] | 277 | # NOT BuildArch: noarch |
---|
| 278 | # Note, while docs are mostly noarch, some things do vary by target_arch. |
---|
| 279 | # Koji will fail the build in rpmdiff if two architectures build a noarch |
---|
| 280 | # subpackage differently, so instead we have to keep its arch. |
---|
| 281 | |
---|
| 282 | %description doc |
---|
| 283 | This package includes HTML documentation for the Rust programming language and |
---|
| 284 | its standard library. |
---|
| 285 | |
---|
| 286 | |
---|
[11972] | 287 | %package -n cargo |
---|
| 288 | Summary: Rust's package manager and build tool |
---|
| 289 | Version: %{cargo_version} |
---|
[12499] | 290 | Group: programming |
---|
[11972] | 291 | # For tests: |
---|
| 292 | BuildRequires: git |
---|
| 293 | # Cargo is not much use without Rust |
---|
| 294 | Requires: rust |
---|
| 295 | |
---|
| 296 | %description -n cargo |
---|
| 297 | Cargo is a tool that allows Rust projects to declare their various dependencies |
---|
| 298 | and ensure that you'll always get a repeatable build. |
---|
| 299 | |
---|
| 300 | |
---|
| 301 | %package -n cargo-doc |
---|
| 302 | Summary: Documentation for Cargo |
---|
| 303 | Version: %{cargo_version} |
---|
[12499] | 304 | Group: programming |
---|
[11972] | 305 | BuildArch: noarch |
---|
| 306 | # Cargo no longer builds its own documentation |
---|
| 307 | # https://github.com/rust-lang/cargo/pull/4904 |
---|
| 308 | Requires: rust-doc = %{rustc_version}-%{release} |
---|
| 309 | |
---|
| 310 | %description -n cargo-doc |
---|
| 311 | This package includes HTML documentation for Cargo. |
---|
| 312 | |
---|
| 313 | |
---|
[12228] | 314 | %package -n rustfmt |
---|
[11972] | 315 | Summary: Tool to find and fix Rust formatting issues |
---|
| 316 | Version: %{rustfmt_version} |
---|
[12499] | 317 | Group: programming |
---|
[11972] | 318 | Requires: cargo |
---|
[12228] | 319 | Obsoletes: rustfmt-preview < 1.0.0 |
---|
[11972] | 320 | |
---|
[12228] | 321 | %description -n rustfmt |
---|
[11972] | 322 | A tool for formatting Rust code according to style guidelines. |
---|
| 323 | |
---|
| 324 | |
---|
[12228] | 325 | %package -n rls |
---|
[11972] | 326 | Summary: Rust Language Server for IDE integration |
---|
| 327 | Version: %{rls_version} |
---|
[12499] | 328 | Group: programming |
---|
[11972] | 329 | Requires: rust-analysis |
---|
| 330 | # /usr/bin/rls is dynamically linked against internal rustc libs |
---|
| 331 | Requires: %{name} = %{rustc_version}-%{release} |
---|
[12228] | 332 | Obsoletes: rls-preview < 1.0.0 |
---|
[11972] | 333 | |
---|
[12228] | 334 | %description -n rls |
---|
[11972] | 335 | The Rust Language Server provides a server that runs in the background, |
---|
| 336 | providing IDEs, editors, and other tools with information about Rust programs. |
---|
| 337 | It supports functionality such as 'goto definition', symbol search, |
---|
| 338 | reformatting, and code completion, and enables renaming and refactorings. |
---|
| 339 | |
---|
| 340 | |
---|
[12228] | 341 | %package -n clippy |
---|
[11972] | 342 | Summary: Lints to catch common mistakes and improve your Rust code |
---|
| 343 | Version: %{clippy_version} |
---|
[12499] | 344 | Group: programming |
---|
[11972] | 345 | License: MPLv2.0 |
---|
| 346 | Requires: cargo |
---|
| 347 | # /usr/bin/clippy-driver is dynamically linked against internal rustc libs |
---|
| 348 | Requires: %{name} = %{rustc_version}-%{release} |
---|
[12228] | 349 | Obsoletes: clippy-preview < 1.0.0 |
---|
[11972] | 350 | |
---|
[12228] | 351 | %description -n clippy |
---|
[11972] | 352 | A collection of lints to catch common mistakes and improve your Rust code. |
---|
| 353 | |
---|
| 354 | |
---|
[11321] | 355 | %package src |
---|
| 356 | Summary: Sources for the Rust standard library |
---|
[12499] | 357 | Group: programming |
---|
[11321] | 358 | BuildArch: noarch |
---|
| 359 | |
---|
| 360 | %description src |
---|
| 361 | This package includes source files for the Rust standard library. It may be |
---|
| 362 | useful as a reference for code completion tools in various editors. |
---|
| 363 | |
---|
| 364 | |
---|
[11972] | 365 | %package analysis |
---|
| 366 | Summary: Compiler analysis data for the Rust standard library |
---|
[12499] | 367 | Group: programming |
---|
[11972] | 368 | Requires: rust-std-static = %{rustc_version}-%{release} |
---|
| 369 | |
---|
| 370 | %description analysis |
---|
| 371 | This package contains analysis data files produced with rustc's -Zsave-analysis |
---|
| 372 | feature for the Rust standard library. The RLS (Rust Language Server) uses this |
---|
| 373 | data to provide information about the Rust standard library. |
---|
| 374 | |
---|
[12521] | 375 | %package miri |
---|
| 376 | Summary: An interpreter for Rust's mid-level intermediate representation |
---|
| 377 | Group: programming |
---|
| 378 | Requires: rust = %{rustc_version}-%{release} |
---|
[11972] | 379 | |
---|
[12521] | 380 | %description miri |
---|
| 381 | An experimental interpreter for Rust's mid-level intermediate representation |
---|
| 382 | (MIR). It can run binaries and test suites of cargo projects and detect certain |
---|
| 383 | classes of undefined behavior. |
---|
| 384 | |
---|
| 385 | |
---|
[12354] | 386 | %debug_package |
---|
| 387 | |
---|
| 388 | |
---|
[11321] | 389 | %prep |
---|
| 390 | %ifarch %{bootstrap_arches} |
---|
| 391 | %setup -q -n %{bootstrap_root} -T -b %{bootstrap_source} |
---|
| 392 | ./install.sh --components=cargo,rustc,rust-std-%{rust_triple} \ |
---|
| 393 | --prefix=%{local_rust_root} --disable-ldconfig |
---|
| 394 | test -f '%{local_rust_root}/bin/cargo' |
---|
| 395 | test -f '%{local_rust_root}/bin/rustc' |
---|
| 396 | %endif |
---|
| 397 | |
---|
| 398 | %setup -q -n %{rustc_package} |
---|
| 399 | |
---|
[12228] | 400 | sed -i.try-py3 -e '/try python2.7/i try python3 "$@"' ./configure |
---|
[11321] | 401 | |
---|
| 402 | %if %without bundled_llvm |
---|
[12228] | 403 | rm -rf src/llvm-project/ |
---|
[12512] | 404 | mkdir -p src/llvm-project/libunwind/ |
---|
[11321] | 405 | %endif |
---|
| 406 | |
---|
[11972] | 407 | # We never enable emscripten. |
---|
| 408 | rm -rf src/llvm-emscripten/ |
---|
| 409 | |
---|
[12228] | 410 | # Remove other unused vendored libraries |
---|
| 411 | #rm -rf vendor/curl-sys/curl/ |
---|
| 412 | rm -rf vendor/jemalloc-sys/jemalloc/ |
---|
| 413 | rm -rf vendor/libz-sys/src/zlib/ |
---|
| 414 | rm -rf vendor/lzma-sys/xz-*/ |
---|
| 415 | rm -rf vendor/openssl-src/openssl/ |
---|
| 416 | %if %{without bundled_libgit2} |
---|
| 417 | rm -rf vendor/libgit2-sys/libgit2/ |
---|
| 418 | %endif |
---|
| 419 | %if %{without bundled_libssh2} |
---|
| 420 | rm -rf vendor/libssh2-sys/libssh2/ |
---|
| 421 | %endif |
---|
[11972] | 422 | |
---|
[12228] | 423 | # This only affects the transient rust-installer, but let it use our dynamic xz-libs |
---|
| 424 | sed -i.lzma -e '/LZMA_API_STATIC/d' src/bootstrap/tool.rs |
---|
[11321] | 425 | |
---|
[12228] | 426 | # rename bundled license for packaging |
---|
| 427 | if [ -e vendor/backtrace-sys/src/libbacktrace/LICENSE ]; then |
---|
| 428 | cp -a vendor/backtrace-sys/src/libbacktrace/LICENSE{,-libbacktrace} |
---|
| 429 | fi |
---|
| 430 | |
---|
[11321] | 431 | %if %{with bundled_llvm} && 0%{?epel} |
---|
| 432 | mkdir -p cmake-bin |
---|
| 433 | ln -s /usr/bin/cmake cmake-bin/cmake |
---|
| 434 | %global cmake_path $PWD/cmake-bin |
---|
| 435 | %endif |
---|
| 436 | |
---|
| 437 | %if %{without bundled_llvm} && %{with llvm_static} |
---|
| 438 | # Static linking to distro LLVM needs to add -lffi |
---|
| 439 | # https://github.com/rust-lang/rust/issues/34486 |
---|
| 440 | sed -i.ffi -e '$a #[link(name = "ffi")] extern {}' \ |
---|
| 441 | src/librustc_llvm/lib.rs |
---|
| 442 | %endif |
---|
| 443 | |
---|
| 444 | # The configure macro will modify some autoconf-related files, which upsets |
---|
| 445 | # cargo when it tries to verify checksums in those files. If we just truncate |
---|
| 446 | # that file list, cargo won't have anything to complain about. |
---|
[12228] | 447 | find vendor -name .cargo-checksum.json \ |
---|
[11321] | 448 | -exec sed -i.uncheck -e 's/"files":{[^}]*}/"files":{ }/' '{}' '+' |
---|
| 449 | |
---|
[12228] | 450 | |
---|
[11321] | 451 | %build |
---|
[12228] | 452 | %if %{without bundled_libgit2} |
---|
[11972] | 453 | export LIBGIT2_SYS_USE_PKG_CONFIG=1 |
---|
[12228] | 454 | %endif |
---|
| 455 | %if %{without bundled_libssh2} |
---|
[11972] | 456 | export LIBSSH2_SYS_USE_PKG_CONFIG=1 |
---|
[12228] | 457 | %endif |
---|
[11972] | 458 | |
---|
[11321] | 459 | %{?cmake_path:export PATH=%{cmake_path}:$PATH} |
---|
| 460 | %{?library_path:export LIBRARY_PATH="%{library_path}"} |
---|
| 461 | %{?rustflags:export RUSTFLAGS="%{rustflags}"} |
---|
| 462 | |
---|
| 463 | # We're going to override --libdir when configuring to get rustlib into a |
---|
| 464 | # common path, but we'll fix the shared libraries during install. |
---|
| 465 | %global common_libdir %{_prefix}/lib |
---|
| 466 | %global rustlibdir %{common_libdir}/rustlib |
---|
| 467 | |
---|
[12228] | 468 | %ifarch x86_64 |
---|
[12506] | 469 | %if %{with newrpm} |
---|
[12228] | 470 | %define enable_debuginfo --debuginfo-level=0 --debuginfo-level-std=2 |
---|
| 471 | %else |
---|
| 472 | %define enable_debuginfo --debuginfo-level=0 |
---|
[12506] | 473 | %global debug_package %{nil} |
---|
[12228] | 474 | %endif |
---|
[12506] | 475 | %else |
---|
| 476 | %define enable_debuginfo --debuginfo-level=0 |
---|
| 477 | %global debug_package %{nil} |
---|
| 478 | %endif |
---|
[11321] | 479 | |
---|
[12506] | 480 | # Some builders have relatively little memory for their CPU count. |
---|
| 481 | # At least 2GB per CPU is a good rule of thumb for building rustc. |
---|
| 482 | ncpus=$(/usr/bin/getconf _NPROCESSORS_ONLN) |
---|
| 483 | max_cpus=$(( ($(LANG=C free -g | awk '/^Mem:/{print $2}') + 1) / 2 )) |
---|
| 484 | if [ "$max_cpus" -ge 1 -a "$max_cpus" -lt "$ncpus" ]; then |
---|
| 485 | ncpus="$max_cpus" |
---|
| 486 | fi |
---|
| 487 | |
---|
[12228] | 488 | %if %{with clang} |
---|
| 489 | export CC=clang |
---|
| 490 | export CXX=clang++ |
---|
| 491 | export LDFLAGS="$LDFLAGS -fuse-ld=lld" |
---|
| 492 | export RUSTFLAGS="$RUSTFLAGS -C linker=clang -C link-arg=-fuse-ld=lld" |
---|
| 493 | %endif |
---|
| 494 | |
---|
[12354] | 495 | # workaround for https://github.com/rust-lang/rust/issues/69953 |
---|
| 496 | # --set rust.deny-warnings=false |
---|
| 497 | |
---|
[11321] | 498 | %configure \ |
---|
| 499 | --disable-option-checking \ |
---|
| 500 | --libdir=%{common_libdir} \ |
---|
| 501 | --build=%{rust_triple} --host=%{rust_triple} --target=%{rust_triple} \ |
---|
| 502 | --enable-local-rust --local-rust-root=%{local_rust_root} \ |
---|
[12506] | 503 | %{!?with_bundled_llvm: --llvm-root=%{llvm_root} \ |
---|
| 504 | %{!?llvm_has_filecheck: --disable-codegen-tests} \ |
---|
[11321] | 505 | %{!?with_llvm_static: --enable-llvm-link-shared } } \ |
---|
| 506 | --disable-rpath \ |
---|
| 507 | %{enable_debuginfo} \ |
---|
[11972] | 508 | --enable-extended \ |
---|
[11321] | 509 | --enable-vendor \ |
---|
[11972] | 510 | --enable-verbose-tests \ |
---|
[12228] | 511 | --set rust.codegen-units-std=1 \ |
---|
[12354] | 512 | --release-channel=%{channel} \ |
---|
| 513 | --set rust.deny-warnings=false \ |
---|
| 514 | %{nil} |
---|
[11321] | 515 | |
---|
[12506] | 516 | RUST_BACKTRACE=1 %{__python3} ./x.py build -j "$ncpus" --stage 2 |
---|
| 517 | %{__python3} ./x.py doc --stage 2 |
---|
[11321] | 518 | |
---|
| 519 | |
---|
| 520 | %install |
---|
[11972] | 521 | rm -rf %{buildroot} |
---|
| 522 | |
---|
[11321] | 523 | %{?cmake_path:export PATH=%{cmake_path}:$PATH} |
---|
| 524 | %{?library_path:export LIBRARY_PATH="%{library_path}"} |
---|
| 525 | %{?rustflags:export RUSTFLAGS="%{rustflags}"} |
---|
[12228] | 526 | %if %{with clang} |
---|
| 527 | export CC=clang |
---|
| 528 | export CXX=clang++ |
---|
| 529 | export RUSTFLAGS="$RUSTFLAGS -C linker=clang -C link-arg=-fuse-ld=lld" |
---|
| 530 | %endif |
---|
[11321] | 531 | |
---|
| 532 | DESTDIR=%{buildroot} ./x.py install |
---|
[11972] | 533 | #DESTDIR=%{buildroot} ./x.py install src |
---|
[11321] | 534 | |
---|
| 535 | |
---|
| 536 | # Make sure the shared libraries are in the proper libdir |
---|
| 537 | %if "%{_libdir}" != "%{common_libdir}" |
---|
| 538 | mkdir -p %{buildroot}%{_libdir} |
---|
| 539 | find %{buildroot}%{common_libdir} -maxdepth 1 -type f -name '*.so' \ |
---|
| 540 | -exec mv -v -t %{buildroot}%{_libdir} '{}' '+' |
---|
| 541 | %endif |
---|
| 542 | |
---|
| 543 | # The shared libraries should be executable for debuginfo extraction. |
---|
| 544 | find %{buildroot}%{_libdir} -maxdepth 1 -type f -name '*.so' \ |
---|
| 545 | -exec chmod -v +x '{}' '+' |
---|
| 546 | |
---|
| 547 | # The libdir libraries are identical to those under rustlib/. It's easier on |
---|
| 548 | # library loading if we keep them in libdir, but we do need them in rustlib/ |
---|
| 549 | # to support dynamic linking for compiler plugins, so we'll symlink. |
---|
| 550 | (cd "%{buildroot}%{rustlibdir}/%{rust_triple}/lib" && |
---|
[11972] | 551 | find ../../../../%{_lib} -maxdepth 1 -name '*.so' | |
---|
| 552 | while read lib; do |
---|
[12320] | 553 | if [ -f "${lib##*/}" ]; then |
---|
| 554 | # make sure they're actually identical! |
---|
| 555 | cmp "$lib" "${lib##*/}" |
---|
| 556 | ln -v -f -s -t . "$lib" |
---|
| 557 | fi |
---|
[11972] | 558 | done) |
---|
| 559 | |
---|
[11321] | 560 | # Remove installer artifacts (manifests, uninstall scripts, etc.) |
---|
| 561 | find %{buildroot}%{rustlibdir} -maxdepth 1 -type f -exec rm -v '{}' '+' |
---|
| 562 | |
---|
[11972] | 563 | # Remove backup files from %%configure munging |
---|
| 564 | find %{buildroot}%{rustlibdir} -type f -name '*.orig' -exec rm -v '{}' '+' |
---|
| 565 | |
---|
| 566 | # https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error |
---|
| 567 | # We don't actually need to ship any of those python scripts in rust-src anyway. |
---|
| 568 | |
---|
| 569 | find %{buildroot}%{rustlibdir}/src -type f -name '*.py' -exec rm -v '{}' '+' |
---|
| 570 | |
---|
[11321] | 571 | # FIXME: __os_install_post will strip the rlibs |
---|
| 572 | # -- should we find a way to preserve debuginfo? |
---|
| 573 | |
---|
| 574 | # Remove unwanted documentation files (we already package them) |
---|
[11972] | 575 | # Remove unwanted documentation files (we already package them) |
---|
[11321] | 576 | rm -f %{buildroot}%{_docdir}/%{name}/README.md |
---|
| 577 | rm -f %{buildroot}%{_docdir}/%{name}/COPYRIGHT |
---|
[11972] | 578 | rm -f %{buildroot}%{_docdir}/%{name}/LICENSE |
---|
[11321] | 579 | rm -f %{buildroot}%{_docdir}/%{name}/LICENSE-APACHE |
---|
| 580 | rm -f %{buildroot}%{_docdir}/%{name}/LICENSE-MIT |
---|
[11972] | 581 | rm -f %{buildroot}%{_docdir}/%{name}/LICENSE-THIRD-PARTY |
---|
| 582 | rm -f %{buildroot}%{_docdir}/%{name}/*.old |
---|
[11321] | 583 | |
---|
| 584 | # Sanitize the HTML documentation |
---|
| 585 | find %{buildroot}%{_docdir}/%{name}/html -empty -delete |
---|
| 586 | find %{buildroot}%{_docdir}/%{name}/html -type f -exec chmod -x '{}' '+' |
---|
| 587 | |
---|
[11972] | 588 | # Create the path for crate-devel packages |
---|
| 589 | mkdir -p %{buildroot}%{_datadir}/cargo/registry |
---|
| 590 | |
---|
| 591 | # Cargo no longer builds its own documentation |
---|
| 592 | # https://github.com/rust-lang/cargo/pull/4904 |
---|
| 593 | mkdir -p %{buildroot}%{_docdir}/cargo |
---|
| 594 | ln -sT ../rust/html/cargo/ %{buildroot}%{_docdir}/cargo/html |
---|
| 595 | |
---|
[11321] | 596 | %if %{without lldb} |
---|
| 597 | rm -f %{buildroot}%{_bindir}/rust-lldb |
---|
| 598 | rm -f %{buildroot}%{rustlibdir}/etc/lldb_*.py* |
---|
[12506] | 599 | rm -f %{buildroot}%{rustlibdir}/etc/lldb_commands |
---|
[11321] | 600 | %endif |
---|
| 601 | |
---|
[12228] | 602 | %if %{with bundled_llvm} |
---|
| 603 | rm -rf %{buildroot}/home |
---|
| 604 | %endif |
---|
[11321] | 605 | |
---|
[12228] | 606 | |
---|
[11321] | 607 | %check |
---|
[11972] | 608 | %if %{with test} |
---|
[11321] | 609 | %{?cmake_path:export PATH=%{cmake_path}:$PATH} |
---|
| 610 | %{?library_path:export LIBRARY_PATH="%{library_path}"} |
---|
| 611 | %{?rustflags:export RUSTFLAGS="%{rustflags}"} |
---|
[12228] | 612 | %if %{with clang} |
---|
| 613 | export CC=clang |
---|
| 614 | export CXX=clang++ |
---|
| 615 | export LD=ld.lld |
---|
| 616 | export RUSTFLAGS="$RUSTFLAGS -C linker=ld.lld -C link-arg=-fuse-ld=lld" |
---|
| 617 | %endif |
---|
[11321] | 618 | |
---|
| 619 | # The results are not stable on koji, so mask errors and just log it. |
---|
[12499] | 620 | %{__python3} ./x.py test --no-fail-fast || : |
---|
| 621 | %{__python3} ./x.py test --no-fail-fast cargo || : |
---|
| 622 | %{__python3} ./x.py test --no-fail-fast clippy || : |
---|
| 623 | %{__python3} ./x.py test --no-fail-fast rls || : |
---|
| 624 | %{__python3} ./x.py test --no-fail-fast rustfmt || : |
---|
[11972] | 625 | %endif |
---|
[11321] | 626 | |
---|
| 627 | |
---|
| 628 | %post -p /sbin/ldconfig |
---|
| 629 | %postun -p /sbin/ldconfig |
---|
| 630 | |
---|
| 631 | |
---|
| 632 | %files |
---|
| 633 | %license COPYRIGHT LICENSE-APACHE LICENSE-MIT |
---|
[12228] | 634 | #license src/libbacktrace/LICENSE-libbacktrace |
---|
[11321] | 635 | %doc README.md |
---|
| 636 | %{_bindir}/rustc |
---|
| 637 | %{_bindir}/rustdoc |
---|
| 638 | %{_libdir}/*.so |
---|
| 639 | %{_mandir}/man1/rustc.1* |
---|
| 640 | %{_mandir}/man1/rustdoc.1* |
---|
| 641 | %dir %{rustlibdir} |
---|
| 642 | %dir %{rustlibdir}/%{rust_triple} |
---|
| 643 | %dir %{rustlibdir}/%{rust_triple}/lib |
---|
| 644 | %{rustlibdir}/%{rust_triple}/lib/*.so |
---|
| 645 | |
---|
| 646 | %files std-static |
---|
| 647 | %dir %{rustlibdir} |
---|
| 648 | %dir %{rustlibdir}/%{rust_triple} |
---|
| 649 | %dir %{rustlibdir}/%{rust_triple}/lib |
---|
| 650 | %{rustlibdir}/%{rust_triple}/lib/*.rlib |
---|
| 651 | |
---|
| 652 | %files debugger-common |
---|
| 653 | %dir %{rustlibdir} |
---|
| 654 | %dir %{rustlibdir}/etc |
---|
[12499] | 655 | %{rustlibdir}/etc/rust_types.py* |
---|
[11321] | 656 | |
---|
| 657 | %files gdb |
---|
| 658 | %{_bindir}/rust-gdb |
---|
| 659 | %{rustlibdir}/etc/gdb_*.py* |
---|
[12228] | 660 | %exclude %{_bindir}/rust-gdbgui |
---|
[11321] | 661 | |
---|
| 662 | %if %with lldb |
---|
| 663 | %files lldb |
---|
| 664 | %{_bindir}/rust-lldb |
---|
| 665 | %{rustlibdir}/etc/lldb_*.py* |
---|
[12506] | 666 | %{rustlibdir}/etc/lldb_commands |
---|
[11321] | 667 | %endif |
---|
| 668 | |
---|
| 669 | %files doc |
---|
| 670 | %docdir %{_docdir}/%{name} |
---|
| 671 | %dir %{_docdir}/%{name} |
---|
| 672 | %dir %{_docdir}/%{name}/html |
---|
| 673 | %{_docdir}/%{name}/html/*/ |
---|
| 674 | %{_docdir}/%{name}/html/*.html |
---|
| 675 | %{_docdir}/%{name}/html/*.css |
---|
| 676 | %{_docdir}/%{name}/html/*.js |
---|
[12228] | 677 | %{_docdir}/%{name}/html/*.png |
---|
[11972] | 678 | %{_docdir}/%{name}/html/*.svg |
---|
[11321] | 679 | %{_docdir}/%{name}/html/*.woff |
---|
| 680 | %license %{_docdir}/%{name}/html/*.txt |
---|
[12228] | 681 | %license %{_docdir}/%{name}/html/*.md |
---|
[11321] | 682 | |
---|
[11972] | 683 | %files -n cargo |
---|
| 684 | %license src/tools/cargo/LICENSE-APACHE src/tools/cargo/LICENSE-MIT src/tools/cargo/LICENSE-THIRD-PARTY |
---|
| 685 | %doc src/tools/cargo/README.md |
---|
| 686 | %{_bindir}/cargo |
---|
| 687 | %{_mandir}/man1/cargo*.1* |
---|
| 688 | %dir %{_sysconfdir}/bash_completion.d |
---|
| 689 | %{_sysconfdir}/bash_completion.d/cargo |
---|
| 690 | %dir %{_datadir}/zsh |
---|
| 691 | %dir %{_datadir}/zsh/site-functions |
---|
| 692 | %{_datadir}/zsh/site-functions/_cargo |
---|
| 693 | %dir %{_datadir}/cargo |
---|
| 694 | %dir %{_datadir}/cargo/registry |
---|
| 695 | |
---|
| 696 | %files -n cargo-doc |
---|
| 697 | %docdir %{_docdir}/cargo |
---|
| 698 | %dir %{_docdir}/cargo |
---|
| 699 | %{_docdir}/cargo/html |
---|
| 700 | |
---|
[12228] | 701 | %files -n rustfmt |
---|
[11972] | 702 | %{_bindir}/rustfmt |
---|
| 703 | %{_bindir}/cargo-fmt |
---|
| 704 | %doc src/tools/rustfmt/{README,CHANGELOG,Configurations}.md |
---|
| 705 | %license src/tools/rustfmt/LICENSE-{APACHE,MIT} |
---|
| 706 | |
---|
[12228] | 707 | %files -n rls |
---|
[11972] | 708 | %{_bindir}/rls |
---|
| 709 | %doc src/tools/rls/{README.md,COPYRIGHT,debugging.md} |
---|
| 710 | %license src/tools/rls/LICENSE-{APACHE,MIT} |
---|
| 711 | |
---|
[12228] | 712 | %files -n clippy |
---|
[11972] | 713 | %{_bindir}/cargo-clippy |
---|
| 714 | %{_bindir}/clippy-driver |
---|
| 715 | %doc src/tools/clippy/{README.md,CHANGELOG.md} |
---|
[12228] | 716 | %license src/tools/clippy/LICENSE* |
---|
[11972] | 717 | |
---|
[11321] | 718 | %files src |
---|
| 719 | %dir %{rustlibdir} |
---|
| 720 | %{rustlibdir}/src |
---|
| 721 | |
---|
[11972] | 722 | %files analysis |
---|
[12499] | 723 | %{_bindir}/rust-analyzer |
---|
[11972] | 724 | %{rustlibdir}/%{rust_triple}/analysis/ |
---|
| 725 | |
---|
[12521] | 726 | %files miri |
---|
| 727 | %{_bindir}/miri |
---|
| 728 | %{_bindir}/cargo-miri |
---|
[12499] | 729 | |
---|
[12521] | 730 | |
---|
[11321] | 731 | %changelog |
---|
[12521] | 732 | * Wed Jan 27 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.49.0-1 |
---|
| 733 | - new upstream release. |
---|
| 734 | |
---|
[12512] | 735 | * Sat Dec 12 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.48.0-1 |
---|
| 736 | - new upstream release. |
---|
| 737 | |
---|
[12506] | 738 | * Fri Oct 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.47.0-1 |
---|
| 739 | - new upstream release. |
---|
| 740 | |
---|
[12499] | 741 | * Thu Sep 24 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.46.0-1 |
---|
| 742 | - new upstream release. |
---|
| 743 | |
---|
[12354] | 744 | * Thu Mar 26 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.42.0-1 |
---|
| 745 | - new upstream release. |
---|
| 746 | - separated debuginfo. |
---|
| 747 | |
---|
[12320] | 748 | * Sun Dec 22 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.40.0-1 |
---|
| 749 | - new upstream release. |
---|
| 750 | |
---|
[12228] | 751 | * Sat Sep 28 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.38.0-1 |
---|
| 752 | - new upstream release. |
---|
| 753 | - erased "-preview" from the name of subpackages. |
---|
| 754 | |
---|
[11972] | 755 | * Wed Dec 05 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.30.1-1 |
---|
| 756 | - new upstream release. |
---|
| 757 | - dropped Patch1. |
---|
| 758 | - added subpackages cargo, cargo-doc, rustformat-preview, rls-preview, clippy-preview and rust-analysis. |
---|
| 759 | |
---|
[11321] | 760 | * Fri Jan 05 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.23.0-1 |
---|
| 761 | - Update to 1.23.0 (stable). |
---|
| 762 | |
---|
| 763 | * Tue Jan 02 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.23.0-0.beta1 |
---|
| 764 | - initial build for Vine Linux. |
---|
| 765 | - Update to 1.23.0-beta. |
---|
| 766 | - built a bootstrap rpm. |
---|
| 767 | |
---|
| 768 | * Thu Nov 23 2017 Josh Stone <jistone@redhat.com> - 1.22.1-1 |
---|
| 769 | - Update to 1.22.1. |
---|
| 770 | |
---|
| 771 | * Thu Oct 12 2017 Josh Stone <jistone@redhat.com> - 1.21.0-1 |
---|
| 772 | - Update to 1.21.0. |
---|
| 773 | |
---|
| 774 | * Mon Sep 11 2017 Josh Stone <jistone@redhat.com> - 1.20.0-2 |
---|
| 775 | - ABI fixes for ppc64 and s390x. |
---|
| 776 | |
---|
| 777 | * Thu Aug 31 2017 Josh Stone <jistone@redhat.com> - 1.20.0-1 |
---|
| 778 | - Update to 1.20.0. |
---|
| 779 | - Add a rust-src subpackage. |
---|
| 780 | |
---|
| 781 | * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.0-4 |
---|
| 782 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild |
---|
| 783 | |
---|
| 784 | * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.0-3 |
---|
| 785 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
---|
| 786 | |
---|
| 787 | * Mon Jul 24 2017 Josh Stone <jistone@redhat.com> - 1.19.0-2 |
---|
| 788 | - Use find-debuginfo.sh --keep-section .rustc |
---|
| 789 | |
---|
| 790 | * Thu Jul 20 2017 Josh Stone <jistone@redhat.com> - 1.19.0-1 |
---|
| 791 | - Update to 1.19.0. |
---|
| 792 | |
---|
| 793 | * Thu Jun 08 2017 Josh Stone <jistone@redhat.com> - 1.18.0-1 |
---|
| 794 | - Update to 1.18.0. |
---|
| 795 | |
---|
| 796 | * Mon May 08 2017 Josh Stone <jistone@redhat.com> - 1.17.0-2 |
---|
| 797 | - Move shared libraries back to libdir and symlink in rustlib |
---|
| 798 | |
---|
| 799 | * Thu Apr 27 2017 Josh Stone <jistone@redhat.com> - 1.17.0-1 |
---|
| 800 | - Update to 1.17.0. |
---|
| 801 | |
---|
| 802 | * Mon Mar 20 2017 Josh Stone <jistone@redhat.com> - 1.16.0-3 |
---|
| 803 | - Make rust-lldb arch-specific to deal with lldb deps |
---|
| 804 | |
---|
| 805 | * Fri Mar 17 2017 Josh Stone <jistone@redhat.com> - 1.16.0-2 |
---|
| 806 | - Limit rust-lldb arches |
---|
| 807 | |
---|
| 808 | * Thu Mar 16 2017 Josh Stone <jistone@redhat.com> - 1.16.0-1 |
---|
| 809 | - Update to 1.16.0. |
---|
| 810 | - Use rustbuild instead of the old makefiles. |
---|
| 811 | - Update bootstrapping to include rust-std and cargo. |
---|
| 812 | - Add a rust-lldb subpackage. |
---|
| 813 | |
---|
| 814 | * Thu Feb 09 2017 Josh Stone <jistone@redhat.com> - 1.15.1-1 |
---|
| 815 | - Update to 1.15.1. |
---|
| 816 | - Require rust-rpm-macros for new crate packaging. |
---|
| 817 | - Keep shared libraries under rustlib/, only debug-stripped. |
---|
| 818 | - Merge and clean up conditionals for epel7. |
---|
| 819 | |
---|
| 820 | * Fri Dec 23 2016 Josh Stone <jistone@redhat.com> - 1.14.0-2 |
---|
| 821 | - Rebuild without bootstrap binaries. |
---|
| 822 | |
---|
| 823 | * Thu Dec 22 2016 Josh Stone <jistone@redhat.com> - 1.14.0-1 |
---|
| 824 | - Update to 1.14.0. |
---|
| 825 | - Rewrite bootstrap logic to target specific arches. |
---|
| 826 | - Bootstrap ppc64, ppc64le, s390x. (thanks to Sinny Kumari for testing!) |
---|
| 827 | |
---|
| 828 | * Thu Nov 10 2016 Josh Stone <jistone@redhat.com> - 1.13.0-1 |
---|
| 829 | - Update to 1.13.0. |
---|
| 830 | - Use hardening flags for linking. |
---|
| 831 | - Split the standard library into its own package |
---|
| 832 | - Centralize rustlib/ under /usr/lib/ for multilib integration. |
---|
| 833 | |
---|
| 834 | * Thu Oct 20 2016 Josh Stone <jistone@redhat.com> - 1.12.1-1 |
---|
| 835 | - Update to 1.12.1. |
---|
| 836 | |
---|
| 837 | * Fri Oct 14 2016 Josh Stone <jistone@redhat.com> - 1.12.0-7 |
---|
| 838 | - Rebuild with LLVM 3.9. |
---|
| 839 | - Add ncurses-devel for llvm-config's -ltinfo. |
---|
| 840 | |
---|
| 841 | * Thu Oct 13 2016 Josh Stone <jistone@redhat.com> - 1.12.0-6 |
---|
| 842 | - Rebuild with llvm-static, preparing for 3.9 |
---|
| 843 | |
---|
| 844 | * Fri Oct 07 2016 Josh Stone <jistone@redhat.com> - 1.12.0-5 |
---|
| 845 | - Rebuild with fixed eu-strip (rhbz1380961) |
---|
| 846 | |
---|
| 847 | * Fri Oct 07 2016 Josh Stone <jistone@redhat.com> - 1.12.0-4 |
---|
| 848 | - Rebuild without bootstrap binaries. |
---|
| 849 | |
---|
| 850 | * Thu Oct 06 2016 Josh Stone <jistone@redhat.com> - 1.12.0-3 |
---|
| 851 | - Bootstrap aarch64. |
---|
| 852 | - Use jemalloc's MALLOC_CONF to work around #36944. |
---|
| 853 | - Apply pr36933 to really disable armv7hl NEON. |
---|
| 854 | |
---|
| 855 | * Sat Oct 01 2016 Josh Stone <jistone@redhat.com> - 1.12.0-2 |
---|
| 856 | - Protect .rustc from rpm stripping. |
---|
| 857 | |
---|
| 858 | * Fri Sep 30 2016 Josh Stone <jistone@redhat.com> - 1.12.0-1 |
---|
| 859 | - Update to 1.12.0. |
---|
| 860 | - Always use --local-rust-root, even for bootstrap binaries. |
---|
| 861 | - Remove the rebuild conditional - the build system now figures it out. |
---|
| 862 | - Let minidebuginfo do its thing, since metadata is no longer a note. |
---|
| 863 | - Let rust build its own compiler-rt builtins again. |
---|
| 864 | |
---|
| 865 | * Sat Sep 03 2016 Josh Stone <jistone@redhat.com> - 1.11.0-3 |
---|
| 866 | - Rebuild without bootstrap binaries. |
---|
| 867 | |
---|
| 868 | * Fri Sep 02 2016 Josh Stone <jistone@redhat.com> - 1.11.0-2 |
---|
| 869 | - Bootstrap armv7hl, with backported no-neon patch. |
---|
| 870 | |
---|
| 871 | * Wed Aug 24 2016 Josh Stone <jistone@redhat.com> - 1.11.0-1 |
---|
| 872 | - Update to 1.11.0. |
---|
| 873 | - Drop the backported patches. |
---|
| 874 | - Patch get-stage0.py to trust existing bootstrap binaries. |
---|
| 875 | - Use libclang_rt.builtins from compiler-rt, dodging llvm-static issues. |
---|
| 876 | - Use --local-rust-root to make sure the right bootstrap is used. |
---|
| 877 | |
---|
| 878 | * Sat Aug 13 2016 Josh Stone <jistone@redhat.com> 1.10.0-4 |
---|
| 879 | - Rebuild without bootstrap binaries. |
---|
| 880 | |
---|
| 881 | * Fri Aug 12 2016 Josh Stone <jistone@redhat.com> - 1.10.0-3 |
---|
| 882 | - Initial import into Fedora (#1356907), bootstrapped |
---|
| 883 | - Format license text as suggested in review. |
---|
| 884 | - Note how the tests already run in parallel. |
---|
| 885 | - Undefine _include_minidebuginfo, because it duplicates ".note.rustc". |
---|
| 886 | - Don't let checks fail the whole build. |
---|
| 887 | - Note that -doc can't be noarch, as rpmdiff doesn't allow variations. |
---|
| 888 | |
---|
| 889 | * Tue Jul 26 2016 Josh Stone <jistone@redhat.com> - 1.10.0-2 |
---|
| 890 | - Update -doc directory ownership, and mark its licenses. |
---|
| 891 | - Package and declare licenses for libbacktrace and hoedown. |
---|
| 892 | - Set bootstrap_base as a global. |
---|
| 893 | - Explicitly require python2. |
---|
| 894 | |
---|
| 895 | * Thu Jul 14 2016 Josh Stone <jistone@fedoraproject.org> - 1.10.0-1 |
---|
| 896 | - Initial package, bootstrapped |
---|