Google Summer of Code/2022/Ideas/Portage-driven Gentoo Prefix bootstrap

From Gentoo Wiki
Jump to:navigation Jump to:search

Portage-driven Gentoo Prefix bootstrap

The Bootstrap of Gentoo Prefix on a new environment is fragile and often need manual intervention. It is because Gentoo Prefix runs on a vast number of hosts, and the ::gentoo repository is fast moving. The reliability of bootstrap is crucial for new users to adopt Prefix and is the foundation for more use scenarios.

Stacked Prefix (also known as prefix-stack) was introduced to manage cygwin/win32 setups. It matured with EAPI 7, when BROOT variable are used to express the directory prefix of BDEPEND. This project envision using prefix-stack to bootstrap Prefix, achieving 3 goals:

  • Unify the bootstrap logic of Prefix standalone (aka RAP) and guest (aka prefix-rpath);
  • Simplify the logic of Prefix bootstrap;
  • Substantially speed up the bootstrap if portage is available on the host.

You will need to test out various toolchain bootstrap setups and find out a universal routine for a diverse number of host environments. You are expected to decipher and debug subtle toolchain induced errors.



Contacts Required Skills
Benda Xu
  • More than 1-year user experience of Gentoo Prefix.
  • Bootstrapped Prefix from >3 kinds of host environments.
  • Proficient in Git and bash script programming.
  • Understand the compiler toolchain of GNU/Linux.
Expected Project Size Expected Outcomes
350 hours

A revised Gentoo Prefix bootstrap script that leverages prefix-stack and directly use host portage if available.

Project Difficulty
hard