The NetBSD Project

CVS log for pkgsrc/lang/rust/options.mk

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / lang / rust

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.16 / (download) - annotate - [select for diffs], Sat Jul 17 13:16:38 2021 UTC (3 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, HEAD
Changes since 1.15: +9 -7 lines
Diff to previous 1.15 (colored)

rust: Darwin/aarch64 must use bundled llvm.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Mon Jul 12 12:56:13 2021 UTC (3 months, 1 week ago) by bsiegert
Branch: pkgsrc-2021Q2
Changes since 1.14: +2 -5 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Pullup ticket #6486 - requested by he
lang/rust: build fix

Revisions pulled up:
- lang/rust/Makefile                                            1.242
- lang/rust/options.mk                                          1.15

---
   Module Name:	pkgsrc
   Committed By:	he
   Date:		Sun Jul 11 22:13:38 UTC 2021

   Modified Files:
   	pkgsrc/lang/rust: Makefile options.mk

   Log Message:
   Evidently, cmake is needed in all cases.

   Move cmake dependency out of condition on PKG_OPTIONS.rust-llvm.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jul 11 22:13:38 2021 UTC (3 months, 1 week ago) by he
Branch: MAIN
Changes since 1.14: +2 -5 lines
Diff to previous 1.14 (colored)

Evidently, cmake is needed in all cases.

Move cmake dependency out of condition on PKG_OPTIONS.rust-llvm.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Sat Apr 10 08:36:05 2021 UTC (6 months, 1 week ago) by bsiegert
Branch: pkgsrc-2021Q1
Changes since 1.11: +4 -8 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Pullup ticket #6436 - requested by he
lang/rust: build fixes

Revisions pulled up:
- lang/rust/Makefile                                            1.221-1.227
- lang/rust/distinfo                                            1.128
- lang/rust/options.mk                                          1.12-1.14

---
   Module Name:	pkgsrc
   Committed By:	nia
   Date:		Tue Mar 30 09:50:14 UTC 2021

   Modified Files:
   	pkgsrc/lang/rust: Makefile options.mk

   Log Message:
   rust: normalize workarounds for cargo dependencies on NetBSD

   Havard would like all rusts to be built with rust-cargo-static,
   because this makes it easier to produce working bootstaps.

   In order to do this, we need to handle the OpenSSL and curl
   dependencies in older bootstrap kits properly.

   This means, for the remaining bootstraps that do not yet have
   cargo with static/vendored dependencies:

   - depend on base 8.0 openssl (compat80) on i386.
   - depend on pkgsrc curl on aarch64 and earmv7.
     the armv7 bootstrap is built for 9.0 so does not need compat80.
     the aarch64 bootstrap is built for 8.99.50 so does not need compat80.

---
   Module Name:	pkgsrc
   Committed By:	nia
   Date:		Wed Mar 31 16:45:08 UTC 2021

   Modified Files:
   	pkgsrc/lang/rust: Makefile options.mk

   Log Message:
   rust: Only enable rust-cargo-static when building bootstraps.

   The final compiler will be dynamically linked with OpenSSL and curl,
   but this is undesirable in the case of bootstraps where it might be
   built against a version incompatible with version the user has.

   Discussed with he@.

---
   Module Name:	pkgsrc
   Committed By:	he
   Date:		Sun Apr  4 08:36:05 UTC 2021

   Modified Files:
   	pkgsrc/lang/rust: Makefile

   Log Message:
   Bump the rust binary bootstraps to 1.49 for the remaining NetBSD ports.
   The 1.49 cargo binary has a much reduced set of dynamic dependencies,
   increasing the probability that they'll run on the host.

---
   Module Name:	pkgsrc
   Committed By:	he
   Date:		Sun Apr  4 08:40:44 UTC 2021

   Modified Files:
   	pkgsrc/lang/rust: distinfo

   Log Message:
   Recompute checksums after the bootstrap version bump.

---
   Module Name:	pkgsrc
   Committed By:	he
   Date:		Sun Apr  4 08:51:20 UTC 2021

   Modified Files:
   	pkgsrc/lang/rust: options.mk

   Log Message:
   Change rust-cargo-static condition on NetBSD.
   Key off BUILD_TARGET instead of whether we're cross-building,
   as bootstrap kits *can* be built natively (yes, the former state
   was my suggestion, but on second thought this is more correct).

---
   Module Name:	pkgsrc
   Committed By:	nia
   Date:		Sun Apr  4 09:23:38 UTC 2021

   Modified Files:
   	pkgsrc/lang/rust: Makefile

   Log Message:
   rust: Remove old NetBSD bootstrap workarounds

---
   Module Name:	pkgsrc
   Committed By:	he
   Date:		Sun Apr  4 10:21:45 UTC 2021

   Modified Files:
   	pkgsrc/lang/rust: Makefile

   Log Message:
   We need curl and openssl buildlinked if BUILD_TARGET is "build".
   This is because in that case we're not using the rust-internal
   copies of those libraries, governed by the rust-cargo-static option.

---
   Module Name:	pkgsrc
   Committed By:	he
   Date:		Sun Apr  4 10:21:45 UTC 2021

   Modified Files:
   	pkgsrc/lang/rust: Makefile

   Log Message:
   We need curl and openssl buildlinked if BUILD_TARGET is "build".
   This is because in that case we're not using the rust-internal
   copies of those libraries, governed by the rust-cargo-static option.

---
   Module Name:	pkgsrc
   Committed By:	he
   Date:		Sun Apr  4 13:30:16 UTC 2021

   Modified Files:
   	pkgsrc/lang/rust: Makefile

   Log Message:
   Undo previous, curl and openssl are already conditionally buildlinked
   in options.mk, nia@ pointed out.

---
   Module Name:	pkgsrc
   Committed By:	he
   Date:		Sun Apr  4 17:49:42 UTC 2021

   Modified Files:
   	pkgsrc/lang/rust: Makefile

   Log Message:
   Hopefully today's last mistake: undo my MAKE_JOBS_SAFE mistake.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 4 08:51:20 2021 UTC (6 months, 2 weeks ago) by he
Branch: MAIN
CVS Tags: pkgsrc-2021Q2-base
Branch point for: pkgsrc-2021Q2
Changes since 1.13: +3 -5 lines
Diff to previous 1.13 (colored)

Change rust-cargo-static condition on NetBSD.
Key off BUILD_TARGET instead of whether we're cross-building,
as bootstrap kits *can* be built natively (yes, the former state
was my suggestion, but on second thought this is more correct).

Revision 1.13 / (download) - annotate - [select for diffs], Wed Mar 31 16:45:08 2021 UTC (6 months, 2 weeks ago) by nia
Branch: MAIN
Changes since 1.12: +6 -2 lines
Diff to previous 1.12 (colored)

rust: Only enable rust-cargo-static when building bootstraps.

The final compiler will be dynamically linked with OpenSSL and curl,
but this is undesirable in the case of bootstraps where it might be
built against a version incompatible with version the user has.

Discussed with he@.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Mar 30 09:50:14 2021 UTC (6 months, 3 weeks ago) by nia
Branch: MAIN
Changes since 1.11: +2 -8 lines
Diff to previous 1.11 (colored)

rust: normalize workarounds for cargo dependencies on NetBSD

Havard would like all rusts to be built with rust-cargo-static,
because this makes it easier to produce working bootstaps.

In order to do this, we need to handle the OpenSSL and curl
dependencies in older bootstrap kits properly.

This means, for the remaining bootstraps that do not yet have
cargo with static/vendored dependencies:

- depend on base 8.0 openssl (compat80) on i386.
- depend on pkgsrc curl on aarch64 and earmv7.
  the armv7 bootstrap is built for 9.0 so does not need compat80.
  the aarch64 bootstrap is built for 8.99.50 so does not need compat80.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Feb 25 08:54:05 2021 UTC (7 months, 3 weeks ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2021Q1-base
Branch point for: pkgsrc-2021Q1
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

rust: fix typo in comment

Revision 1.10 / (download) - annotate - [select for diffs], Thu Feb 25 08:47:16 2021 UTC (7 months, 3 weeks ago) by nia
Branch: MAIN
Changes since 1.9: +8 -2 lines
Diff to previous 1.9 (colored)

rust: Make sure curl is buildlinked on NetBSD

This should be a temporary measure until all the bootstraps are fixed

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jan 4 10:12:42 2021 UTC (9 months, 2 weeks ago) by jperkin
Branch: MAIN
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

rust: Limit rust-cargo-static option to NetBSD.

Other OS bundle the necessary libraries with the bootstrap kits, and enabling
this option would mean having to carry additional patches for the bundled zlib
etc.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jan 1 20:44:48 2021 UTC (9 months, 2 weeks ago) by he
Branch: MAIN
Changes since 1.7: +17 -1 lines
Diff to previous 1.7 (colored)

Upgrade rust to version 1.48.0.

Pkgsrc changes:
 * Compensate for files being moved around upstream.
 * Introduce optional, on-by-default semi-static building of cargo,
   using the internal curl and openssl sources.  This reduces the dynamic
   dependencies of cargo and therefore the rust package itself.
   Ref. options.mk.
 * The 1.47.0 bootstrap kits have been re-built with the above option
   turned on, so no longer depends on curl or openssl from pkgsrc and/or
   from earlier OS or pkgsrc versions.  This should hopefully fix
   installation of rust with non-default PREFIX, ref. PR#54453.


Upstream changes:

Version 1.48.0 (2020-11-19)
==========================

Language
--------
- [The `unsafe` keyword is now syntactically permitted on modules.][75857] This
  is still rejected *semantically*, but can now be parsed by procedural macros.

Compiler
--------
- [Stabilised the `-C link-self-contained=<yes|no>` compiler flag.][76158]
  This tells `rustc` whether to link its own C runtime and libraries
  or to rely on a external linker to find them. (Supported only on
  `windows-gnu`, `linux-musl`, and `wasi` platforms.)
- [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.]
  [77386]
  Note: If you're using cargo you must explicitly pass the `--target` flag.
- [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420]

\* Refer to Rust's [platform support page][forge-platform-support] for more
information on Rust's tiered platform support.

Libraries
---------
- [`io::Write` is now implemented for `&ChildStdin` `&Sink`, `&Stdout`,
  and `&Stderr`.][76275]
- [All arrays of any length now implement `TryFrom<Vec<T>>`.][76310]
- [The `matches!` macro now supports having a trailing comma.][74880]
- [`Vec<A>` now implements `PartialEq<[B]>` where `A: PartialEq<B>`.][74194]
- [The `RefCell::{replace, replace_with, clone}` methods now all use
  `#[track_caller]`.][77055]

Stabilized APIs
---------------
- [`slice::as_ptr_range`]
- [`slice::as_mut_ptr_range`]
- [`VecDeque::make_contiguous`]
- [`future::pending`]
- [`future::ready`]

The following previously stable methods are now `const fn`'s:

- [`Option::is_some`]
- [`Option::is_none`]
- [`Option::as_ref`]
- [`Result::is_ok`]
- [`Result::is_err`]
- [`Result::as_ref`]
- [`Ordering::reverse`]
- [`Ordering::then`]

Cargo
-----

Rustdoc
-------
- [You can now link to items in `rustdoc` using the intra-doc link
  syntax.][74430] E.g. ``/// Uses [`std::future`]`` will automatically generate
  a link to `std::future`'s documentation. See ["Linking to items by
  name"][intradoc-links] for more information.
- [You can now specify `#[doc(alias = "<alias>")]` on items to add
  search aliases when searching through `rustdoc`'s UI.][75740]

Compatibility Notes
-------------------
- [Promotion of references to `'static` lifetime inside `const fn`
  now follows the same rules as inside a `fn` body.][75502] In
  particular, `&foo()` will not be promoted to `'static` lifetime
  any more inside `const fn`s.
- [Associated type bindings on trait objects are now verified to meet the bounds
  declared on the trait when checking that they implement the trait.][27675]
- [When trait bounds on associated types or opaque types are ambiguous, the
  compiler no longer makes an arbitrary choice on which bound to use.][54121]
- [Fixed recursive nonterminals not being expanded in macros during
  pretty-print/reparse check.][77153] This may cause errors if your macro wasn't
  correctly handling recursive nonterminal tokens.
- [`&mut` references to non zero-sized types are no longer promoted.][75585]
- [`rustc` will now warn if you use attributes like `#[link_name]` or `#[cold]`
  in places where they have no effect.][73461]
- [Updated `_mm256_extract_epi8` and `_mm256_extract_epi16` signatures in
  `arch::{x86, x86_64}` to return `i32` to match the vendor signatures.][73166]
- [`mem::uninitialized` will now panic if any inner types inside
  a struct or enum disallow zero-initialization.][71274]
- [`#[target_feature]` will now error if used in a place where it
  has no effect.][78143]
- [Foreign exceptions are now caught by `catch_unwind` and will
  cause an abort.][70212] Note: This behaviour is not guaranteed
  and is still considered undefined behaviour, see the [`catch_unwind`]
  documentation for further information.

Internal Only
-------------
These changes provide no direct user facing benefits, but represent significant
improvements to the internals and overall performance of rustc and
related tools.

- [Building `rustc` from source now uses `ninja` by default over `make`.][74922]
  You can continue building with `make` by setting `ninja=false` in
  your `config.toml`.
- [cg_llvm: `fewer_names` in `uncached_llvm_type`][76030]
- [Made `ensure_sufficient_stack()` non-generic][76680]

[78143]: https://github.com/rust-lang/rust/issues/78143
[76680]: https://github.com/rust-lang/rust/pull/76680/
[76030]: https://github.com/rust-lang/rust/pull/76030/
[70212]: https://github.com/rust-lang/rust/pull/70212/
[27675]: https://github.com/rust-lang/rust/issues/27675/
[54121]: https://github.com/rust-lang/rust/issues/54121/
[71274]: https://github.com/rust-lang/rust/pull/71274/
[77386]: https://github.com/rust-lang/rust/pull/77386/
[77153]: https://github.com/rust-lang/rust/pull/77153/
[77055]: https://github.com/rust-lang/rust/pull/77055/
[76275]: https://github.com/rust-lang/rust/pull/76275/
[76310]: https://github.com/rust-lang/rust/pull/76310/
[76420]: https://github.com/rust-lang/rust/pull/76420/
[76158]: https://github.com/rust-lang/rust/pull/76158/
[75857]: https://github.com/rust-lang/rust/pull/75857/
[75585]: https://github.com/rust-lang/rust/pull/75585/
[75740]: https://github.com/rust-lang/rust/pull/75740/
[75502]: https://github.com/rust-lang/rust/pull/75502/
[74880]: https://github.com/rust-lang/rust/pull/74880/
[74922]: https://github.com/rust-lang/rust/pull/74922/
[74430]: https://github.com/rust-lang/rust/pull/74430/
[74194]: https://github.com/rust-lang/rust/pull/74194/
[73461]: https://github.com/rust-lang/rust/pull/73461/
[73166]: https://github.com/rust-lang/rust/pull/73166/
[intradoc-links]: https://doc.rust-lang.org/rustdoc/linking-to-items-by-name.html
[`catch_unwind`]: https://doc.rust-lang.org/std/panic/fn.catch_unwind.html
[`Option::is_some`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_some
[`Option::is_none`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_none
[`Option::as_ref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref
[`Result::is_ok`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_ok
[`Result::is_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_err
[`Result::as_ref`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.as_ref
[`Ordering::reverse`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.reverse
[`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
[`slice::as_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr_range
[`slice::as_mut_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_mut_ptr_range
[`VecDeque::make_contiguous`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.make_contiguous
[`future::pending`]: https://doc.rust-lang.org/std/future/fn.pending.html
[`future::ready`]: https://doc.rust-lang.org/std/future/fn.ready.html

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jun 24 09:46:26 2020 UTC (15 months, 3 weeks ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2
Changes since 1.6: +1 -3 lines
Diff to previous 1.6 (colored)

rust: uses -std=c++14

Revision 1.6 / (download) - annotate - [select for diffs], Fri Feb 21 16:04:50 2020 UTC (19 months, 4 weeks ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored)

Fix building with external LLVM; allow any Python

Revision 1.5 / (download) - annotate - [select for diffs], Mon Sep 9 16:19:49 2019 UTC (2 years, 1 month ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

rust: on Darwin, use proper shared library name instead of @rpath

Revision 1.4 / (download) - annotate - [select for diffs], Tue Aug 27 17:23:48 2019 UTC (2 years, 1 month ago) by schmonz
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

Set PKG_SUPPORTED_OPTIONS to empty string by default. Fixes the
following on macOS:

ERROR: This package has set PKG_FAIL_REASON:
ERROR: [bsd.options.mk] The package has no options, but includes this file.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Aug 14 16:00:23 2019 UTC (2 years, 2 months ago) by nia
Branch: MAIN
Changes since 1.2: +5 -1 lines
Diff to previous 1.2 (colored)

rust: Avoid using external llvm when external llvm isn't pkgsrc llvm.

Reported as a build failure in #pkgsrc by ng0.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 14 13:05:25 2019 UTC (2 years, 2 months ago) by nia
Branch: MAIN
Changes since 1.1: +2 -3 lines
Diff to previous 1.1 (colored)

rust: Build against non-internal LLVM by default.

This should help with some people's problems with the rust builds being
excessively long, and if we ever run into compatibility problems between
rust's llvm-current and our shipped version it should be easy to switch
on the internal LLVM by default again.

I've been using this for some time with Firefox without problems.

Bump PKGREVISION.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jul 11 10:24:14 2019 UTC (2 years, 3 months ago) by nia
Branch: MAIN

rust: Make building the internal LLVM optional for everyone

(not just Darwin and SunOS).

This was posted to tech-pkg@ a while ago with no objections,
I've been using it for a while too.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>