Commit graph

64 commits

Author SHA1 Message Date
Dmitry Marakasov
0181dc409a lang/rust-nightly: update 1.84.0.20241104 → 1.86.0.20250115
PR:		284142
Approved by:	rust (mikael)
2025-01-28 13:55:18 +03:00
Mikael Urankar
6eb6fdae6c lang/rust-nightly: Update to 1.84.0.20241104 2024-11-05 15:14:58 +01:00
Mikael Urankar
9e25c683b8 lang/rust-nightly: Update to 1.83.0 2024-10-03 15:05:35 +02:00
Yuri Victorovich
da2f3f630c devel/RStudio: Revert "feat(create-turbo): apply official-starter transform"
This reverts commit 52c0456dd5.

I have no idea what lead to this commit into devel/RStudio and
lang/rust-nightly to be made.
2024-10-02 12:38:44 -07:00
Turbobot
52c0456dd5 feat(create-turbo): apply official-starter transform 2024-10-02 12:12:31 -07:00
Mikael Urankar
dcf699af6b lang/rust-nightly: Update to 2024-05-07 2024-05-13 13:04:10 +02:00
Mikael Urankar
a0d1ab7edf lang/rust-nightly: Update to 1.79.0.20240317 2024-03-18 13:54:14 +01:00
Mikael Urankar
2ea8ee915d lang/rust-nightly: Update to 1.76.0.20231125
e0d7ed1f45...f5dc2653fd
2023-11-28 13:53:45 +01:00
Mikael Urankar
2c1fae073f lang/rust-nightly: Update to 1.75.0.20231002
37998ab508...2e5a9dd6c9
2023-10-03 16:37:50 +02:00
Mikael Urankar
c37fc7b702 lang/rust-nightly: Update to 2023-06-12 2023-06-20 12:29:13 +02:00
Mikael Urankar
c55723d6df lang/rust-nightly: Update to 1.69.0.20230208 2023-02-09 11:37:43 +01:00
Mikael Urankar
e026a59380 lang/rust-nightly: Update to 1.68.0.20221225 2022-12-26 11:34:49 +01:00
Mikael Urankar
485eb777ee lang/rust-nightly: Update to 1.66.0.20221006
dc80ca78b6...0ca356586f
2022-10-10 18:21:35 +02:00
Mikael Urankar
aa108e13cd lang/rust-nightly: Update to 1.63.0.20220622
4dd8b420c0...10f4ce324b
2022-06-23 15:26:27 +02:00
Tobias Kortkamp
cb6d9d1a62
lang/rust-nightly: Update to 1.62.0.20220502
f4a7ce997a...bed05e996e
2022-05-03 12:28:03 +02:00
Mikael Urankar
1df1f9c9c0 lang/rust-nightly: Update to 1.62.0.20220409
Changes: 4e8fb743cc...f4a7ce997a
2022-04-09 12:51:22 +02:00
Tobias Kortkamp
45189a04a2
lang/rust-nightly: Update to 1.59.0.20211207
Changes:	686e313a9a...0b6f079e49
2021-12-08 12:40:39 +01:00
Tobias Kortkamp
d5f09dc31f
lang/rust-nightly: Update to 1.58.0.20211030
Make the no-hardlinks-patches conditional and move them to
files/no-hardlinks.

Newer kernels should return sane kern.proc.pathname values for
hardlinks which will hopefully help avoid the intermittent "can't
find crate for `std`" build failures we had on the package
builders.

Thanks to kib@ for fixing kernel behavior. Now let's see if it
makes a difference for lang/rust-nightly.

Changes:	25ec827385...e249ce6b23
PR:		248184
2021-10-31 19:20:54 +01:00
Tobias Kortkamp
d6b6cae866
lang/rust-nightly: Update to 1.57.0.20211006
- Add missing cargo patch

Changes:	003d8d3f56...25ec827385
2021-10-07 16:42:56 +02:00
Tobias Kortkamp
da1e0b83dc
lang/rust-nightly: Update to 1.53.0.20210412
Changes:	4a20eb6a9d...a866124564
2021-04-12 19:33:09 +02:00
Tobias Kortkamp
ea774b2080 lang/rust-nightly: Update to 1.53.0.20210323
- Sync patches with lang/rust
- Add the rust-nightly update script

