Commit Graph

115 Commits

Author SHA1 Message Date
semarie
2c84ff6b2b update lang/rust to 1.41.1
Announce: https://blog.rust-lang.org/2020/02/27/Rust-1.41.1.html

while here update the sparc64 bootstrap to 1.41.0 (to be ready for next update)
2020-03-03 10:46:42 +00:00
semarie
156684b5a5 update lang/rust to 1.41.0
Announce: https://blog.rust-lang.org/2020/01/30/Rust-1.41.0.html
ChangeLog: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1410-2020-01-30

ok landry@ jca@
2020-02-11 12:48:20 +00:00
jasper
f9952e51b1 Use hw.ncpuonline for num_cpus::get()
This affects the number of jobs cargo will spawn which previously didn't take
take into account whether or not hw.smt was set.
Also implement num_cpus::get_num_physical_cpus() while here.

Patch has been merged upstream already.

ok semarie@ (MAINTAINER)
2020-01-17 19:13:19 +00:00
semarie
fc0f834799 lang/rust: update sparc64 bootstrap to use 1.40.0 version 2020-01-11 05:45:09 +00:00
semarie
ba73b5ee28 update lang/rust to 1.40.0
Announce: https://blog.rust-lang.org/2019/12/19/Rust-1.40.0.html
ChangeLog: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1400-2019-12-19
2019-12-22 17:00:31 +00:00
semarie
65e1e600a2 update lang/rust to 1.39.0
(late commit due to problems with sparc64 - segfault)

tested by landry@
ok reyk@

ChangeLog: https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1390-2019-11-07
Announce: https://blog.rust-lang.org/2019/11/07/Rust-1.39.0.html
2019-12-10 07:32:42 +00:00
semarie
feb19d4615 update lang/rust to 1.38.0
Release: https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1380-2019-09-26
Announce: https://blog.rust-lang.org/2019/09/26/Rust-1.38.0.html

ok landry@
2019-09-29 08:23:17 +00:00
semarie
37d207f45a add sparc64 in RUST_ARCHS (all rust ports take care of sparc64 now)
and enable lang/rust build on sparc64
2019-09-02 07:05:48 +00:00
semarie
5ff04b132c update lang/rust to 1.37.0
(and add preliminary sparc64 support)

Announce: https://blog.rust-lang.org/2019/08/15/Rust-1.37.0.html
Changelog: https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1370-2019-08-15

ok landry@
2019-08-16 18:14:21 +00:00
semarie
52da7c5584 update lang/rust to 1.36.0
Announce: https://blog.rust-lang.org/2019/07/04/Rust-1.36.0.html
Release notes: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1360-2019-07-04

ok landry@
2019-07-09 11:24:28 +00:00
sthen
6ff3e55398 bump REVISION in a bunch of ports known or likely to use struct kinfo_proc,
there may be some missing as my unpacked ports source is a little out of date
but this should catch the main things people might run into

the struct was reordered a second time in sysctl.h r1.192 to improve
compatibility but amd64 snapshot packages made it out before that happened
so the bumps are still needed
2019-06-25 20:25:20 +00:00
semarie
55e2665c43 update rust to 1.35.0
ChangeLog: https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1350-2019-05-23
Announce: https://blog.rust-lang.org/2019/05/23/Rust-1.35.0.html

ok landry@
2019-05-24 04:28:24 +00:00
semarie
77aea6d15a update lang/rust to 1.34.2
Announce: https://blog.rust-lang.org/2019/05/14/Rust-1.34.2.html
Security advisory for the standard library: https://blog.rust-lang.org/2019/05/13/Security-advisory.html

In short, starting with 1.34.0, you can "safely" cast a type to the wrong
type by using Error::type_id function in the standard library. As it
could result out of bounds reads/writes/etc it is considered as security
issue.
2019-05-15 06:10:24 +00:00
semarie
b4ad310afc update to 1.31.1
it affects only clippy tool.

Announce: https://blog.rust-lang.org/2019/04/25/Rust-1.34.1.html
Changelog: https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1341-2019-04-25
2019-04-27 08:50:18 +00:00
semarie
ac56eef94e reduces the PLIST divergence between archs by using a controlled way to
generate metadata/hash on libraries.

remove -doc subpackage too, as it has different files depending the
arch.

with that, we should be able to have rustc on more archs.

