Phase Out Xcode Dependency GSOC Project Update
satraul at gmail.com
Mon Jul 15 23:41:10 UTC 2019
To update from last month about phasing out Xcode,
1. What has changed from last time
The warnings that Xcode should be installed has been removed.
DEVELOPER_DIR is now universally exported for every command (build,
destroot, autotools, etc.).
2. The effects of the changes
Right now, we’re testing to use see if the changes work as expected. 
Ports like iTerm2 now intendedly fail because it calls `xcodebuild` without
specifying Xcode dependency. The solution would be to add `use_xcode yes`
to the Portfile, or add the `xcodeversion` portgroup to the Xcode-dependent
Ports like libnetpbm unintendedly fail in tracemode because it calls
`system -W something /usr/bin/gnumake` which problem was described in
pull#134 but not solved yet. 
More problems/solutions are being discovered, any input is appreciated.
Satryaji Aulia <satraul at gmail.com> wrote:
> Hi all,
> I'd like to write about what we've accomplished so far in this project,
> with my mentors Marcus (mcalhoun) and Clemens (cal/neverpanic).
> The project's focus is to provide a smoother experience of using MacPorts
> without Xcode.
> 1. Opened PR for better handling of Xcode dependency 
> In addition to the port 1.0 PortGroup, maintainers can declare Xcode
> dependency using a new Portfile option use_xcode. Unless ports declare
> Xcode dependency:
> - Prefer Command Line Tools instead of Xcode by setting the DEVELOPER_DIR
> - Hide the Xcode installation when building with trace mode, so MacPorts
> can fail builds for ports that actually need Xcode but are not declared as
> such. This will help maintainers identify Xcode dependency.
> Also, error out when users try to install Xcode-dependent ports without
> installing Xcode.
> 2. New command `port bump` to easily bump checksums of a port [2,3]
> More features are planned such as @version, --livecheck, and Git actions
> Please check it out, any input is appreciated. Shoutout to my mentors (and
> Mojca for reminding me to write to the mailing list).
> Thank you.
>  https://github.com/macports/macports-base/pull/130
>  https://github.com/macports/macports-base/pull/120
>  https://github.com/macports/macports-base/pull/127
More information about the macports-dev