print "Autoresuming support enabled."
conf_values["AUTORESUME"]="1"
+ if "bindist" in string.split(conf_values["options"]):
+ print "Binary redistribution enabled"
+ conf_values["BINDIST"]="1"
+ else:
+ print "Bindist is not enabled in catalyst.conf"
+ print "Binary redistribution of generated stages/isos may be prohibited by law."
+ print "Please see the use description for bindist on any package you are including."
+
if "ccache" in string.split(conf_values["options"]):
print "Compiler cache support enabled."
conf_values["CCACHE"]="1"
# the -a option to the catalyst cmdline. -p will clear the autoresume flags
# as well as your pkgcache and kerncache
# ( This option is not fully tested, bug reports welcome )
+# bindist = enables the bindist USE flag, please see package specific definition,
+# however, it is suggested to enable this if redistributing builds.
# ccache = enables build time ccache support
# distcc = enable distcc support for building. You have to set distcc_hosts in
# your spec file.
# your cache. The cache is unlinked before any empty or rm processing, though.
#
# (These options can be used together)
-options="autoresume kerncache pkgcache seedcache snapcache"
+options="autoresume bindist kerncache pkgcache seedcache snapcache"
# portdir specifies the source portage tree used by the snapshot target.
portdir="/usr/portage"
if type(self.settings["use"])==types.StringType:
self.settings["use"]=self.settings["use"].split()
- # Force bindist for all targets
- self.settings["use"].append("bindist")
+ # Force bindist when options ask for it
+ if "BINDIST" in self.settings:
+ self.settings["use"].append("bindist")
def set_stage_path(self):
self.settings["stage_path"]=normpath(self.settings["chroot_path"])
raise CatalystError,"GRP build aborting due to error."
def set_use(self):
- generic_stage_target.set_use(self)
- if "use" in self.settings:
- self.settings["use"].append("bindist")
- else:
- self.settings["use"]=["bindist"]
+ generic_stage_target.set_use(self)
+ if "BINDIST" in self.settings:
+ if "use" in self.settings:
+ self.settings["use"].append("bindist")
+ else:
+ self.settings["use"]=["bindist"]
def set_mounts(self):
self.mounts.append("/tmp/grp")
generic_stage_target.set_use(self)
if "use" in self.settings:
self.settings["use"].append("livecd")
- self.settings["use"].append("bindist")
+ if "BINDIST" in self.settings:
+ self.settings["use"].append("bindist")
else:
self.settings["use"]=["livecd"]
- self.settings["use"].append("bindist")
+ if "BINDIST" in self.settings:
+ self.settings["use"].append("bindist")
def set_packages(self):
generic_stage_target.set_packages(self)
# Setup our environment
BOOTSTRAP_USE="$(portageq envvar BOOTSTRAP_USE)"
+[ -n "${clst_BINDIST}" ] && BOOTSTRAP_USE="${BOOTSTRAP_USE} bindist"
+
FEATURES="${clst_myfeatures} nodoc noman noinfo -news"
## Sanity check profile
# Now, we install our packages
[ -e /etc/portage/make.conf ] && \
- echo "USE=\"-* bindist build ${BOOTSTRAP_USE} ${clst_HOSTUSE}\"" \
+ echo "USE=\"-* build ${BOOTSTRAP_USE} ${clst_HOSTUSE}\"" \
>> /etc/portage/make.conf
run_merge "--oneshot ${clst_buildpkgs}"
-sed -i "/USE=\"-* bindist build ${BOOTSTRAP_USE} ${clst_HOSTUSE}\"/d" \
+sed -i "/USE=\"-* build ${BOOTSTRAP_USE} ${clst_HOSTUSE}\"/d" \
/etc/portage/make.conf