Commit Graph

236 Commits

Author SHA1 Message Date
Mikael Urankar 00596638f7 lang/rust-nightly: Update to 2020-11-21 2020-11-22 13:51:59 +00:00
Mikael Urankar f9babeccb2 lang/rust-nightly: update bootstrap
should have been part of 555103
2020-11-15 13:37:59 +00:00
Mikael Urankar 020b10bb79 lang/rust-nightly: Update to 1.49.0.20201114 2020-11-14 09:38:56 +00:00
Mikael Urankar 3cf8e92eef lang/rust-nightly: Update to 1.49.0.20201014 2020-10-14 09:25:31 +00:00
Tobias Kortkamp a3daa0902a lang/rust-nightly: Update to 1.48.0.20200907
Changes:	https://github.com/rust-lang/rust/compare/130359cb05...73dc675b94
2020-09-07 22:17:57 +00:00
Tobias Kortkamp 56a0fd2ac4 lang/rust-nightly: Update to 1.48.0.20200902
Changes:	https://github.com/rust-lang/rust/compare/5180f3da5f...130359cb05
2020-09-02 21:22:00 +00:00
Tobias Kortkamp c215c2e28c lang/rust-nightly: Update to 1.47.0.20200824
Changes:	https://github.com/rust-lang/rust/compare/792c645ca7...5180f3da5f
2020-08-24 06:43:14 +00:00
Tobias Kortkamp d246c066dc lang/rust-nightly: Disable DOCS
It is currently broken:

error: unresolved link to `crate::os::unix::ffi::OsStrExt`
   --> library/std/src/ffi/mod.rs:134:22
    |
134 | //! [unix.OsStrExt]: crate::os::unix::ffi::OsStrExt
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
    |
    = note: `-D broken-intra-doc-links` implied by `-D warnings`
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: unresolved link to `crate::os::unix::ffi::OsStrExt::from_bytes`
   --> library/std/src/ffi/mod.rs:135:21
    |
135 | //! [`from_bytes`]: crate::os::unix::ffi::OsStrExt::from_bytes
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
    |
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: unresolved link to `crate::os::unix::ffi::OsStrExt::as_bytes`
   --> library/std/src/ffi/mod.rs:136:19
    |
136 | //! [`as_bytes`]: crate::os::unix::ffi::OsStrExt::as_bytes
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
    |
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: unresolved link to `crate::os::unix::ffi::OsStringExt`
   --> library/std/src/ffi/mod.rs:131:25
    |
131 | //! [unix.OsStringExt]: crate::os::unix::ffi::OsStringExt
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
    |
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: unresolved link to `crate::os::unix::ffi::OsStringExt::from_vec`
   --> library/std/src/ffi/mod.rs:132:19
    |
132 | //! [`from_vec`]: crate::os::unix::ffi::OsStringExt::from_vec
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
    |
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: unresolved link to `crate::os::unix::ffi::OsStringExt::into_vec`
   --> library/std/src/ffi/mod.rs:133:19
    |
133 | //! [`into_vec`]: crate::os::unix::ffi::OsStringExt::into_vec
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
    |
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: unresolved link to `crate::os::windows::ffi::OsStrExt`
   --> library/std/src/ffi/mod.rs:138:25
    |
138 | //! [windows.OsStrExt]: crate::os::windows::ffi::OsStrExt
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
    |
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: unresolved link to `crate::os::windows::ffi::OsStrExt::encode_wide`
   --> library/std/src/ffi/mod.rs:139:22
    |
139 | //! [`encode_wide`]: crate::os::windows::ffi::OsStrExt::encode_wide
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
    |
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: unresolved link to `crate::os::windows::ffi::OsStringExt`
   --> library/std/src/ffi/mod.rs:141:28
    |
141 | //! [windows.OsStringExt]: crate::os::windows::ffi::OsStringExt
    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
    |
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: unresolved link to `crate::os::windows::ffi::OsStringExt::from_wide`
   --> library/std/src/ffi/mod.rs:142:20
    |
142 | //! [`from_wide`]: crate::os::windows::ffi::OsStringExt::from_wide
    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
    |
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: unresolved link to `crate::os::unix::fs::PermissionsExt`
   --> library/std/src/fs.rs:176:25
    |
