* When building packages in a chroot environment, the portage and overlay versions need to set.
== Chroot Setup ==
=== Preparation ===
At least the following is required beforehand to ensure reproducible building:
* a versioned portage tree
* versioned overlays (if any)
=== Setup ===
Create a staging root and extract a stage3 or stage4 tarball:
{{RootCmd|mkdir -p /var/staging/staging-base|tar xjpf /var/tmp/your-stage4.tbz2}}
[[Category:Infrastructure]]