On 4/18/18 3:39 PM, Ryan Schmidt wrote: > On Apr 18, 2018, at 12:39, Edward Maros wrote: > >> I have a package (gds) that has a build requirement on port root5 with >> the variant +python27. >> >> Currently the buildbot system will not build the gds package because it >> installs the root5 package with only default variants. >> >> Any ideas on how to get the variant passed (at least for the buildbot >> system) so I can address any issues related to the gds package? > > You can't specify variants in dependencies. > SeeĀ https://trac.macports.org/ticket/126 > > You can use the require_active_variants procedure from the > active_variants 1.1 portgroup. There are many portfiles using this > procedure that you can use as examples, and take a look at the > documentation in the comments at the top of this file: > > https://github.com/macports/macports-ports/blob/master/_resources/port1.0/group/active_variants-1.1.tcl This allows me to check if the variant is active, but does not force the buildbot to install the package with the required variant. I may be misunderstanding things and if there is a solution I would like to be pointed in the direction.
Thanks, Ed