176 | /// [`PermissionsExt`]: crate::os::unix::fs::PermissionsExt
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
    |
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: unresolved link to `crate::os::unix::fs::symlink`
    --> library/std/src/fs.rs:1741:37
     |
1741 | /// [`std::os::unix::fs::symlink`]: crate::os::unix::fs::symlink
     |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
     |
     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: unresolved link to `crate::os::windows::fs::symlink_file`
    --> library/std/src/fs.rs:1742:45
     |
1742 | /// [`std::os::windows::fs::symlink_file`]: crate::os::windows::fs::symlink_file
     |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
     |
     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: unresolved link to `crate::os::windows::fs::symlink_dir`
    --> library/std/src/fs.rs:1743:22
     |
1743 | /// [`symlink_dir`]: crate::os::windows::fs::symlink_dir
     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
     |
     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: aborting due to 14 previous errors

error: Could not document `std`.
2020-08-24 06:42:42 +00:00
Tobias Kortkamp 73f07f59d1 lang/rust-nightly: Update to 1.47.0.20200818
Changes:	https://github.com/rust-lang/rust/compare/770bd3d1d0...792c645ca7
2020-08-18 04:09:11 +00:00
Tobias Kortkamp d039a44d74 lang/rust-nightly: Update to 1.47.0.20200811
Changes:	https://github.com/rust-lang/rust/compare/0820e54a8a...770bd3d1d0
2020-08-11 16:52:34 +00:00
Tobias Kortkamp 1c843dbb6a lang/rust*: Bring back the llvm-config-wrapper patches after r543251
Apparently they are still needed:
http://gohan03.nyi.freebsd.org/data/head-amd64-default-baseline/p543836_s363720/logs/errors/rust-1.45.1.log
http://gohan03.nyi.freebsd.org/data/head-amd64-default-baseline/p543836_s363720/logs/errors/rust-nightly-1.47.0.20200724.log
http://gohan03.nyi.freebsd.org/data/head-amd64-default-baseline/p544005_s363784/logs/errors/rust-1.45.1.log

Reported by:	antoine
2020-08-05 14:46:18 +00:00
Tobias Kortkamp 7208e49e39 lang/rust-nightly: Update to 1.47.0.20200724
Changes:	https://github.com/rust-lang/rust/compare/39d5a61f2e...0820e54a8a
2020-07-24 15:51:17 +00:00
Tobias Kortkamp 1f9e96c6c1 lang/rust-nightly: Attempt to fix intermittent "can't find crate for std" build failures
The location of rustc (found via env::current_exe()) is used to
find the right libstd.  However it might have been "copied" by
creating a hard link to the new location instead.  Like /proc/curproc/file,
KERN_PROC_PATHNAME (used internally by current_exe()) can return
any of the file's multiple paths.  Most of the time it returns the
right rustc path and the build will succeed but occasionally it
will return the "wrong" path and the build fails with:

    error[E0463]: can't find crate for `std`

If this is right a viable workaround should be to never create hard
links during the build, so let's try that.

Also drop the related llvm-config-wrapper workaround.

PR:		248184
2020-07-24 15:50:56 +00:00
Tobias Kortkamp 03e6b89b6d lang/rust-nightly: Unbreak build
RLS is broken in nightly-2020-07-18 but that should not have aborted
the package build.  Add a workaround for the dist.missing-tools
with build.tools bug.

https://github.com/rust-lang/rust/issues/74545
2020-07-20 17:52:06 +00:00
Tobias Kortkamp e8350c46fb lang/rust-nightly: Update to 1.47.0.20200718
Changes:	https://github.com/rust-lang/rust/compare/0c03aee8b8...39d5a61f2e
2020-07-18 13:14:42 +00:00
Tobias Kortkamp bc1e2a0a3c lang/rust-nightly: Update to 1.46.0.20200707
Changes:	https://github.com/rust-lang/rust/compare/0ca7f74dbd...0c03aee8b8
2020-07-07 15:46:47 +00:00
Tobias Kortkamp 4ad89416c1 lang/rust-nightly: Update to 1.46.0.20200630
Changes:	https://github.com/rust-lang/rust/compare/a8cf399117...0ca7f74dbd
2020-06-30 09:47:20 +00:00
Tobias Kortkamp 5150dddd9b lang/rust-nightly: Update to 1.46.0.20200622
Changes:	https://github.com/rust-lang/rust/compare/4fb54ed484...a8cf399117
2020-06-22 17:16:29 +00:00
Tobias Kortkamp d85c40b711 lang/rust-nightly: Update to 1.46.0.20200615
- Try building LLVM with Ninja
- Move post-configure to lang/rust