OK sthen@
2019-04-26 15:08:33 +00:00
semarie
cacb466dd5 update to 1.34.0
announce: https://blog.rust-lang.org/2019/04/11/Rust-1.34.0.html
changelog: https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1340-2019-04-11
2019-04-17 06:55:59 +00:00
semarie
05d1db11a2 update lang/rust to 1.33.0
Announce: https://blog.rust-lang.org/2019/02/28/Rust-1.33.0.html
ChangeLog: https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1330-2019-02-28

ok landry@
2019-03-11 19:13:40 +00:00
semarie
2862edd08c backport patches to devel/llvm
- da1fb72bb3
- cc1f2a595e

it should unbreak firefox: firefox uses rustc with `-C lto' option for
some part of its build, and this code path expose the llvm bug.

llvm review: https://reviews.llvm.org/D52340
rust issue: https://github.com/rust-lang/rust/issues/57762

bump lang/rust to ensure updated statically linked libraries are taken on update.

ok jca@
2019-01-30 07:36:06 +00:00
semarie
2d7b810f6a update lang/rust bootstraps to change a bit the way hash metadata is
generated.

in general case, the output of `rustc -vV` is still used as part of the
hashed data. the output contains the exact version of the rustc and the
LLVM version used.

but when used for build the port, it will use a less changing string:
only the major+minor version (without patch number) and no more LLVM
version.

the choice between the two way is based on the presence of environment
variable.

it will permit to avoid change in filenames (and so PLIST regeneration
requirement) when:
- patch release of rustc is pushed
- llvm is updated
2019-01-27 05:25:29 +00:00
semarie
e96fa506fd update to 1.32.0
Announcing: https://blog.rust-lang.org/2019/01/17/Rust-1.32.0.html
ChangeLog: https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1320-2019-01-17

ok landry@
2019-01-22 05:07:19 +00:00
semarie
af1a08a888 update to 1.32.0
Announcing: https://blog.rust-lang.org/2019/01/17/Rust-1.32.0.html
ChangeLog: https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1320-2019-01-17

ok landry@
2019-01-22 04:47:48 +00:00
semarie
d2891f6e1c maintenance update to 1.31.1
Version 1.31.1 (2018-12-20)
- Fix Rust failing to build on powerpc-unknown-netbsd
- Fix broken go-to-definition in RLS
- Fix infinite loop on hover in RLS
2018-12-21 08:24:19 +00:00
semarie
ea37087119 build clippy (linter) and rustfmt (code formatter) and provide them in
subpackages. while here create a subpackage for rust-gdb also.

looks good landry@
2018-12-16 09:19:57 +00:00
semarie
97f5af796f update lang/rust to 1.31.0
Announcing: https://blog.rust-lang.org/2018/12/06/Rust-1.31-and-rust-2018.html
Release notes: https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1310-2018-12-06

ok landry@
2018-12-08 09:16:09 +00:00
espie
39527c5e21 fix the port
meta-info should always exist, even on a bad arch.
2018-11-22 12:40:21 +00:00
landry
400668b248 Minor update to rust 1.30.1, from semarie@
See https://blog.rust-lang.org/2018/11/08/Rust-1.30.1.html
2018-11-10 11:12:25 +00:00
landry
59c5804603 Update to rust 1.30, from semarie@
cf https://blog.rust-lang.org/2018/10/25/Rust-1.30.0.html
2018-11-01 13:50:30 +00:00
sthen
25f0e460f2 Add COMPILER lines to c++ ports which currently use the default. Adjust
some existing COMPILER lines with arch restrictions etc. In the usual
case this is now using "COMPILER = base-clang ports-gcc base-gcc" on
ports with c++ libraries in WANTLIB.

This is basically intended to be a noop on architectures using clang
as the system compiler, but help with other architectures where we
currently have many ports knocked out due to building with an unsuitable
compiler -

- some ports require c++11/newer so the GCC version in base that is used
on these archirtectures is too old.

- some ports have conflicts where an executable is built with one compiler
(e.g. gcc from base) but a library dependency is built with a different
one (e.g. gcc from ports), resulted in mixing incompatible libraries in the
same address space.

devel/gmp is intentionally skipped as it's on the path to building gcc -
the c++ library there is unused in ports (and not built by default upstream)
so intending to disable building gmpcxx in a future commit.
2018-10-24 14:27:57 +00:00
landry
7a32ba9f02 Update to rust 1.29.2, from semarie@.
See https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1292-2018-10-11
Fixes https://github.com/rust-lang/rust/issues/54462
ok sthen@
2018-10-08 15:25:58 +00:00
landry
9a672b42ce Security update to rust 1.29.1, from semarie@
See https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1291-2018-09-25
Fixes a buffer overflow in the standard library.
2018-09-24 07:09:14 +00:00
matthieu
67630132a1 Remove duplicate -doc plist entries on aarch64.
no version bump since rust-doc  didn't package before on aarch64
and doesn't change on other architectures.

ok semarie.
2018-09-18 10:05:56 +00:00
landry
b649d81240 Update to rust 1.29, from MAINTAINER semarie@ 2018-09-16 16:35:27 +00:00
naddy
2349085205 pull in bsd.port.arch.mk before evaluating RUST_ARCHS 2018-08-08 19:18:58 +00:00
sthen
bebfb52e62 provide and use RUST_ARCHS, from semarie. sounds good to espie 2018-08-08 09:19:40 +00:00
landry
5e6fda05b7 Update to rust 1.28, from semarie@ 2018-08-06 19:07:50 +00:00
landry
e6a33d4d24 Update to rust 1.27.2, from semarie@
Cf https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1272-2018-07-20
2018-07-23 06:56:43 +00:00
ajacoutot
274560225d Add a comment to not forget to sync with x11/gnome/librsvg. 2018-07-12 08:48:47 +00:00
landry
ef33d3cf24 devel/gdb now builds on aarch64, so remove conditionals. from semarie@ 2018-07-11 09:16:53 +00:00
ajacoutot
53ecf84de5 Update to rust to 1.27.1:
https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1271-2018-07-10

It contains also a fix that changes the way libcompiler_rt.a is included by
rustc in order to avoid duplicated symbols in a static library (some symbols
from system libcompiler_rt.a, others from Rust itself).

from semarie, thank you :-)
2018-07-11 08:35:59 +00:00
landry
fff520c06f gdb is a BDEP, not only a TDEP. 2018-06-29 06:25:55 +00:00
landry
f6abf52cb3 Update to rust 1.27.0, from semarie@
ok kn@
2018-06-29 05:19:47 +00:00
landry
a9b8e30c8a Bugfix update to rust 1.26.1, from semarie@ 2018-06-01 06:02:10 +00:00
landry
de1828313e Remove patches that were meant to be removed.. reminded by semarie@. 2018-05-22 17:07:52 +00:00
landry
89983c31ea Update to rust 1.26, from semarie@
Cf https://blog.rust-lang.org/2018/05/10/Rust-1.26.html

- add arm64 support, tested by phessler@
- respect MAKE_JOBS again
- use lld on i386 to support 128 bits integers
- cleanup old patches
- only build what we actually package
2018-05-22 06:04:33 +00:00
ajacoutot
8c4f93277d Adapt to new LLVM.
from Brad
2018-04-07 14:56:24 +00:00
sthen
038dcb3cc2 remove BROKEN marker for i386, there's kernel work in progress to get this
building more easily
2018-04-06 07:15:14 +00:00
sthen
0dff1ce088 sync plists for i386 2018-04-06 07:12:28 +00:00
landry
2fddfb733a Update to rust 1.25.0, from semarie@
- to keep RUST_BACKTRACE=1 enabled during build, properly separate
  MAKE_ENV and TEST_ENV, by introducing a TEST_BIN variable used to
launch rustbuild with TEST_ENV (some tests are failing if RUST_BACKTRACE
is enabled).

- remove llvm-6 backported patches. this version of rustc has full
  support of it. Hashes in library names will change when ports llvm
is upgraded, so PLIST will have to be regenerated.

- backport #49140 to be able to run "make test" without installing rustc
2018-04-02 07:21:50 +00:00
landry
9b095d4328 New i386 bootstrap, still BROKEN sadly.. 2018-03-16 07:36:40 +00:00
landry
b49cdf51b4 Fix rust with MAP_STACK, all from semarie@:
- regen amd64 bootstrap (i386 will come later and is marked BROKEN
  anyway)
- add MAP_STACK flag for use with sigaltstack() (only used for signal
  handler used for stack overflow detection)
- change a bit the way stack overflow is detected
2018-03-13 08:08:03 +00:00