subports

Ryan Schmidt ryandesign at macports.org
Tue Jan 3 22:22:56 PST 2012


On Jan 3, 2012, at 23:48, Mark Brethen wrote:

> On Jan 3, 2012, at 11:36 PM, Ryan Schmidt wrote:
> 
>> On Jan 3, 2012, at 23:18, Jeremy Lavergne wrote:
>> 
>>>> I tried the portfile I posted earlier (using a subport). It works, but unless I'm doing something wrong, you have to fetch the source twice to install both. Any way around that?
>>>> 
>>>> Please look at the portfile and let me know if it's ready for submission.
>>> 
>>> You can set the distdir to be the same, rather than being the name of each port. Simply pick one and set it in the other to match.
>> 
>> The default dist_subdir is ${name} so it should already work correctly; all subports should share the same dist_subdir. Why do you think they don't?
> 
> I issued 'sudo port destroot reduce subport=reduce-fetch-psl' and it only built the psl system. If I issue the port install command, it will clean everything

It will clean the work directory.

> and will have to fetch the distfiles again to install csl.

No; it will not have cleaned the distfiles. If you want the distfiles cleaned you have to do it explicitly with

sudo port clean --dist reduce

or

sudo port clean --all reduce





More information about the macports-dev mailing list