Changes:	https://github.com/rust-lang/rust/compare/826cb062a6...4fb54ed484
2020-06-15 22:26:47 +00:00
Tobias Kortkamp 0dde186085 lang/rust-nightly: Update to 1.46.0.20200606
Changes:	https://github.com/rust-lang/rust/compare/4bd32c9804...826cb062a6
2020-06-06 17:10:54 +00:00
Tobias Kortkamp 8e2528559a lang/rust-nightly: Update to 1.45.0.20200530
Changes:	https://github.com/rust-lang/rust/compare/d79f1bd31a...4bd32c9804
2020-05-30 13:06:21 +00:00
Tobias Kortkamp d48b854316 lang/rust-nightly: Update to 1.45.0.20200518
Changes:	https://github.com/rust-lang/rust/compare/9912925c25...d79f1bd31a
2020-05-18 19:51:07 +00:00
Alan Somers a91e9355f1 lang/rust-nightly: enable the Rust profiler
Enable the rust profiler on rust-nightly (as an unstable feature, it's not
allowed on the stable toolchain). This allows it to generate code coverage
reports.

https://doc.rust-lang.org/unstable-book/compiler-flags/profile.html
https://crates.io/crates/grcov

Reviewed by:	tobik
Approved by:	tobik (maintainer)
Differential Revision:	https://reviews.freebsd.org/D24765
2020-05-18 18:40:41 +00:00
Tobias Kortkamp d791058c58 lang/rust-nightly: Update to 1.45.0.20200511
Changes:	https://github.com/rust-lang/rust/compare/65b448273d...9912925c25
2020-05-11 05:47:40 +00:00
Tobias Kortkamp 5202a56eff lang/rust-nightly: Update to 1.45.0.20200504
Changes:	https://github.com/rust-lang/rust/compare/e83f756349...65b448273d
2020-05-04 04:24:59 +00:00
Tobias Kortkamp a981c37acf lang/rust-nightly: Update to 1.45.0.20200427
Changes:	https://github.com/rust-lang/rust/compare/7f3df57724...e83f756349
2020-04-27 04:19:46 +00:00
Tobias Kortkamp eefc22ffc3 devel/libgit2: Update to 1.0.0
Changes:	https://github.com/libgit2/libgit2/releases/tag/v1.0.0
ABI:		https://abi-laboratory.pro/tracker/timeline/libgit2
Approved by:	mfechner (maintainer)
Differential Revision:	https://reviews.freebsd.org/D24471
2020-04-19 03:55:22 +00:00
Tobias Kortkamp 54f81f8291 lang/rust-nightly: Update to 1.44.0.20200417
- Add workaround to fix build when CC/CXX have "clang" in them [1]
- Add patch to allow build with outdated libgit2 0.99.0

Changes:	https://github.com/rust-lang/rust/compare/485c5fb6e1...7f3df57724
PR:		238556 [1]
2020-04-17 10:53:18 +00:00
Tobias Kortkamp b2279b67bf lang/rust-nightly: Update to 1.44.0.20200409
Changes:	https://github.com/rust-lang/rust/compare/76b11980ad...485c5fb6e1
2020-04-09 05:57:13 +00:00
Tobias Kortkamp c805dd576e lang/rust-nightly: Update to 1.44.0.20200402
Changes:	https://github.com/rust-lang/rust/compare/2fbb07525e...76b11980ad
2020-04-02 18:32:10 +00:00
Tobias Kortkamp 17f161686e lang/rust-nightly: Update to 1.44.0.20200327
Changes:	https://github.com/rust-lang/rust/compare/f509b26a77...2fbb07525e
2020-03-27 17:59:19 +00:00
Tobias Kortkamp 95ebc1c533 lang/rust-nightly: Update to 1.44.0.20200319
Go back to system libgit2 now that it was updated to 0.99.0.

