add subport: to state file

Bradley Giesbrecht pixilla at macports.org
Thu Feb 16 11:18:36 PST 2012


There seems to be some odd behaviors with subports.

Do we need to add subport to the state file:
subport: ${subport}

or have subport prefix added to worksrcdir?
worksrcdir ${subport}/${worksrcdir}

Example:
Portfile:
name subport1
version 1.0

Portfile:
name subport2
version 2.0

$ sudo port extract subport1
$ ls ./work
subport1-1.0
$ sudo port extract subport2
$ ls ./work
subport1-1.0

If you do not clean before extract you can get unexpected results.

Things like this do not appear to work properly:
$ sudo port test name:^subport[12]$


Regards,
Bradley Giesbrecht (pixilla)







More information about the macports-dev mailing list