Changes:	45b3c28518...5d04957a4b
2021-03-23 08:43:48 +00:00
Mikael Urankar
db3481fcc9 lang/rust-nightly: Update to 2021-03-05 2021-03-05 13:00:18 +00:00
Mikael Urankar
6bebfaa8a0 lang/rust: Update to 1.50.0
- Use bundled libgit/libssh, the versions in ports are too old
  - Update lang/rust-nightly to 2021-02-12
  - Update devel/racer to 2.1.41
  - Import upstream patch to fix build issue for Firefox and related ports (https://bugzilla.mozilla.org/show_bug.cgi?id=1684261)

Changes: https://github.com/rust-lang/rust/releases/tag/1.50.0

Tested by:	mikael, pkubaj
Differential Revision:	https://reviews.freebsd.org/D28616
2021-02-14 15:45:10 +00:00
Tobias Kortkamp
56a0fd2ac4 lang/rust-nightly: Update to 1.48.0.20200902
Changes:	5180f3da5f...130359cb05
2020-09-02 21:22:00 +00:00
Tobias Kortkamp
c215c2e28c lang/rust-nightly: Update to 1.47.0.20200824
Changes:	792c645ca7...5180f3da5f
2020-08-24 06:43:14 +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
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:	0c03aee8b8...39d5a61f2e
2020-07-18 13:14:42 +00:00
Tobias Kortkamp
0dde186085 lang/rust-nightly: Update to 1.46.0.20200606
Changes:	4bd32c9804...826cb062a6
2020-06-06 17:10:54 +00:00
Tobias Kortkamp
5202a56eff lang/rust-nightly: Update to 1.45.0.20200504
Changes:	e83f756349...65b448273d
2020-05-04 04:24:59 +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:	485c5fb6e1...7f3df57724
PR:		238556 [1]
2020-04-17 10:53:18 +00:00
Tobias Kortkamp
17f161686e lang/rust-nightly: Update to 1.44.0.20200327
Changes:	f509b26a77...2fbb07525e
2020-03-27 17:59:19 +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:	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
b543e13adb lang/rust-nightly: Update to 1.43.0.20200220
- Switch backtrace crate patches to upstreamed version

Changes:	433aae93e4...7760cd0fbb
2020-02-20 12:12:06 +00:00
Tobias Kortkamp
b807a7b276 lang/rust-nightly: Update to 1.43.0.20200205
Remove some cruft while here.

Changes:	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
Jan Beich
6131485198 lang/rust{,-nightly}: switch to .tar.xz bootstraps
Decreases total size by ~325 MiB in lang/rust.

Approved by:	tobik (rust)
Differential Revision:	https://reviews.freebsd.org/D22422
2019-11-17 08:30:39 +00:00
Jan Beich
b96c0606dd lang/rust-nightly: unbreak with PYTHON_DEFAULT != 2.7 after r517551
=======================<phase: build          >============================
===>  Building for rust-nightly-1.41.0.20191114
cd /wrkdirs/usr/ports/lang/rust-nightly/work/rustc-nightly-src &&  /usr/bin/env HOME="/wrkdirs/usr/ports/lang/rust-nightly/work"  LIBGIT2_SYS_USE_PKG_CONFIG=1  LIBSSH2_SYS_USE_PKG_CONFIG=1  OPENSSL_DIR="/usr"  /usr/local/bin/python3.6 /wrkdirs/usr/ports/lang/rust-nightly/work/rustc-nightly-src/x.py build  --verbose  --config ./config.toml  --jobs 1
downloading https://static.rust-lang.org/dist/2019-11-06/rust-std-beta-x86_64-unknown-freebsd.tar.xz.sha256
running: curl -# -y 30 -Y 10 --connect-timeout 30 --retry 3 -Sf -o /tmp/tmpp0anpd14.sha256 https://static.rust-lang.org/dist/2019-11-06/rust-std-beta-x86_64-unknown-freebsd.tar.xz.sha256
curl: (7) Couldn't connect to server

Reported by:	pkg-fallout
2019-11-16 22:37:54 +00:00
Jan Beich
3dc7c09c80 comlang/rust-nightly: update to 1.38.0.20190907
Changes:	9af17757be...6e19f3f383
2019-09-07 00:52:29 +00:00
Jan Beich
293bd07785 lang/rust-nightly: reformat patch header after r509173 2019-08-17 21:14:13 +00:00
Jan Beich
f661d11a8a lang/rust-nightly: unbreak cargo git fetch after r507928
libgit2-sys 0.8.2 switched to libgit2 0.29 API without bumping minor
version and adjusting pkg-config check. devel/libgit2 is still at
0.28, so FFI silently fails with a confusing error e.g.,

  invalid version 3 on git_proxy_options; class=Invalid (3)

USES=cargo consumers are affected but none use libgit2-sys 0.8.2 yet.

PR:		239785
Reported by:	yuri
2019-08-17 21:04:21 +00:00
Tobias Kortkamp
bebaf73f0e lang/rust*: Add link to upstream issue for the LLVM STAGEDIR bug 2019-05-29 08:12:21 +00:00
Tobias Kortkamp
c237f167ef lang/rust-nightly: Fix check-plist same as lang/rust 1.35.0
Avoid staging the local copy of LLVM into ${STAGEDIR}${WRKDIR}
during install.
2019-05-24 05:58:28 +00:00
Jan Beich
4007ca8903 lang/rust-nightly: update to 1.33.0.20190127
Changes:	bf669d1e32...20c2cba61d
2019-01-27 00:56:22 +00:00
Jan Beich
fc076f39be lang/rust-nightly: update to 1.33.0.20190105
Changes:	ec194646fe...f381a96255
2019-01-05 00:37:40 +00:00
Jan Beich
6b7b53cc14 lang/rust-nightly: unbreak after r489123
error[E0621]: explicit lifetime required in the type of `msg`
   --> src/tools/rls/src/server/mod.rs:185:21
    |
173 |       fn dispatch_message(&mut self, msg: &RawMessage) -> Result<(), jsonrpc::Error> {
    |                                           ----------- help: add explicit lifetime `'static` to the type of `msg`: `&'static server::message::RawMessage`
...
185 |                       <$n_action as LSPNotification>::METHOD => {
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime `'static` required
...
259 | /         match_action!(
260 | |             msg.method;
261 | |             notifications:
262 | |                 notifications::Initialized,
...   |
287 | |                 requests::CodeLensRequest;
288 | |         );
    | |__________- in this macro invocation
2019-01-03 03:49:57 +00:00