Created attachment 187212 [details] v0 Firefox 57 (scheduled on 2017-11-14) is going to enable Stylo by default. During build Stylo uses rust-bindgen which relies on libclang returning a struct (e.g., CXString). This seems to corrupt the stack on i386. Let's follow OpenBSD behavior for now. MFH to 2017Q4 for Rust 1.19 is desired. I can't do continuous QA for quarterlies. FreeBSD 10.3 build logs: lang/rust - http://sprunge.us/jEba www/firefox - http://sprunge.us/OYQf (see -DMOZ_STYLO)
Maintainer informed via mail
1 week left before maintainer timeout. Stylo from Firefox 56 also builds/works fine on i386. ;) However, I've only tested other consumers together with bug 223123.
I will try to finish the update to Rust 1.21.0 (bug 223123) first, to reduce testing time, as you already tested 1.21.0 and this patch together successfully. Thank you for preparing the patch!
Landing together with bug 223123 isn't a good idea. It'd block MFH to 2017Q4 and force me to maintain disabled Stylo on i386 for both Firefox 56 and Firefox 57.
I would have made two separate commits, but I see what you mean. Ok, I will take care of this patch first.
Consumers (see below) built fine on 10.3 i386 with the patch here backported to 2017Q4. devel/bingrep devel/pijul devel/racer editors/xi-core sysutils/exa sysutils/flowgger textproc/ripgrep www/firefox (without files/patch-bug1401093) www/geckodriver x11/alacritty
Created attachment 187394 [details] v1 (has commit message) Initially, I've planned to land this myself but due to ambiguity of approval/intent handing over to you. To avoid waiting game enable Stylo in the same commit (or shortly after): - Remove workaround in www/firefox which disables Stylo build - Don't clobber PORTREVISION value in lang/rust-nightly Note, the next package build will probably start tonight at 01:00 UTC. The default interval appears to be 2 days. Landing just before a build starts allows to catch unexpected regressions sooner.
Sorry for the confusion, I was unclear. Feel free to commit it at the same time as the change to www/firefox. Generally, I think you can commit to lang/rust whenever you want because it's critical to your work.
A commit references this bug: Author: jbeich Date: Mon Oct 23 22:58:49 UTC 2017 New revision: 452748 URL: https://svnweb.freebsd.org/changeset/ports/452748 Log: lang/rust: unbreak FFI for returning struct on i386 As this fixes Stylo on i386, remove the workaround in www/firefox. PR: 223047 Suggested by: Sebastien Marie <semarie@openbsd.org> Approved by: rust (dumbbell) MFH: 2017Q4 (required by Firefox 57 scheduled on 2017-11-14) Changes: head/lang/rust/Makefile head/lang/rust/files/patch-src_librustc__back_target_freebsd__base.rs head/www/firefox/Makefile head/www/firefox/files/patch-bug1401093
Thank you! I can interrupt Poudriere and point it to 1.21.0 again :-)
A commit references this bug: Author: jbeich Date: Wed Oct 25 10:25:25 UTC 2017 New revision: 452841 URL: https://svnweb.freebsd.org/changeset/ports/452841 Log: MFH: r452748 lang/rust: unbreak FFI for returning struct on i386 As this fixes Stylo on i386, remove the workaround in www/firefox. PR: 223047 Suggested by: Sebastien Marie <semarie@openbsd.org> Approved by: rust (dumbbell) Approved by: ports-secteam (swills) Changes: _U branches/2017Q4/ branches/2017Q4/lang/rust/Makefile branches/2017Q4/lang/rust/files/patch-src_librustc__back_target_freebsd__base.rs branches/2017Q4/www/firefox/Makefile branches/2017Q4/www/firefox/files/patch-bug1401093
Upstreamed differently at https://github.com/rust-lang/rust/pull/48560