73 Commits

Author SHA1 Message Date
Mikael Urankar
af39fba608 lang/rust: Update to 1.65.0
Announce:	https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html
ChangeLog:	https://github.com/rust-lang/rust/releases/tag/1.65.0

PR:		267622
Reviewed by:	tokib, pkubaj
Tested by:	mikael, pkubaj
2022-11-17 08:06:13 +01:00
Mikael Urankar
264a6c503e lang/rust: Update to 1.64.0
Announce: https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html
ChangeLog: https://github.com/rust-lang/rust/releases/tag/1.64.0

PR:		267173
2022-10-30 13:07:07 +01:00
Daniel Engberg
e2438a86b8 */*: Update path set in BUILD_DEPENDS for CMake in more ports
Commit b23ea4e2d2f51b53d8915fe9fd7b4efbdd575e38 changed its location to
devel/cmake-core

Approved by:	portmgr (blanket)
2022-09-09 23:02:04 +02:00
Stefan Eßer
fb16dfecae Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
2022-09-07 23:58:51 +02:00
Stefan Eßer
b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00
Baptiste Daroussin
b9b250f912 rust: bring back update to 1.63
Revert back the revert of the update of rust and related commits

This revert was drive by beside validation by portmgr via exp-run
and not respectful of the etiquette we have between committers

This reverts commit 8ecb1f8141144c1603eb4026122d2e60eeaccd64.
This reverts commit 04d257baa182926cff158f32cf459e560426add0.
This reverts commit 2757c63bd0e6d01f9f0657fe03bb3a7b49adcae2.
This reverts commit 75f4713de5e3fbd1c6a0cb572e08121814a4072e.
This reverts commit e88e592111c86fdd1c0ac8717dbef9342e15e27c.
This reverts commit 783c056d7d681d66e2c5c59251c275d65274028e.

With hat:	portmgr
2022-08-25 16:49:50 +02:00
Piotr Kubaj
8ecb1f8141 Revert "lang/rust: Update to 1.63.0"
This reverts commit f36cc819accadae1fefc14c203e5fbe9c74e1492.

I asked for an exp-run for powerpc and powerpc64 on a recently provided
cluster machine but got no reply.

PR:	265915
2022-08-25 12:49:36 +02:00
Mikael Urankar
f36cc819ac lang/rust: Update to 1.63.0
Announce:		https://blog.rust-lang.org/2022/08/11/Rust-1.63.0.html
ChangeLog:		https://github.com/rust-lang/rust/releases/tag/1.63.0
Tested by:		mikael, pkubaj
Exp-run by:		antoine
Differential Revision:	https://reviews.freebsd.org/D36247
2022-08-25 10:50:04 +02:00
Mikael Urankar
558a5e4515 lang/rust: Update to 1.62.0
Announce:	https://blog.rust-lang.org/2022/06/30/Rust-1.62.0.html
ChangeLog:	https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1610-2022-06-30
Tested by:	mikael, pkubaj

Differential Revision:  https://reviews.freebsd.org/D35675
2022-07-02 15:47:05 +02:00
Mikael Urankar
aa578f2b89 lang/rust: Update to 1.61.0
Announce:		https://blog.rust-lang.org/2022/05/19/Rust-1.61.0.html
ChangeLog:		https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1610-2022-05-19
Reviewed by:		pkubaj
Differential Revision:	https://reviews.freebsd.org/D35335
2022-05-31 15:06:17 +02:00
Mikael Urankar
e57dfbf323 lang/rust: Update to 1.60.0
- Switch to using "x.py dist" instead of "x.py build" in the do-build phase as
    we are missing the rustc-dev component on nightly
  - Revert part of [1] as it causes cross build problem with lang/rust-bootstrap@powerpc
  - Mark devel/racer as deprecated: it's hard to maintain due to recurrent build problem
    and it's not actively maintained. Upstream advises to use devel/rust-analyzer instead.

[1] 07dae5a97b

Announce:		https://blog.rust-lang.org/2022/04/07/Rust-1.60.0.html
ChangeLog:		https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1600-2022-04-07
Reviewed by:		tobik
Exp-run by:		antoine
Differential Revision:	https://reviews.freebsd.org/D34823
2022-05-01 18:39:19 +02:00
Tobias Kortkamp
33b1845275
lang/rust-bootstrap/sync.sh: put bootstraps in /home/rust 2022-04-15 10:34:24 +02:00
Mikael Urankar
53e44579be lang/rust: Update to 1.59.0
Changes: https://blog.rust-lang.org/FIXME/Rust-1.59.0.html
PR:		262449
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D34471
2022-03-15 10:51:50 +01:00
Tobias Kortkamp
bd3a927931
lang/rust: Update to 1.58.1
https://blog.rust-lang.org/2022/01/20/Rust-1.58.1.html

PR:		261449
Security:	ee26f513-826e-11ec-8be6-d4c9ef517024
2022-02-03 15:02:31 +01:00
Tobias Kortkamp
183588879e
lang/rust: Update to 1.58.0
Changes:	https://blog.rust-lang.org/2022/01/13/Rust-1.58.0.html
PR:		261150
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D33864
2022-01-17 12:56:32 +01:00
Tobias Kortkamp
96eec29c9a
lang/rust: Add riscv64 (riscv64gc-unknown-freebsd) support
A kernel with COMPAT_FREEBSD11 is required for now like on all
other FreeBSD archs. FreeBSD11 never had riscv64 support, so
GENERIC does not have it and a kernel rebuild is required. The
same issue existed on powerpc64le.

The riscv64gc-unknown-freebsd target was upstreamed and will
be part of Rust 1.59.0 (2021-02-24).

Reviewed by:	jrtc27, pkubaj
Differential Revision:	https://reviews.freebsd.org/D32881
2021-12-23 11:10:16 +01:00
Piotr Kubaj
23b31964fc lang/rust-bootstrap: enable on powerpc64le
All the flavors build fine.
2021-12-18 19:06:38 +00:00
Tobias Kortkamp
237b36fa2e
lang/rust: Update to 1.57.0
- Unbreak build with LibreSSL 3.4.x [0]
- Disable backtrace's libunwind backend on armv* since it or
  libunwind in base seem to be buggy and cause rustc to crash when
  building some consumers [1]
- Follow rust-nightly in d5f09dc31fcfdb77b69c86b9093bf67ec67653d9
  and reenable hardlinks in the build

Changes:	https://blog.rust-lang.org/2021/12/02/Rust-1.57.0.html
PR:		259738 [0]
PR:		259799 [1]
PR:		260140
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D33190
With hat:	rust
2021-12-05 13:35:41 +01:00
Tobias Kortkamp
55d82f6a7c
lang/rust-bootstrap: Chase c4816e4763b8d395b4a2cb670a8aaaf33bb8def1 2021-11-26 10:30:47 +01:00
Tobias Kortkamp
c4816e4763
lang/rust*: Move the build artifacts out of source
Move the build artifacts out of source to decrease likelihood
of ccache misses because of changed build directory prefix
(rustc-1.55.0-src/ vs. rustc-1.56.0-src/) per PR 246245.
2021-11-25 21:01:04 +01:00
Tobias Kortkamp
a8d8cef02a
lang/rust-bootstrap: Relax x86 host requirement 2021-11-13 10:09:12 +01:00
Alexey Dokuchaev
61b6613393 Style: improve ONLY_FOR_ARCHS_REASON (grammar, markup, etc.)
ONLY_FOR_ARCHS_REASON is used as part of the sentence and thus should
start with lower-case letter and not end with a period which is added
by the framework, similar to other knobs like BROKEN, IGNORE, et al.

While here, remove needless quoting, add missing Oxford comma, expand
contractions and jargonisms, use correct spelling for proper names.
2021-10-25 12:58:29 +00:00
Tobias Kortkamp
124261fa7d
lang/rust: Update to 1.56.0
- Drop codegen-units=1 again as it seems to negatively impact build
  time for some people [1]

Changes:	https://blog.rust-lang.org/2021/10/21/Rust-1.56.0.html
PR:		256099 [1]
PR:		259251
Reviewed by:	jbeich, mikael, pkubaj
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D32553
2021-10-25 10:46:49 +02:00
Stefan Eßer
f05888cb2b lang/rust-bootstrap: Add CPE information
Approved by:	portmgr (blanket)
2021-10-19 13:14:32 +02:00
Rene Ladan
620968a43a cleanup: drop support for EOL FreeBSD 11.X
Search criteria used:
- 11.4
- OSREL*
- OSVER*
- *_FreeBSD_11

Input from:
- adridg: devel/qca-legacy
- jbeich: _WITH_DPRINTF, _WITH_GETLINE, GNU bfd workarounds
- sunpoet: security/p5-*OpenSSL*

Reviewed by:	doceng, kde, multimedia, perl, python, ruby, rust
Differential Revision: https://reviews.freebsd.org/D32008
Test Plan: make index
2021-09-30 23:23:30 +02:00
Tobias Kortkamp
4e617b25b8
lang/rust-bootstrap: Use devel/freebsd-sysroot 2021-09-19 11:03:22 +02:00
Tobias Kortkamp
6f1fefb50e
lang/rust: Update to 1.55.0
- Set codegen-units=1 [1]
- Add hack to skip cargo update on git sources as a step towards solving [2]
- Fix 'capacity overflow' panics on armv* [3]

Changes:	https://blog.rust-lang.org/2021-09-09/Rust-1.55.0.html
PR:		258337
PR:		256099 [1]
PR:		256581 [2]
PR:		257419 [3]
Reviewed by:	mikael, pkubaj
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D31872
With hat:	rust
2021-09-19 11:03:21 +02:00
Tobias Kortkamp
b1670e2c3d
lang/rust*: Mk/Uses/cargo.mk: Move TMPDIR to WRKDIR
rustc stashes intermediary files in TMPDIR (default /tmp) which
might cause issues for users that for some reason space limit their
/tmp.  WRKDIR should have plenty of space.

Other ports that use rustc might be affected too, but set it only
in USES=cargo and lang/rust* ports for now.

PR:		258126
With hat:	rust
2021-09-06 21:28:28 +02:00
Tobias Kortkamp
1090228081
lang/rust-bootstrap: Fix sync.sh to work with any package extension 2021-09-06 21:27:27 +02:00
pouet
55dbddeb07 lang/rust: Update to 1.54.0
- Update lang/rust to 1.54.0
 - Update devel/racer to 2.1.48
 - Fix various consumers

Changes:	https://blog.rust-lang.org/2021/07/29/Rust-1.54.0.html
Reviewed by:	tobik, pkubaj
Differential Revision:        https://reviews.freebsd.org/D31617
With hat:	rust
2021-08-28 15:38:37 +02:00
Tobias Kortkamp
f897ded31e
lang/rust: Update to 1.53.0
Changes:	https://blog.rust-lang.org/2021/06/17/Rust-1.53.0.html
PR:		256653
Reviewed by:	mikael, pkubaj
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D30790
With hat:	rust
2021-06-27 07:39:50 +02:00
Tobias Kortkamp
aa61f25f2a
lang/rust-bootstrap: Export MASTER_SITES via .MAKEFLAGS for makesum
Just replacing one hack with another.  With this it is localized
on one line and we no longer need .export and MASTER_SITES with ?=
2021-06-06 10:09:01 +02:00
Tobias Kortkamp
842e362334
lang/rust-bootstrap: Unbreak makesum after d50822c34fe1
It could not really work before since MASTER_SITES also changes
based on FLAVOR.

While here

- move distfiles to rust/bootstrap
- use per flavor MASTER_SITES groups to separate the files properly
- change distclean to also just work like makesum
- set DIST_SUBDIR to fix fetching the rustc tarball (was not a
  problem so far since lang/rust-bootstrap depends on lang/rust
  which fetches it before)
2021-05-17 18:57:05 +02:00
Tobias Kortkamp
3e61adacc1
lang/rust-bootstrap: Ack that we have read src/bootstrap/CHANGLOG.md
Same as in lang/rust.
2021-05-17 18:56:25 +02:00
Tobias Kortkamp
0ade1fd7a6
lang/rust-bootstrap: Try to unbreak powerpc build
Use ld.bfd from powerpc-binutils similar to lang/rust.

ld: error: rustc_hir_pretty.7ep572vg-cgu.0:(function rustc_hir_pretty::State::print_item::h993c6db847753592: .text._ZN16rustc_hir_pretty5State10print_item17h993c6db847753592E+0x55C): relocation R_PPC_PLTREL24 out of range: -33554484 is not in [-33554432, 33554431]
ld: error: rustc_hir_pretty.7ep572vg-cgu.0:(function rustc_hir_pretty::State::print_block_with_attrs::h3e09891900cd2aa9: .text._ZN16rustc_hir_pretty5State22print_block_with_attrs17h3e09891900cd2aa9E+0x2C): relocation R_PPC_PLTREL24 out of range: -33569004 is not in [-33554432, 33554431]
ld: error: rustc_hir_pretty.7ep572vg-cgu.0:(function rustc_hir_pretty::State::print_item::h993c6db847753592: .text._ZN16rustc_hir_pretty5State10print_item17h993c6db847753592E+0x664): relocation R_PPC_PLTREL24 out of range: -33554732 is not in [-33554432, 33554431]
ld: error: rustc_hir_pretty.7ep572vg-cgu.0:(function rustc_hir_pretty::State::print_block_maybe_unclosed::h3b0ddc7248032a61: .text._ZN16rustc_hir_pretty5State26print_block_maybe_unclosed17h3b0ddc7248032a61E+0xDC): relocation R_PPC_PLTREL24 out of range: -33570260 is not in [-33554432, 33554431]
ld: error: rustc_hir_pretty.7ep572vg-cgu.0:(function rustc_hir_pretty::State::print_item::h993c6db847753592: .text._ZN16rustc_hir_pretty5State10print_item17h993c6db847753592E+0x698): relocation R_PPC_PLTREL24 out of range: -33554800 is not in [-33554432, 33554431]
ld: error: rustc_hir_pretty.7ep572vg-cgu.0:(function rustc_hir_pretty::State::print_block_maybe_unclosed::h3b0ddc7248032a61: .text._ZN16rustc_hir_pretty5State26print_block_maybe_unclosed17h3b0ddc7248032a61E+0xE4): relocation R_PPC_PLTREL24 out of range: -33570108 is not in [-33554432, 33554431]
ld: error: rustc_hir_pretty.7ep572vg-cgu.0:(function rustc_hir_pretty::State::print_item::h993c6db847753592: .text._ZN16rustc_hir_pretty5State10print_item17h993c6db847753592E+0x6EC): relocation R_PPC_PLTREL24 out of range: -33554884 is not in [-33554432, 33554431]
ld: error: rustc_hir_pretty.7ep572vg-cgu.0:(function rustc_hir_pretty::State::print_item::h993c6db847753592: .text._ZN16rustc_hir_pretty5State10print_item17h993c6db847753592E+0x6F4): relocation R_PPC_PLTREL24 out of range: -33554732 is not in [-33554432, 33554431]

http://package19.nyi.freebsd.org/data/122amd64-default-build-as-user/ab31b591e5a6/logs/powerpc-rust-bootstrap-1.52.1_1.log
2021-05-14 18:44:58 +02:00
Tobias Kortkamp
882badb35a
lang/rust*: Only subst %CC% and %WRKDIR% on ppc64-elfv1
It's unused elsewhere.  Also move it to post-patch.
2021-05-14 18:44:58 +02:00
Tobias Kortkamp
28e7a9334a
Rebuild lang/rust consumers after d8837418ea743776 2021-05-11 20:33:12 +02:00
Tobias Kortkamp
d50822c34f
lang/rust, lang/rust-bootstrap: Simplify makesum 2021-05-11 19:29:32 +02:00
Tobias Kortkamp
d8837418ea
lang/rust: Update to 1.52.1
- Add 32-bit powerpc support from bdragon@
- Unbreak build with LibreSSL 3.3.x [1]
- Add an update script

Changes:	https://blog.rust-lang.org/2021/05/06/Rust-1.52.0.html
Changes:	https://blog.rust-lang.org/2021/05/10/Rust-1.52.1.html
PR:		255608, 255652 [1]
Reviewed by:	mikael, pkubaj
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D30099
2021-05-11 19:29:27 +02:00
Tobias Kortkamp
865be5c1f3
lang/rust-bootstrap: Fix typo in bootstrap sync script 2021-04-24 13:18:37 +02:00
Tobias Kortkamp
a91d65363f
Mk/Uses/ninja.mk: Add support for devel/samurai (D29353)
Samurai is a Ninja-compatible build tool with fewer dependencies
than Ninja.  Hook it to the framework via a new NINJA_DEFAULT.

This also adds %p to NINJA_STATUS to make Ninja or Samurai print
the percentage of completed jobs to make it easier to eyeball how
much of the build is done.

PR:		254678
Exp-run	by:	antoine
2021-04-20 08:57:34 +02:00
Mathieu Arnold
cf118ccf87
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
2021-04-07 10:09:01 +02:00
Mathieu Arnold
305f148f48
Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Tobias Kortkamp
db4578b35a lang/rust: Update to 1.51.0
- Update devel/racer to 2.1.44

Changes:	https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html
PR:		254578
Reviewed by:	mikael, pkubaj
Exp-run by:	antoine
With hat:	rust
Differential Revision:	https://reviews.freebsd.org/D29425
2021-03-29 18:07:32 +00:00
Tobias Kortkamp
70918c2d7c lang/rust-bootstrap: Unbreak aarch64 bootstrap
Something goes wrong when it is built with LLVM > 9.  Build it with
llvm90 for the time being.

rustc -Cllvm-args="..." with: Unknown command line argument '-generate-arange-section'.  Try: 'rustc -Cllvm-args="..." with --help'
rustc -Cllvm-args="..." with: Unknown command line argument '-mergefunc-use-aliases'.  Try: 'rustc -Cllvm-args="..." with --help'
rustc -Cllvm-args="..." with: Unknown command line argument '-preserve-alignment-assumptions-during-inlining=false'.  Try: 'rustc -Cllvm-args="..." with --help'

or when built with llvm.assertions=true:

Assertion failed: (hasOptions() && "No options specified!"), function ParseCommandLineOptions, file src/llvm-project/llvm/lib/Support/CommandLine.cpp, line 1344.
2021-03-26 07:34:49 +00:00
Tobias Kortkamp
37cd09fa55 lang/rust-bootstrap: Add the bootstrap freefall sync script 2021-03-23 06:42:43 +00:00
Tobias Kortkamp
20d8683141 lang/rust: Fix DOCS build, unbreak RUST_BACKTRACE
- Fix DOCS build by disabling deny-warnings (rustc equivalent to
  -Werror).  Let's not fail the entire build just because a handful
  of docs fail to build due to -D broken-intra-doc-links [0]
- Only install the host target docs.  We otherwise waste time with
  a rust-docs install-uninstall-install cycle for each additional
  target during stage.
- Backport FreeBSD support for gimli, unbreak RUST_BACKTRACE, and
  have useful stack traces with actual content again [1]
- While here also strip binaries under libexec/ and ack reading of
  src/bootstrap/CHANGELOG.md (changelog-seen=2)

[0] https://github.com/rust-lang/rust/issues/76526

PR:		253557 [1]
Submitted by:	jbeich [1]
2021-03-23 06:39:47 +00:00
Tobias Kortkamp
c97c91425b lang/rust-bootstrap: Remove bogus gcc9 run dep from powerpc64_elfv1 flavor again 2021-03-22 07:22:00 +00:00
Mikael Urankar
75537cd44e lang/rust-bootstrap: Update to 1.50.0
While here, update the sysroot to a supported FreeBSD release (12.2)
2021-02-19 13:22:42 +00:00
Mikael Urankar
28ceac2d6d lang/rust-bootstrap: Remove dubious RUN_DEPENDS line 2021-01-25 16:22:55 +00:00