Re: help needed: “Error: clang-4.0 has been replaced by clang-8.0; please install that instead”

2019-07-25 Thread Dmitri Zaitsev
Hi Chris and all,

I have finally figured it out following your suggestion,
have posted here for anyone else having that problem:

https://stackoverflow.com/a/57212770/1614973

Cheers, Dmitri.


> > 'please configure port  to use clang-8.0 instead'
> >
> >
> > That would be less confusing indeed.
> > Can that be made the message?
>
> Not easily. The message is generated by the obsolete port group, which
> is used in a number of scenarios, for some of which the currently
> message does make sense.
>

Then show both messages maybe? Or link to my SO post?
There is nothing more frustrated for user to get a tiny cryptic message.



-- 
Dmitri Zaitsev
School of Mathematics
Trinity College Dublin

WWW:  http://www.maths.tcd.ie/~zaitsev/


Re: Phase Out Xcode Dependency GSOC Project Update

2019-07-25 Thread Satryaji Aulia
Hi all,

We've solved all known existing problems in macports-base master
relating to the Xcode changes.
1. Ports use Xcode's SDK when we want to prefer CLT instead
We now check first for CLT SDKs if port isn't Xcode-dependent. CLT
SDKs for macOS mirror the ones shipped with Xcode.

2. Ports in `xcodversion 1.0` PortGroup were failing to install
We explicitly set Xcode dependency using `use_xcode yes` for that
PortGroup. This assumes all `xcodeversion` ports need Xcode.

3. Ports with `system -W` calls use Xcode binaries when want to prefer
CLT instead
We now export the needed environment variable specific to those { } blocks.
We had to set the global Tcl env array since the { } blocks don't run
using the normal environment set by MacPorts. This solution is new
(cmiiw) so maybe it can solve some other problems related to
environment variables.

I'm doing some additional testing to discover any more problems if any.

Sat

On Fri, Jul 19, 2019 at 2:13 AM Clemens Lang  wrote:
>
> Hi,
>
> On Wed, Jul 17, 2019 at 01:03:26PM +0700, Satryaji Aulia wrote:
> > There’s no existing code in port 1.0 that accesses a PortGroup
> > (besides lint which parses the file) so I assume that change needs to
> > be for macports-ports right? When do we make this change?
>
> Correct. We can make the change in a forward-compatible manner by first
> checking whether use_xcode exists, similar to what I've done with the
> code snippet that checks for the existence of configure.developer_dir.
>
> > Also I’ve submitted the PRs for the previous problems. The second
> > one’s a draft PR since it doesn’t work yet. [1,2]
> > Please take a look.
>
> Done, please address Joshua's comments in #135, then it would be good to
> go from my PoV.
>
> --
> Clemens