non port: Mk/Uses/cargo.mk |
Number of commits found: 126 (showing only 100 on this page) |
Thursday, 29 Feb 2024
|
20:21 Tijl Coosemans (tijl)
Mk/*: Build with a clean environment
Both our make and gmake use the MAKEFLAGS environment variable but the
values aren't compatible and the latest version of gmake complains about
that. To rule out that any environment variable can cause problems like
this, add a new command SETENVI=/usr/bin/env -i that clears the
environment, and use it to run upstream build systems with a clean
environment.
Introduce a new variable WRK_ENV that contains the environment to use
with SETENVI in all targets that run upstream build commands. Variables
that are common between CONFIGURE_ENV and MAKE_ENV could be moved to
WRK_ENV but for now it just contains a minimal environment:
HOME=${WRKDIR}: Fixes USES=elixir ports that were using the user's HOME.
OSVERSION: For cross building; determines the output of uname -K and
getosreldate(3); affects net/freebsd-telnetd for example.
PATH: Fixes USES=gem ports that were using the user's PATH.
PWD=$${PWD}: Preserve current working directory; affects USES=go ports.
TERM: To preserve colored output to terminals.
TMPDIR: For users who define that.
UNAME_*: For cross building; determines the output of uname(1); affects
lang/python* for example.
This commit deals with everything under Mk/. Ports that have their own
targets running upstream build commands can switch to SETENVI later.
The ports tree adds its definition of ARCH to the MAKEFLAGS environment
variable, which is interpreted by sub-makes as command line arguments,
which means that any definition of ARCH in upstream makefiles was
overridden. The following ports required fixes now that this is no
longer the case.
games/iortcw, games/q3cellshading, games/tremulous:
These use Quake 3 engine code. Fix use of ARCH. Reduce diff between
FreeBSD code and Linux code.
games/legesmotus:
Remove ARCH related patches.
lang/ocaml:
Patch configure script so it detects amd64 correctly. Also make the
powerpc case consistent with the other architectures. This also affects
other ocaml ports like devel/ocaml-ocamlbuild and math/ocaml-num that
include a Makefile.config installed by lang/ocaml. While here, use
SETENVI in check-test target.
net/libnatpmp:
Use of upstream definition of ARCH triggers installation in PREFIX/lib64
on amd64. Disable this.
PR: 276478
Approved by: portmgr (antoine)
Exp-run by: antoine
572f236 |
Monday, 19 Feb 2024
|
11:59 Mikael Urankar (mikael)
lang/rust: Update to 1.76.0
Announce: https://blog.rust-lang.org/2024/02/08/Rust-1.76.0.html
ChangeLog: https://github.com/rust-lang/rust/releases/tag/1.76.0
PR: 276920
Tested by: mikael,pkubaj
2252f9d |
Sunday, 11 Feb 2024
|
11:48 Piotr Kubaj (pkubaj)
Mk/Uses/cargo.mk: remove duplicate check for LTO, Mk/Features/lto.mk already
does it
33b550f |
Tuesday, 9 Jan 2024
|
12:13 Mikael Urankar (mikael)
lang/rust: Update to 1.75.0
Announce: https://blog.rust-lang.org/
ChangeLog: https://github.com/rust-lang/rust/releases/tag/1.75.0
PR: 276033
Tested by: mikael,pkubaj
ba388fc |
Sunday, 7 Jan 2024
|
15:14 Joel Bodenmann (jbo) Author: Dmitry Wagin
Mk/Uses/cargo.mk: Fix cargo-extract target
Fix an issue where the cargo-extract target fails when a port sets DIST_SUBDIR.
PR: 275634
Approved by: tcberner (mentor), rust (tobik)
Differential Revision: https://reviews.freebsd.org/D43259
c2e360d |
Wednesday, 3 Jan 2024
|
14:09 Piotr Kubaj (pkubaj)
Mk/Uses/cargo.mk: remove ELFv1 support
96118b6 |
Friday, 8 Dec 2023
|
15:02 Mikael Urankar (mikael)
lang/rust: Update to 1.74.1
Announce: https://blog.rust-lang.org/2023/12/07/Rust-1.74.0.html
https://blog.rust-lang.org/2023/11/16/Rust-1.74.1.html
ChangeLog: https://github.com/rust-lang/rust/releases/tag/1.74.0
https://github.com/rust-lang/rust/releases/tag/1.74.1
PR: 275243
Tested by: mikael,pkubaj
c926bbf |
Tuesday, 24 Oct 2023
|
10:21 Mikael Urankar (mikael)
lang/rust: Update to 1.73.0
Announce: https://blog.rust-lang.org/2023/10/05/Rust-1.73.0.html
ChangeLog: https://github.com/rust-lang/rust/releases/tag/1.73.0
PR: 274499
Tested by: mikael,pkubaj
13de47f |
Friday, 8 Sep 2023
|
09:05 Mikael Urankar (mikael)
lang/rust: Update to 1.72.0
Announce: https://blog.rust-lang.org/2023/08/24/Rust-1.72.0.html
ChangeLog: https://github.com/rust-lang/rust/releases/tag/1.72.0
PR: 244316
Tested by: mikael,pkubaj
fa87481 |
Saturday, 12 Aug 2023
|
01:37 Piotr Kubaj (pkubaj)
Mk/Uses/cargo.mk: enable LTO on powerpc64
0b85c85 |
Monday, 17 Jul 2023
|
15:57 Mikael Urankar (mikael)
lang/rust: Update to 1.71.0
Announce: https://blog.rust-lang.org/2023/07/13/Rust-1.71.0.html
ChangeLog: https://github.com/rust-lang/rust/releases/tag/1.71.0
PR: 272449
Tested by: mikael,pkubaj,vishwin
e3d08df |
Friday, 9 Jun 2023
|
11:38 Mikael Urankar (mikael)
lang/rust: Update to 1.70.0
Announce: https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html
ChangeLog: https://github.com/rust-lang/rust/releases/tag/1.70.0
PR: 271797
Tested by: mikael,pkubaj
6b97895 |
Saturday, 6 May 2023
|
05:47 Daniel Engberg (diizzy)
Mk/Uses/cargo.mk: Strip features defined by CPUTYPE for aarch64 and armv7
Strip features from CPUTYPE set by make.conf as these are not supported
by Rust compiler and causes build failures
Approved by: rust (pkubaj)
Differential Revision: https://reviews.freebsd.org/D39889
670abe5 |
Sunday, 23 Apr 2023
|
13:13 Mikael Urankar (mikael)
lang/rust: Update to 1.69.0
Announce: https://blog.rust-lang.org/2023/04/20/Rust-1.69.0.html
ChangeLog: https://github.com/rust-lang/rust/releases/tag/1.69.0
PR: 270953
Tested by: mikael,pkubaj
8cc5eb3 |
Tuesday, 4 Apr 2023
|
08:21 Jan Beich (jbeich)
Mk/Uses/cargo.mk: unbundle archivers/zstd
Tested by: kai (games/anki)
Differential Revision: https://reviews.freebsd.org/D39279
046448b |
08:21 Jan Beich (jbeich)
Mk/Uses/cargo.mk: chase b23ea4e2d2f5
PR: 268877
118dcbb |
Thursday, 16 Mar 2023
|
11:11 Mikael Urankar (mikael)
lang/rust: Update to 1.68.0
Announce: https://blog.rust-lang.org/2023/03/09/Rust-1.68.0.html
ChangeLog: https://github.com/rust-lang/rust/releases/tag/1.68.0
PR: 270080
Tested by: mikael,pkubaj
a22be89 |
Monday, 13 Feb 2023
|
09:38 Mikael Urankar (mikael)
lang/rust: Update to 1.67.1
Announce: https://blog.rust-lang.org/2023/01/26/Rust-1.67.0.html
https://blog.rust-lang.org/2023/02/09/Rust-1.67.1.html
ChangeLog: https://github.com/rust-lang/rust/releases/tag/1.67.0
https://github.com/rust-lang/rust/releases/tag/1.67.1
PR: 269336
Reviewed by: pkubaj
Tested by: mikael,pkubaj
be2a720c |
Saturday, 7 Jan 2023
|
19:22 Daniel Engberg (diizzy)
Mk/Uses/cargo.mk: Enable WITH_LTO by default
Ports utilizing Cargo will now enable Link Time Optimization (LTO),
set error handling mechanism to abort and codegen-units to 1 by default.
Exceptions are powerpc64 and riscv64 where LTO is known to be broken
and disabled to avoid unnecessary breakage. Ports utilizing LTO will
output "Additional optimization to port applied" during build.
WITH_LTO is handled by Mk/Features/lto.mk and to disable define
LTO_UNSAFE=yes.
I'd also like to mention arrowd and tobik for helpful input
and thanks to everyone involved.
Reviewed by: mikael (via irc), pkubaj
Tested by: eduardo (build)
Approved by: rust (mikael, pkubaj)
Differential Revision: https://reviews.freebsd.org/D36736
967022f |
Tuesday, 20 Dec 2022
|
17:36 Mikael Urankar (mikael)
lang/rust: Update to 1.66.0
Announce: https://blog.rust-lang.org/2022/12/15/Rust-1.66.0.html
ChangeLog: https://github.com/rust-lang/rust/releases/tag/1.66.0
PR: 268415
Exp-run by: antoine
Tested by: mikael,pkubaj
0f9b08f |
Thursday, 17 Nov 2022
|
07:06 Mikael Urankar (mikael)
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
af39fba |
Tuesday, 8 Nov 2022
|
09:12 Tobias Kortkamp (tobik)
USES=cargo: Fix CARGO_BUILDDEP=any-version
Fix update.sh to only replace the first version.
922686e |
Sunday, 30 Oct 2022
|
12:07 Mikael Urankar (mikael)
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
264a6c5 |
Thursday, 25 Aug 2022
|
21:16 Tobias Kortkamp (tobik)
Uses/cargo: Allow using any Rust version if requested
Skip the Rust version check when CARGO_BUILDDEP=any-version
The current version check is justified by USES=cargo making use
of newer toolchain features that not all Cargo versions support
and the fact that Rust binaries are statically linked against
libstd (and others) which have been vulnerable in the past.
We can enforce the use of the correct toolchain only with the
version check. Together with revision bumps of all ports that
have lang/rust as input we can ensure that they are kept "fresh"
and relinked whenever lang/rust is updated.
According to amdmi3@ skipping the check might be useful for build
testing in some cases.
Individual ports should not set CARGO_BUILDDEP=any-version. It
can be set in make.conf or on the command line by users.
PR: 265062
Reported by: amdmi3
4b50067 |
14:49 Baptiste Daroussin (bapt)
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
b9b250f |
10:49 Piotr Kubaj (pkubaj)
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
8ecb1f8 |
08:50 Mikael Urankar (mikael)
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
f36cc81 |
Saturday, 2 Jul 2022
|
13:47 Mikael Urankar (mikael)
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
558a5e4 |
Tuesday, 31 May 2022
|
13:06 Mikael Urankar (mikael)
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
aa578f2 |
Sunday, 1 May 2022
|
16:39 Mikael Urankar (mikael)
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]
https://github.com/rust-lang/rust/commit/07dae5a97b64100f5abd511f1e2d5a6263a54006
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
e57dfbf |
Sunday, 24 Apr 2022
|
10:00 Tobias C. Berner (tcberner)
framework: cleanup conditional-indentations in Mk/
Run Tools/scripts/indent_make_if.pl on all of Mk.
These white space changes contribute greatly to the readability of those files.
As we have a version control system, finding out the reasons for the changes
prior to these white space changes is still easily possible
Differential Revision: https://reviews.freebsd.org/D35024
Reviewed by: portmgr (rene, bapt)
aa25396 |
Saturday, 23 Apr 2022
|
07:40 Tobias Kortkamp (tobik)
Uses/cargo: Try to simplify cargo-crates-merge usage
Always start with a clean work directory state and end with one
too. Automatically run makesum too.
7fb087a |
07:39 Tobias Kortkamp (tobik)
Uses/cargo: Add cargo-audit maintainer target
It wraps security/cargo-audit and generates a report about
vulnerable crates. Many ports have those. Based on D17448.
d00e326 |
Tuesday, 19 Apr 2022
|
12:09 Piotr Kubaj (pkubaj)
Mk/Uses/cargo.mk: set correct target CPU on powerpc
85a1684 |
Tuesday, 29 Mar 2022
|
18:24 Piotr Kubaj (pkubaj)
Mk/Uses/cargo.mk: disable RUST_BACKTRACE on powerpc following cargo segfaults on
13.1
f2d29fa |
Tuesday, 15 Mar 2022
|
09:51 Mikael Urankar (mikael)
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
53e4457 |
Thursday, 3 Feb 2022
|
14:02 Tobias Kortkamp (tobik)
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
bd3a927 |
Monday, 17 Jan 2022
|
11:56 Tobias Kortkamp (tobik)
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
1835888 |
Thursday, 23 Dec 2021
|
10:10 Tobias Kortkamp (tobik)
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
96eec29 |
Sunday, 5 Dec 2021
|
12:35 Tobias Kortkamp (tobik)
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
237b36f |
Sunday, 7 Nov 2021
|
15:24 Tobias Kortkamp (tobik)
Uses/cargo: Make it easier to build ports with out-of-tree toolchain
- CARGO_CARGO_BIN -> CARGO
- Add RUSTC and RUSTDOC for overriding rustc and rustdoc
d2eb03d |
15:24 Tobias Kortkamp (tobik)
Uses/cargo: Mirror _RUST_ARCH_* mapping from lang/rust
2487e48 |
Tuesday, 26 Oct 2021
|
14:46 Tobias Kortkamp (tobik)
Uses/cargo: Add a cargo-crates-merge maintainer target
It is the in-place version of cargo-crates and updates CARGO_CRATES
in the port's Makefile for you via portedit from ports-mgmt/portfmt.
6180c0b |
Monday, 25 Oct 2021
|
08:49 Tobias Kortkamp (tobik)
Uses/cargo: Rework git source support based on patch-in-config sections
Git sources from `Cargo.lock` are added to `CARGO_CRATES` through
the normal mechanism of `make cargo-crates` by the porter. They
are used to populate `MASTER_SITES`, `DISTFILES` with static
git-archive(1) tarballs a la `USE_GITHUB`, `USE_GITLAB`. In the
configure phase we generate `[patch]` sections in the config file
which will cause `cargo update` to auto-update `Cargo.lock` to point
to the appropriate extraction directories.
Normally `cargo update` would connect to the network to update all
Git sources but since rust-1.55.0 our cargo has been patched to
skip this when `CARGO_FREEBSD_PORTS_SKIP_GIT_UPDATE` is set in the
environment.
This replaces the old `CARGO_USE_GITHUB`, `CARGO_USE_GITLAB` hacks
where this was done by editing all `Cargo.toml` with sed(1) calls.
Additionally, we try to automatically infer the individiual crate
sub-directories inside the Git sources based on `package.name` in
`Cargo.toml` to remove the need for `CARGO_GIT_SUBDIR`.
USES=cargo also now sets `WRKSRC_crate_$name` for each crate to
point to the crate extraction directories.
PR: 256581
Reviewed by: jbeich
2bad8d1 |
08:46 Tobias Kortkamp (tobik)
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
124261f |
Sunday, 19 Sep 2021
|
09:03 Tobias Kortkamp (tobik) Author: Jan Beich
Uses/cargo: respect CC when --target is passed
devel/cargo-c always passes --target when building consumers.
Some other USES=cargo consumers may also pass --target.
Differential Revision: https://reviews.freebsd.org/D31568
93924a2 |
09:03 Tobias Kortkamp (tobik)
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
6f1fefb |
Tuesday, 7 Sep 2021
|
16:53 Tobias Kortkamp (tobik)
Scripts/cargo-crates.awk: Move split_url() to separate file
Also stop leaking local variables
d8fbaa5 |
08:04 Tobias Kortkamp (tobik)
Uses/cargo: Try to load Makefile.crates
Some ports stash the `make cargo-crates` output there which might as
well be supported by USES=cargo.
905b1bd |
Monday, 6 Sep 2021
|
19:28 Tobias Kortkamp (tobik)
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
b1670e2 |
Saturday, 28 Aug 2021
|
13:38 Mikael Urankar (mikael) Author: pouet
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
55dbdde |
Sunday, 27 Jun 2021
|
05:39 Tobias Kortkamp (tobik)
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
f897ded |
Tuesday, 11 May 2021
|
17:29 Tobias Kortkamp (tobik)
Mk/Uses/cargo.mk: Refactor MASTER_SITES and DISTFILES construction (D30099)
Split CARGO_CRATES into (index, crate, name, version) 4-tuples and
use them to construct MASTER_SITES and DISTFILES. We can also match
crate name and versions more directly below.
As a bonus this is slightly faster and will flag a malformed
CARGO_CRATES earlier with a "wrong number of words" error.
Runtime of the following command was noticeably faster
$ <rust-ports /usr/bin/time xe -F make -C {} -V DISTFILES -V MASTER_SITES
>/dev/null
Before: 56.99 real 50.05 user 6.44 sys
Now: 38.89 real 31.63 user 6.86 sys
PR: 255608
Exp-run by: antoine
bfd3382 |
17:29 Tobias Kortkamp (tobik)
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
d883741 |
Wednesday, 28 Apr 2021
|
04:44 Tobias Kortkamp (tobik)
Mk/Uses/cargo.mk: Use canonical crate file extension going forward
Crates should have the file extension .crate not .tar.gz. Cargo
saves them with that extension and it is also what their original
name was according to file(1):
$ file rust/crates/*
rust/crates/better-panic-0.2.0.tar.gz:gzip compressed data, was
"better-panic-0.2.0.crate"
rust/crates/binary-space-partition-0.1.2.tar.gz:gzip compressed data, was
"binary-space-partition-0.1.2.crate"
...
The only reason we used .tar.gz is that it was that way in OpenBSD's
devel/cargo/cargo.port.mk module. At the moment they are all .tar.gz
but they might have a different format in the future.
Doing a delayed rollout of this over a change-everything-once
approach to
- not immeditately invalidate all uncommitted port changes or
external ports
- not make sweeping changes twice in main and 2021Q2
at the cost of having a transition period where mirrors might have
to carry both the .tar.gz and .crate tarballs (all crates combined
are ~600 MiB).
Reviewed by: jbeich
MFH: 2021Q2 (to ease future cherry picks)
Differential Revision: https://reviews.freebsd.org/D29760
3758b33 |
Monday, 19 Apr 2021
|
09:07 Luca Pizzamiglio (pizzamig)
Uses/cargo: Improve URL subsitution for ports using CARGO_USE_GIT[HUB|LAB]
While maintaing a rust application, I found a cargo.toml that specifies
the git URL with { git="https://..." }, cargo.mk expects a form like { git =
"https://" }.
This patch improve the regex making the spaces around the '=' optional
Test: built all ports using the CARGO_USE_GIT feature
Approved by: tobik
Differential Revision: https://reviews.freebsd.org/D29805
58744a0 |
Wednesday, 14 Apr 2021
|
12:22 Tobias Kortkamp (tobik)
Speed up USES=cargo ports ops
MASTER_SITES aliases processing in the framework is very inefficient
and the CRATESIO indirection is not worth it. Normally ports only
have a handful of sites at most, but USES=cargo currently adds one
site for each crate by necessity. The inefficiency suddenly matters
a lot.
By consuming MASTER_SITE_CRATESIO directly we can sidestep this
issue without losing anything.
Before:
$ time make -C www/zola -V MASTER_SITES >/dev/null
4.21 real 4.14 user 0.03 sys
After:
$ time make -C www/zola -V MASTER_SITES >/dev/null
0.60 real 0.58 user 0.02 sys
ffd4db6 |
Tuesday, 13 Apr 2021
|
07:05 Tobias Kortkamp (tobik)
Mk/Uses/cargo.mk: Make build scripts more verbose
Build scripts might build bundled libraries but non-error output
is hiddden by cargo. Given a crate with large enough bundled library
(looking at you rusty_v8) the build just sits there in silence
forever and you do not know what is happening or if anything is
happening at all. This also makes Poudriere build logs less useful.
Pass an additional --verbose to cargo to get more noisy output.
https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-the-build-script
7bec7b1 |
Tuesday, 6 Apr 2021
|
14:27 Mathieu Arnold (mat)
framework: Remove $FreeBSD$
Where appropriate fiddle with a few other things.
5d33e04 |
Monday, 29 Mar 2021
|
18:07 tobik
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
|
Sunday, 14 Feb 2021
|
15:45 mikael
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
|
Tuesday, 24 Nov 2020
|
12:48 mikael
lang/rust: Update to 1.48.0
Changes: https://github.com/rust-lang/rust/releases/tag/1.48.0
Reviewed by: jbeich
Tested by: bdragon, jbeich, mikael
Differential Revision: https://reviews.freebsd.org/D27293
|
Tuesday, 10 Nov 2020
|
15:42 pkubaj
Add powerpc64le since it uses the same CPU models as powerpc64.
|
Tuesday, 13 Oct 2020
|
08:36 mikael
lang/rust: Update to 1.47.0
- Add powerpc64le arch (submitted by bdragon in D26711)
- Disable DOCS, same problem fixed in r546048
- Update devel/racer to 2.1.36
- Import upstream patch to fix www/firefox
(https://hg.mozilla.org/integration/autoland/rev/e2cede25c027)
- Import gentoo patches to fix www/firefox-esr, www/cliqz and mail/thunderbird
(https://dev.gentoo.org/~whissi/mozilla/patchsets/firefox-esr-78-patches-03.tar.xz
: 0036, 0037 and 0038)
- Force rebuild all consumers to catch regressions
Changelog:
https://github.com/rust-lang/rust/releases/tag/1.47.0
Differential Revision: https://reviews.freebsd.org/D26721
|
Saturday, 19 Sep 2020
|
13:01 pkubaj
Use correct target-cpu for power* CPU's
Using CPUTYPE?=power9 causes warnings and emits unoptimized code. Rust supports
pwr* instead of power*, e.g.:
pwr3
pwr4
pwr5
pwr5x
pwr6
pwr6x
pwr7
pwr8
pwr9
|
Sunday, 30 Aug 2020
|
18:36 tobik
lang/rust: Update to 1.46.0
- Force rebuild all consumers to catch regressions early
Changes: https://blog.rust-lang.org/2020/08/27/Rust-1.46.0.html
With hat: rust
Differential Revision: https://reviews.freebsd.org/D26176
|
Monday, 3 Aug 2020
|
15:18 tobik
lang/rust: Update to 1.45.2
Changes: https://blog.rust-lang.org/2020/08/03/Rust-1.45.2.html
|
Thursday, 30 Jul 2020
|
18:26 tobik
lang/rust: Update to 1.45.1
- Apply the "hard links break `env::current_exe()`" workaround from
r543251 to lang/rust too
- Force rebuild all consumers for the soundness bug in 1.45.0
Changes: https://blog.rust-lang.org/2020/07/30/Rust-1.45.1.html
With hat: rust
Differential Revision: https://reviews.freebsd.org/D25835
|
Friday, 17 Jul 2020
|
06:44 tobik
lang/rust: Update to 1.45.0
- This Rust release comes with LLVM 10. Drop the LLVM patches we
no longer need.
- On FreeBSD 13.0 powerpc64 set the elfv2 ABI explicitly in the
Rust target instead of patching LLVM.
- Build LLVM with Ninja. It can shorten the build time slightly.
- Force rebuild all consumers to catch regressions early
Changes: https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html
Tested by: mikael, pkubaj, tobik
With hat: rust
Differential Revision: https://reviews.freebsd.org/D25658
|
Thursday, 4 Jun 2020
|
18:08 tobik
lang/rust: Update to 1.44.0
- Remove devel/cargo-tree since it is now integrated into cargo
- Add patch to fix build with LibreSSL 3.1.x and 3.2.0 [1]
- Force rebuild all consumers to catch regressions early
Changes: https://blog.rust-lang.org/2020/06/04/Rust-1.44.0.html
PR: 246332 [1]
Tested by: mikael, tobik
With hat: rust
Differential Revision: https://reviews.freebsd.org/D25099
|
Thursday, 23 Apr 2020
|
15:32 tobik
lang/rust: Update to 1.43.0
- Add workaround to fix build when CC/CXX have "clang" in them [1]
- Respect AR to fix build with external toolchains [2]
- Force rebuild all consumers to catch regressions early
Changes: https://blog.rust-lang.org/2020/04/23/Rust-1.43.0.html
PR: 238556 [1], 245583 [2]
Reported by: Matthias Apitz <guru@unixarea.de> [1], Greg V
<greg@unrelenting.technology> [2]
Tested by: mikael, pkubaj, tobik
With hat: rust
Differential Revision: https://reviews.freebsd.org/D24521
|
Saturday, 4 Apr 2020
|
07:40 tobik
Mk/Uses/cargo.mk: Add a warning about the openssl-src crate
PR: 245337
|
Monday, 23 Mar 2020
|
03:57 tobik
Mk/Uses/cargo.mk: Better deal with versions with build identifier suffixes
A crate spec like curl-sys-0.4.30+curl-7.69.1 was incorrectly
interpreted as having a name of 'curl-sys-0.4.30+curl' instead of
'curl-sys' and failed to fetch as a consequence.
Crate names can only be composed of a limited character set [1].
Limit the regular expressions to that set and make them less greedy.
[1] https://doc.rust-lang.org/cargo/reference/manifest.html#the-name-field
PR: 244977
Reported by: jbeich
|
Thursday, 12 Mar 2020
|
19:39 tobik
lang/rust: Update to 1.42.0
- Force rebuild all consumers to catch regressions early
Changes: https://blog.rust-lang.org/2020/03/12/Rust-1.42.html
Tested by: mikael, tobik
With hat: rust
Differential Revision: https://reviews.freebsd.org/D24020
|
Wednesday, 4 Mar 2020
|
15:00 tobik
Mk/Uses/cargo.mk: Allow disabling default features via CARGO_FEATURES
CARGO_FEATURES is overloaded to accept --no-default-features as a
special token which will set CARGO_{BUILD,INSTALL,TEST}_ARGS
appropriately. This is done in preference over introducing yet
another knob.
|
Thursday, 27 Feb 2020
|
15:22 tobik
lang/rust: Update to 1.41.1
- Force rebuild all consumers to fix potential miscompilations with
1.41.0
- Enable SOURCES by default. The sources are indexed by RLS and
required for it to function properly, so they should be available
by default. This also makes sure we test the option properly.
- Remove implied --config=config.toml from x.py args
- Switch to the upstreamed backtrace crate patches like rust-nightly
- Enable WASM by default [0]
- Strip libraries (D23650) [1]
- Simplify plist generation (D23735) [2]
Changes: https://blog.rust-lang.org/2020/02/27/Rust-1.41.1.html
Submitted by: mikael [0,1,2]
With hat: rust
Differential Revision: https://reviews.freebsd.org/D23835
|
Thursday, 30 Jan 2020
|
20:00 tobik
lang/rust: Update to 1.41.0
- Force rebuild all consumers to catch regressions early
- Switch to cross-compiled (from amd64) bootstraps for all
architectures generated with the incoming lang/rust-bootstrap
- Update cargo-c to 0.5.2 to unbreak librav1e build
- Make use of regular MAKE_ENV/TEST_ENV in lang/rust
- Turn on RUST_BACKTRACE in lang/rust and USES=cargo to hopefully
produce more useful failure logs when something panics during
builds
Changes: https://blog.rust-lang.org/2020/01/30/Rust-1.41.0.html
Tested by: mikael, tobik
With hat: rust
Differential Revision: https://reviews.freebsd.org/D23385
|
Thursday, 23 Jan 2020
|
09:08 tobik
Mk/Uses/cargo.mk: Unbreak install with rust-nightly
Remove yet another install metadata file. This should all be
replaced with --no-track once it is part of lang/rust.
https://github.com/rust-lang/cargo/pull/7560
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: .crates2.json
|
Monday, 13 Jan 2020
|
18:36 tobik
lang/rust: Add COMPAT_FREEBSD11 canary
This attempts to provide a nicer error message for the subset of
users who build their own kernels without COMPAT_FREEBSD11 and then
attempt to build lang/rust. The Rust ecosystem currently uses
pre-ino64 syscalls, so building lang/rust without COMPAT_FREEBSD11
is not going to work.
The error message for this is non-obvious and there is a new bug
for this at least every 1-2 months. Hopefully this will improve
the situation a little.
Cargo and Gecko ports are similarly affected, so add the pre-build
check to them too.
Reviewed by: jbeich, mikael.urankar@gmail.com
Tested by: madpilot (negative case)
Approved by: gecko (jbeich)
Differential Revision: https://reviews.freebsd.org/D23100
|
Thursday, 19 Dec 2019
|
16:14 tobik
lang/rust: Update to 1.40.0
- Force rebuild all consumers to catch regressions early
Thanks to Mikael Urankar for providing updated bootstraps for
aarch64, armv6, armv7, powerpc64.
Changes: https://blog.rust-lang.org/2019/12/19/Rust-1.40.0.html
Tested by: mikael.urankar@gmail.com, tobik
With hat: rust
Differential Revision: https://reviews.freebsd.org/D22843
|
Sunday, 1 Dec 2019
|
08:43 tobik
Mk/Uses/cargo.mk: Do not override do-configure
Cargo vendoring can be useful even for ports that use other build
systems like Meson to call Cargo for the actual build. Often they
use the framework's default do-configure which USES=cargo should
not overwrite.
Remove hacks from games/jaggedalliance2 and x11/squeekboard.
Reviewed by: jbeich
Differential Revision: https://reviews.freebsd.org/D22619
|
Friday, 29 Nov 2019
|
22:12 tobik
lang/rust, Mk/Uses/cargo.mk: Drop gmake build dependency for backtrace-sys
The backtrace-sys crate no longer needs gmake since 0.1.20.
sysutils/flowgger still uses backtrace-sys-0.1.14. Since it is the
only USES=cargo port left that needs it, move the gmake dependency
directly to it instead.
lang/rust currently has backtrace-sys-0.1.30. It also vendors
jemalloc-sys (which also needs gmake to build) but it is hidden
behind rustc's jemalloc feature which we do not currently activate.
It should be safe to remove gmake in lang/rust too.
PR: 242267
Reported by: mikael.urankar@gmail.com
|
15:02 pkubaj
Mk/bsd.port.mk: detect powerpc64 abi
We'll have a new abi on ppc64 soon (ELFv2) which is incompatible with the ELFv1
abi. We need to detect the abi on which we build stuff.
Submitted by: mikael_urankar@gmail.com
Approved by: portmgr (earlier version)
Differential Revision: https://reviews.freebsd.org/D22039
|
Tuesday, 19 Nov 2019
|
21:08 tobik
Mk/Uses/cargo.mk: Add CARGO_GIT_SUBDIR hook to provide hints for CARGO_USE_GIT*
This is a workaround to add some manual "support" for Cargo projects
that use workspaces where the current method of patching is not
good enough as it causes the various Cargo.toml to point to the
wrong directory. With CARGO_GIT_SUBDIR maintainers can control the
patching process a little and point things to the correct subdirectories.
CARGO_GIT_SUBDIR= <group>:<crate name>:<subdir under ${WRKSRC_group}>
This is needed for alacritty 0.4.0-rc2 where the glutin sources are
under ${WRKSRC_glutin}/glutin and not just ${WRKSRC_glutin}. This
causes the following issue:
error: failed to load source for a dependency on `glutin`
Caused by:
Unable to update .../x11/alacritty/work/glutin-7e479d
Caused by:
found a virtual manifest at `.../x11/alacritty/work/glutin-7e479d/Cargo.toml`
instead of a package manifest
For glutin we would set CARGO_GIT_SUBDIR=glutin:glutin:glutin to
work around this problem and point the build to
.../x11/alacritty/work/glutin-7e479d/glutin instead.
|
Thursday, 7 Nov 2019
|
18:07 tobik
lang/rust: Update to 1.39.0
- Force rebuild all consumers to catch regressions early
- Partially apply D20792 in preparation for PPC_ABI support
- Add LibreSSL 3.0.x support [1]
Thanks to Mikael Urankar for providing updated bootstraps for
aarch64, armv6, armv7, powerpc64.
Changes: https://blog.rust-lang.org/2019/11/07/Rust-1.39.0.html
PR: 241411 [1]
Tested by: mikael.urankar@gmail.com, tobik
With hat: rust
Differential Revision: https://reviews.freebsd.org/D22240
|
Friday, 27 Sep 2019
|
12:51 tobik
Mk/Uses/cargo.mk: Handle git URLs that end with /
Fix CARGO_USE_GIT{HU,LA}B when Cargo.toml has URLs that end with
/. This is needed for audio/spotifyd 0.2.16 which has an entry
like
structopt = { git = "https://github.com/TeXitoi/structopt/", rev = "..." }
|
09:35 tobik
lang/rust: Update to 1.38.0
- Force rebuild all consumers to catch regressions early
Thanks to Mikael Urankar for providing updated bootstraps for
aarch64, armv6, armv7, powerpc64.
Changes: https://blog.rust-lang.org/2019/09/26/Rust-1.38.0.html
Tested by: jbeich, mikael.urankar@gmail.com, tobik
With hat: rust
Differential Revision: https://reviews.freebsd.org/D21778
|
Monday, 16 Sep 2019
|
12:39 tobik
Mk/Uses/cargo.mk: Add gmake build dependency for jemalloc-sys
|
Thursday, 15 Aug 2019
|
14:30 tobik
lang/rust: Update to 1.37.0
- Force rebuild all consumers to catch regressions early
Thanks to Mikael Urankar for providing updated bootstraps for
aarch64, armv6, armv7, powerpc64.
Changes: https://blog.rust-lang.org/2019/08/15/Rust-1.37.0.html
Tested by: jbeich, tobik, greg@unrelenting.technology (aarch64)
With hat: rust
Differential Revision: https://reviews.freebsd.org/D21247
|
Tuesday, 6 Aug 2019
|
08:12 tobik
Mk/Uses/cargo.mk: Add support for CARGO_USE_GITLAB/GL_TUPLE to cargo-crates
|
Thursday, 18 Jul 2019
|
08:18 tobik
www/geckodriver: Bump libc crate version again
$ make check-sanity
/!\ geckodriver-0.24.0: Makefile warnings, please consider fixing /!\
CARGO_CRATES=libc-0.2.43 may be unstable on aarch64 or not build on armv6,
armv7, powerpc64. Consider updating to the latest version (higher than 0.2.49).
This will give it at least a chance to build on tier 2 archs. We
bumped libc earlier but this was regressed on in r506813.
The libc warnings in USES=cargo do not seem to be enough. Make
them errors instead.
With hat: rust
|
Monday, 15 Jul 2019
|
08:46 tobik
Mk/Uses/cargo.mk: Handle distfile group names properly
Crates like openssl-src-111.3.0+1.1.1c have characters not in
[a-zA-Z0-9]. Use the complement of [a-zA-Z0-9] instead of adding
+ to the list of chars [-.] we currently handle.
|
Thursday, 4 Jul 2019
|
14:41 tobik
lang/rust: Update to 1.36.0
- Force rebuild all consumers to catch regressions early
Thanks to Mikael Urankar for providing updated bootstraps for
aarch64, armv6, armv7, powerpc64.
Changes: https://blog.rust-lang.org/2019/07/04/Rust-1.36.0.html
Tested by: jbeich, mikael.urankar@gmail.com
With hat: rust
Differential Revision: https://reviews.freebsd.org/D20810
|
Monday, 10 Jun 2019
|
10:56 tobik
Mk/Uses/cargo.mk: Add CARGO_INSTALL_PATH knob
It can be used to overwrite the --path argument when calling `cargo
install` to point cargo to different local crates to install. This
might be necessary when ${WRKSRC}/Cargo.toml is only a virtual
manifest.
|
Friday, 24 May 2019
|
07:57 tobik
Mk/Uses/cargo.mk: QoL improvement during makepatch
Cargo normalizes Cargo.toml when crates are published. It creates
a Cargo.toml.orig to preserve the original. Rename them to not
interfere with makepatch and avoid creating a bunch of useless
and wrong files/patch-*Cargo.toml.
Suggested by: mat
|
03:25 tobik
lang/rust: Update to 1.35.0
- Force rebuild all consumers to catch regressions early
Thanks to Mikael Urankar for providing updated bootstraps for
aarch64, armv6, armv7, powerpc64.
Changes: https://blog.rust-lang.org/2019/05/23/Rust-1.35.0.html
Reviewed by: jbeich
Tested by: pkubaj (powerpc64), mikael.urankar@gmail.com (aarch64)
With hat: rust
Differential Revision: https://reviews.freebsd.org/D20332
|
Wednesday, 15 May 2019
|
03:12 tobik
lang/rust: Update to 1.34.2
- While here add patches from [1] for LibreSSL 2.9.1 support
[1] https://github.com/sfackler/rust-openssl/pull/1097
Changes: https://blog.rust-lang.org/2019/05/13/Security-advisory.html
Changes: https://blog.rust-lang.org/2019/05/14/Rust-1.34.2.html
PR: 237495 [1]
Security: 37528379-76a8-11e9-a4fd-00012e582166
|
Wednesday, 17 Apr 2019
|
07:33 tobik
Mk/Uses/cargo.mk: Push lib dependencies back down into ports
Some crates are optional via Cargo features or are only used during
tests, however the framework has no way to discriminate between
test or run dependencies using just CARGO_CRATES leading to more
run dependencies than necessary for some packages. With more ported
Rust applications it's time to let individual ports make that
decision now.
The environmental setup to use dependencies from ports instead of
bundled ones and implied build dependencies (cmake, gmake, pkgconf)
are left in place for now.
Assign cargo.mk to rust@ while here.
|
Thursday, 11 Apr 2019
|
19:39 tobik
lang/rust: Update to 1.34.0
- Update devel/racer to latest version that can build with 1.34.0
- Drop no longer needed patch from textproc/ripgrep
- Force rebuild all consumers to catch regressions early
Thanks to Mikael Urankar for providing updated bootstraps for
aarch64, armv6, armv7, powerpc64.
Changes: https://blog.rust-lang.org/2019/04/11/Rust-1.34.0.html
Reviewed by: jbeich
With hat: rust
Differential Revision: https://reviews.freebsd.org/D19850
|
Monday, 25 Mar 2019
|
06:28 tobik
Mk/Uses/cargo.mk: Add GitLab support and drop CARGO_GH_CARGOTOML
- Add a CARGO_USE_GITHUB equivalent for GitLab instances,
CARGO_USE_GITLAB
- Replace CARGO_GH_CARGOTOML with a ${FIND} and just patch
all Cargo.toml under ${WRKDIR}. It is too tedious to find all
the Cargo.toml that need patching manually due to transitive
dependencies.
|
Number of commits found: 126 (showing only 100 on this page) |