Changes:	https://github.com/rust-lang/rust/compare/96bb8b31c8...f509b26a77
2020-03-19 07:05:29 +00:00
Tobias Kortkamp 0fadf15072 lang/rust-nightly: Update to 1.43.0.20200306
libgit2-sys is now based on libgit2 0.99.0.  While 0.99.0 is supposed
to be API compatible with 0.28, it has not yet been updated in the
ports tree and the git2 crate now make use of some of the new
function return values.  Stop relying on system libgit2 and use the
bundled one.  Upstream does not make any guarantees about system
libgit2 support in the first place.

Changes:	https://github.com/rust-lang/rust/compare/6d69caba11...96bb8b31c8
2020-03-06 12:43:06 +00:00
Tobias Kortkamp d0c2a2ceea lang/rust: Attempt to address unreliable rust-lld build
It sometimes fails [0,1] and sometimes succeeds [2,3].  When it
fails it fails with

running: "cmake" "/wrkdirs/usr/ports/lang/rust/work/rustc-1.41.1-src/src/llvm-project/lld" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_C_COMPILER=cc" "-DCMAKE_CXX_COMPILER=c++" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 -pipe -fstack-protector-strong -fno-strict-aliasing" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 -pipe -fstack-protector-strong -fno-strict-aliasing" "-DLLVM_CONFIG_PATH=/wrkdirs/usr/ports/lang/rust/work/rustc-1.41.1-src/build/bootstrap/debug/deps/llvm-config-wrapper" "-DLLVM_INCLUDE_TESTS=OFF" "-DCMAKE_INSTALL_PREFIX=/wrkdirs/usr/ports/lang/rust/work/rustc-1.41.1-src/build/x86_64-unknown-freebsd/lld" "-DCMAKE_BUILD_TYPE=Release"
-- The C compiler identification is Clang 9.0.1
-- The CXX compiler identification is Clang 9.0.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:23 (message):
  llvm-config failed with status No such file or directory

-- Configuring incomplete, errors occurred!

There seems to be some kind of race when using llvm-config-wrapper,
but at the point where LLD is built, both llvm-config and
llvm-config-wrapper should definitely be available.  Both are built
successfully much earlier in the build.  Attempt to improve reliability
by not using the wrapper.  It is a hack in the first place that is
only really needed on Windows.

This is a shot in the dark.  I am unable to reproduce this myself.

[0] http://beefy18.nyi.freebsd.org/data/head-amd64-default/p527397_s358451/logs/errors/rust-1.41.1.log
[1] http://gohan03.nyi.freebsd.org/data/head-amd64-default-baseline/p527486_s358478/logs/errors/rust-1.41.1.log
[2] http://beefy18.nyi.freebsd.org/data/head-amd64-default/p527397_s358451/logs/rust-nightly-1.43.0.20200228.log
[3] http://gohan03.nyi.freebsd.org/data/head-amd64-default-baseline/p527313_s358414/logs/rust-1.41.1.log
2020-03-01 11:09:44 +00:00
Tobias Kortkamp 79c207c085 lang/rust-nightly: Update to 1.43.0.20200228
Changes:	https://github.com/rust-lang/rust/compare/7760cd0fbb...6d69caba11
2020-02-28 05:12:24 +00:00
Tobias Kortkamp b543e13adb lang/rust-nightly: Update to 1.43.0.20200220
- Switch backtrace crate patches to upstreamed version

Changes:	https://github.com/rust-lang/rust/compare/433aae93e4...7760cd0fbb
2020-02-20 12:12:06 +00:00
Tobias Kortkamp de88bf6354 lang/rust-nightly: Update to 1.43.0.20200215
Changes:	https://github.com/rust-lang/rust/compare/c9290dceee...433aae93e4
2020-02-15 13:47:10 +00:00
Tobias Kortkamp b807a7b276 lang/rust-nightly: Update to 1.43.0.20200205
Remove some cruft while here.

