Created attachment 157880 [details] Shell archive of devel/cloudabi-binutils To get a full toolchain for CloudABI, we need a separate copy of GNU Binutils that is targeted against CloudABI. Upstream GNU Binutils already supports CloudABI out of the box, but this work will only be part of Binutils 2.26, which hasn't been released yet. The attached shell archive adds a new port called devel/cloudabi-binutils, built on top of the devel/binutils port. It ships with a backported version of the CloudABI changes. This patch can be removed as soon as devel/binutils is bumped to 2.26. Keep in mind that this port still depends on bug 200967; we first need config.sub and config.guess to be fixed up before this port can be added to the tree.
Created attachment 157881 [details] Shell archive of devel/cloudabi-binutils
Created attachment 157883 [details] Shell archive of devel/cloudabi-binutils Slight cleanup: don't install the Binutils binaries twice. Binutils normally installs a second copy within ${TARGET}/bin. My observation is that these are never used. It is also incorrect in my opinion, as ${TARGET} should only contain libraries and binaries built for the target.
Looks good to me
Thanks for the review, Baptiste! I've added the port in r390208.
A commit references this bug: Author: ed Date: Sun Jun 21 13:41:05 UTC 2015 New revision: 390208 URL: https://svnweb.freebsd.org/changeset/ports/390208 Log: New port: devel/cloudabi-binutils. This port installs a copy of GNU Binutils that targets CloudABI. CloudABI is a compact UNIX-like runtime environment built on capability-based security. More details: https://github.com/NuxiNL/cloudlibc Support for CloudABI has been upstreamed, but will only be part of the upcoming version of Binutils. This port includes a backported copy of the patchset. It can safely be removed if devel/binutils is bumped to a newer version. PR: 200968 Reviewed by: bapt Changes: head/devel/Makefile head/devel/cloudabi-binutils/ head/devel/cloudabi-binutils/Makefile head/devel/cloudabi-binutils/files/ head/devel/cloudabi-binutils/files/patch-cloudabi head/devel/cloudabi-binutils/pkg-plist