def isCrossCompiled(self): # cross compiler tool chain tools are not cross compiled. # At least, in our simplified world they're not. if not self.hasTargetArch(): return False isCrossTool = flavorutil.getCrossCompile(self.flavor)[2] return not isCrossTool
# we are in a fork flavorutil.setLocalFlags(localFlags) packageName = name.split(':')[0] # this shouldn't matter for group recipes as it will get overridden # by the behavior in cookGroupObject. But it matters for some other # recipe types. That should be fixed and all that code should be # moved inside cookObject so I could get rid of this. use.setBuildFlagsFromFlavor(packageName, cfg.buildFlavor, error=False) use.resetUsed() use.setUsed(usedFlags) # we don't want to sign packages here, if necessary, we can sign # them at a higher level. cfg.signatureKeyMap = {} cfg.signatureKey = None crossCompile = flavorutil.getCrossCompile(cfg.buildFlavor) # add extra buildreqs manually added for this trove # by the builder. Only add them if the recipe is of the # right type, and the cfg file we're passed in understands them # (it might be a simple conary cfg file). if (hasattr(recipeClasses[0], 'buildRequires') and hasattr(cfg, 'defaultBuildReqs')): for recipeClass in recipeClasses: recipeClass.buildRequires += cfg.defaultBuildReqs # if we're already on the target label, we'll assume no targeting # is necessary if targetLabel == version.trailingLabel(): targetLabel = None
flavorutil.setLocalFlags(localFlags) packageName = name.split(':')[0] # this shouldn't matter for group recipes as it will get overridden # by the behavior in cookGroupObject. But it matters for some other # recipe types. That should be fixed and all that code should be # moved inside cookObject so I could get rid of this. use.setBuildFlagsFromFlavor(packageName, cfg.buildFlavor, error=False) use.resetUsed() use.setUsed(usedFlags) # we don't want to sign packages here, if necessary, we can sign # them at a higher level. cfg.signatureKeyMap = {} cfg.signatureKey = None crossCompile = flavorutil.getCrossCompile(cfg.buildFlavor) # add extra buildreqs manually added for this trove # by the builder. Only add them if the recipe is of the # right type, and the cfg file we're passed in understands them # (it might be a simple conary cfg file). if (hasattr(recipeClasses[0], 'buildRequires') and hasattr(cfg, 'defaultBuildReqs')): for recipeClass in recipeClasses: recipeClass.buildRequires += cfg.defaultBuildReqs # if we're already on the target label, we'll assume no targeting # is necessary if targetLabel == version.trailingLabel(): targetLabel = None