Compiling ports in a post-9.0-RELEASE world

Mark Linimon linimon at lonesome.com
Mon Mar 14 11:00:10 UTC 2011


On Sat, Mar 12, 2011 at 02:00:33PM -0800, Doug Barton wrote:
> 1. Fix all ports to compile with both gcc 4.2 (for RELENG_[78]) and clang.

I do not believe we have enough time before 9.0R to accomplish this;
especially as I understand that there is pressure within the src committer
community to simply "throw the switch".

> 2. Adopt an official "ports compiler," which would likely be one of
> the gcc versions from the ports tree itself, and update all ports to
> work with it.

I think this is our only reasonable alternative medium-term.

Let me add on to this discussion the attempts to do this so far.  (Note:
I have not worked on any of them; this is all just FYI).

  PR ports/155408 [PATCH] add support for USE_GCC_BUILD to bsd.port.mk

    IMHO, necessary but insufficient.

  http://wiki.freebsd.org/PortsAndClang

    A status report on a package run vs. the clang compiler.  Some of the
    data may be stale; updates are welcome.  This is probably the best
    place to start updating data.  fwiw, it includes a link to patches
    to not only various ports, but also the infrastructure:

      http://rainbow-runner.nl/clang/patches/

  http://wiki.freebsd.org/SOC2010AndriusMorkunas

    This was a Google Summer of Code project: "making ports work with
    clang".  I do not know the status of this project.

I hope that someone will update the wiki with the latest status on the
latter two projects.

mcl


More information about the freebsd-ports mailing list