Bug 200968 - [NEW PORT] devel/cloudabi-binutils
Summary: [NEW PORT] devel/cloudabi-binutils
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on: 200967
Blocks:
  Show dependency treegraph
 
Reported: 2015-06-19 11:06 UTC by Ed Schouten
Modified: 2015-06-21 13:41 UTC (History)
1 user (show)

See Also:


Attachments
Shell archive of devel/cloudabi-binutils (10.42 KB, patch)
2015-06-19 11:06 UTC, Ed Schouten
no flags Details | Diff
Shell archive of devel/cloudabi-binutils (10.42 KB, text/plain)
2015-06-19 11:10 UTC, Ed Schouten
no flags Details
Shell archive of devel/cloudabi-binutils (10.12 KB, text/plain)
2015-06-19 11:49 UTC, Ed Schouten
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Schouten freebsd_committer freebsd_triage 2015-06-19 11:06:53 UTC
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.
Comment 1 Ed Schouten freebsd_committer freebsd_triage 2015-06-19 11:10:34 UTC
Created attachment 157881 [details]
Shell archive of devel/cloudabi-binutils
Comment 2 Ed Schouten freebsd_committer freebsd_triage 2015-06-19 11:49:52 UTC
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.
Comment 3 Baptiste Daroussin freebsd_committer freebsd_triage 2015-06-21 12:44:03 UTC
Looks good to me
Comment 4 Ed Schouten freebsd_committer freebsd_triage 2015-06-21 13:41:29 UTC
Thanks for the review, Baptiste! I've added the port in r390208.
Comment 5 commit-hook freebsd_committer freebsd_triage 2015-06-21 13:41:33 UTC
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