How to enable trace mode automatically (to hide other ports while building)?

Mojca Miklavec mojca at macports.org
Thu Sep 17 08:51:01 PDT 2015


On Thu, Sep 17, 2015 at 4:47 PM, Rainer Müller wrote:
> On 2015-09-17 14:49, Mojca Miklavec wrote:
>> I would like to hide a couple of ports while building one specific
>> port. I know that I can do this with "port -t build foo", but I would
>> like to do this automatically within the Portfile, otherwise the port
>> would have to conflict with a whole bunch of other ports without any
>> good reason (other than the build system picking headers from the
>> wrong package).
>
> So far, you can't. The only possibiliy is to use the conflicts_build
> portgroup.
>
> Are you sure we really cannot get the build system to use the desired
> headers? For example with explicit --with-foo=${prefix} etc.?

This should work as long as I could make sure that
-I${prefix}/include/lua-5.1 would come before any -I${prefix}/include
in all the build commands.

(There is no configure script, but I can probably find a way around.)

I'm not saying that this isn't doable, but it would be so much more
helpful if I could simply make the other ports "invisible" during the
build.

(Hiding Qt4 in default location from Qt5 at some special location is
basically impossible from what I remember.)

Mojca


More information about the macports-dev mailing list