Ports overlay for sccache
Sccache is a compiler cache but unlike ccache it comes with Rust
support. This package provides a standalone version of sccache
that can work in Poudriere jails with glue for hooking it up to
the ports framework by simply activating an overlay.
ports-mgmt/sccache-overlay: increase prio to fix cargo at configure time
- increases the priority for the start-server to fix a race with
"250:cargo-configure" (fixes a configure time error for
py-granian and others)
- add a start-safeguard (helps when running "poudriere testpost -i"
during debugging) to not start it multiple times
PR: 296177
Maintainer timeout: 2 weeks
Fixes: 292835
ports-mgmt/sccache-overlay: Fix build with rust 1.91.0
error: trailing semicolon in macro used in expression position
--> src/compiler/compiler.rs:702:58
error: trailing semicolon in macro used in expression position
--> src/compiler/compiler.rs:705:71
PR: 290816
Mk/Uses/cargo.mk: Remove cross-compilation options for Rust-based ports
Reasons:
* Port build shouldn't use cross-compilation mode
because it buids for the same architecture.
* RUSTFLAGS isn't passed to the build of all or some Rust ports
in the cross-compilation mode.
Essential changes:
* Remove the CARGO_BUILD_TARGET make variable.
* Remove CARGO_BUILD_TARGET and CARGO_TARGET_* from CARGO_ENV.
* Update many ports that used CARGO_BUILD_TARGET.
* Build paths now don't include the architecture triplet part.
Immadiate benefits:
(Only the first 15 lines of the commit message are shown above )
*/*: remove STRIP_CMD calls in rust based ports
This is not needed after bc4fedc1fec0d359365c04d43be9e32bf101a50e
PR: 246993
Differential Revision: https://reviews.freebsd.org/D46503
ports-mgmt/sccache-overlay: Increase the timeout for server start
This does not fix all timeout failures on server start, but
reduces the amount of failed start attempts during a poudriere run
a lot.
I consider this as a workaround, not a real fix.
PR: 279496
Approved by: maintainer
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)
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.
(Only the first 15 lines of the commit message are shown above )
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
ports-mgmt/sccache-overlay: Disable idle timeout by default
It seems like it is too easy to hit during Firefox builds and
then the server is gone and builds fail with:
sccache: error: Connection to server timed out
Since Firefox disables it itself do the same here.
Tested by: jrm
ports-mgmt/sccache-overlay: Use Unix sockets and fix Poudriere builds
Poudriere builder jails seem to share one network namespace which
is problematic when building packages in parallel since sccache
binds to localhost:4226. This then leads to jails reusing the
sccache instance from other jails which is problematic and can
cause failures like
1/ missing files due to the filesystem separation:
sccache: caused by: No such file or directory (os error 2)
2/ the sccache instance suddenly going away when a parallel build
finishes and Poudriere shuts down the jail and kills all of its
processes:
(Only the first 15 lines of the commit message are shown above )
ports-mgmt/sccache-overlay: Drop bogus ONLY_FOR_ARCHS
It was inherited from devel/sccache which enables additional
features that need the ring crate. The sccache version here comes
with only local storage enabled and should build fine on other
archs too. This is untested but the ring crate is never compiled
according to the logs.
ports-mgmt/sccache-overlay: Add ports overlay for sccache
Sccache is a compiler cache but unlike ccache it comes with Rust
support. This package provides a standalone version of sccache
that can work in Poudriere jails with glue for hooking it up to
the ports framework by simply activating an overlay.
Based on tcberner's https://reviews.freebsd.org/D31243