Changes:	https://github.com/rust-lang/rust/compare/41f41b2354...c9290dceee
2020-02-05 04:29:55 +00:00
Tobias Kortkamp 9c9d62dce0 lang/rust-nightly: Update to 1.42.0.20200124
Nightly bootstraps now have the fix from r523512.  Switch to them
for the time being and drop the workaround.
2020-01-24 20:53:31 +00:00
Tobias Kortkamp d82b187e65 lang/rust-nightly: Unbreak with lld on 13.0 i386
= note: ld: error: relocation R_386_PC32 cannot be used against symbol __rust_probestack; recompile with -fPIC
          >>> defined in /wrkdirs/usr/ports/lang/rust-nightly/work/rustc-nightly-src/build/i686-unknown-freebsd/stage1/lib/rustlib/i686-unknown-freebsd/lib/libcompiler_builtins-6570a75fe85f0e1a.rlib(compiler_builtins-6570a75fe85f0e1a.compiler_builtins.2i519eqi-cgu.15.rcgu.o)
          >>> referenced by std.4xivr03c-cgu.14
          >>>               std-9bd70afd58e204b7.std.4xivr03c-cgu.14.rcgu.o:(_$LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h1c78ed6e734a2bfc (.llvm.10122419023709863394)) in archive /wrkdirs/usr/ports/lang/rust-nightly/work/rustc-nightly-src/build/i686-unknown-freebsd/stage1/lib/rustlib/i686-unknown-freebsd/lib/libstd-9bd70afd58e204b7.rlib

          ld: error: relocation R_386_PC32 cannot be used against symbol __rust_probestack; recompile with -fPIC
          >>> defined in /wrkdirs/usr/ports/lang/rust-nightly/work/rustc-nightly-src/build/i686-unknown-freebsd/stage1/lib/rustlib/i686-unknown-freebsd/lib/libcompiler_builtins-6570a75fe85f0e1a.rlib(compiler_builtins-6570a75fe85f0e1a.compiler_builtins.2i519eqi-cgu.15.rcgu.o)
          >>> referenced by std.4xivr03c-cgu.14
          >>>               std-9bd70afd58e204b7.std.4xivr03c-cgu.14.rcgu.o:(std::io::util::copy::h9115f048f2203467) in archive /wrkdirs/usr/ports/lang/rust-nightly/work/rustc-nightly-src/build/i686-unknown-freebsd/stage1/lib/rustlib/i686-unknown-freebsd/lib/libstd-9bd70afd58e204b7.rlib
          clang-cpp: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error

http://beefy17.nyi.freebsd.org/data/head-i386-default/p523508_s356869/logs/rust-nightly-1.42.0.20200118.log
2020-01-19 06:53:15 +00:00
Tobias Kortkamp 50c841a2c2 lang/rust-nightly: Update to 1.42.0.20200118 2020-01-18 09:49:47 +00:00
Jan Beich f90f9175be lang/rust-nightly: update to 1.42.0.20191222
Changes:	https://github.com/rust-lang/rust/compare/01a46509a4c2...fc5deca2143a
2019-12-22 00:36:09 +00:00
Jan Beich 7334ff7e68 lang/rust-nightly: update to 1.42.0.20191221
Changes:	https://github.com/rust-lang/rust/compare/19bd93467617...01a46509a4c2
2019-12-21 00:45:43 +00:00
Jan Beich cb7d6b46b5 lang/rust-nightly: update to 1.41.0.20191219
Changes:	https://github.com/rust-lang/rust/compare/99b89533d4cd...19bd93467617
2019-12-19 00:48:57 +00:00
Jan Beich 74258d20c5 lang/rust-nightly: update to 1.41.0.20191217
Changes:	https://github.com/rust-lang/rust/compare/ff15e9670843...99b89533d4cd
2019-12-17 00:54:30 +00:00
Jan Beich 80d84a190a lang/rust-nightly: update to 1.41.0.20191214
Changes:	https://github.com/rust-lang/rust/compare/27d6f55f47e8...ff15e9670843
2019-12-14 00:38:16 +00:00
Jan Beich c76ccdea21 lang/rust-nightly: update to 1.41.0.20191212
Changes:	https://github.com/rust-lang/rust/compare/76a252ea9e7b...27d6f55f47e8
2019-12-12 00:38:56 +00:00
Jan Beich 19da7c892f lang/rust-nightly: update to 1.41.0.20191210
Changes:	https://github.com/rust-lang/rust/compare/5c5c8eb864e5...76a252ea9e7b
2019-12-10 00:31:36 +00:00
Jan Beich 9ea8369151 lang/rust-nightly: update to 1.41.0.20191208
Changes:	https://github.com/rust-lang/rust/compare/6d77e45f0107...5c5c8eb864e5
2019-12-08 00:45:59 +00:00
Jan Beich d2327c657b lang/rust-nightly: update to 1.41.0.20191205
Changes:	https://github.com/rust-lang/rust/compare/fdc0011561c6...6d77e45f0107
2019-12-05 00:39:30 +00:00