| Summary: | Add script to setup buildtools-extended-tarball | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Tim Orling <tim.orling> |
| Component: | Scripts and Tools | Assignee: | Tim Orling <tim.orling> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | High | CC: | kai.kang, randy.macleod, richard.purdie, ross.burton |
| Version: | 3.1 | ||
| Target Milestone: | 3.1 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Tim Orling
2020-03-12 15:42:38 UTC
Reference to original buildtools-extended-tarball bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13714 Patch submitted: https://patchwork.openembedded.org/patch/171323/ Tested for the example usage in the commit log (and in the script itself) on CentOS-7 and Fedora-29 Also on poky-contrib: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=timo/install-buildtools_13832 NOTE: Because os.system or subprocess calls run in a new session, it does not appear possible to have this script run the environment setup script in the shell session in which it was called. The user will still have to source the environment script to make the buildtools enabled. The default for the installer is to install in /opt/poky/<installer-version>, this is not desired since it requires the user to put in their sudo password. Instead, like what is done on the AutoBuilder, install in a "buildtools" directory next to the "scripts" directory by default (users can set directory with the -d/--directory argument). The error in sanity checker that says "your version of tar is too old" (paraphrasing) should be updated to recommend running the install-buildtools script. Typo in the first patch in the example usage (--install-version should be --installer-version) and also the commit message. The "buildtools" directory that is going to be used/created by default needs to be added to .gitignore ./meta/classes/sanity.bbclass: return "Your version of tar is older than 1.28 and does not have the support needed to enable reproducible builds. Please install a newer version of tar (you could use the projects buildtools-tarball from our last release).\n" message in sanity.bbclass if git is too old or tar is too old add something to build-environnment checks earlier, where it checks if the python version is too old (<3.5) gcc > 5.0, RP thinks there is a check somewhere the version just needs to be bumped. Look in the history of sanity.bbclass. The original patch has been merged, but the additional changes discussed above are now submitted: https://patchwork.openembedded.org/series/23493/ Also available on openembedded-core-contrib: https://git.openembedded.org/openembedded-core-contrib/log/?h=timo/install-buildtools_13832_fixes v2 patches submitted (addressing review comments, fixes, and bumping to M3 release by default): https://patchwork.openembedded.org/series/23509/ Also available on openembedded-core-contrib: https://git.openembedded.org/openembedded-core-contrib/log/?h=timo/install-buildtools_13832_fixes_v2 Thanks to testing by and input from Andre McCurdy, we have refactored the script to work with Python 3.4+ Patch submitted: https://patchwork.openembedded.org/patch/171593/ Also available on openembedded-core-contrib: https://git.openembedded.org/openembedded-core-contrib/log/?h=timo/install-buildtools_py34 merged to dunfell/3.1.rc1. If there are any new issues, please file new bugs. |