summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/path.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sb/path: Handle unicode filenames in a source pathChris Johns2023-05-161-6/+20
| | | | | | The change leaves the encoding in that currently exists because I cannot remember why it is there. If an encoding error happens return the same path to see if it will work.
* source-builder: Handle utf8 in pathKinsey Moore2022-05-161-7/+7
| | | | | | | | | | It's possible for an environment to have unicode characters in its paths. This was recently exposed by the latest newlib update and RSB fails under Python 2.7 in this situation. This resolves the issue by ensuring that the paths are encoded and decoded as necessary. Related issue that caused the change in newlib: https://github.com/golang/go/issues/27836
* sb: Use shebang env pythonChris Johns2020-08-251-2/+2
| | | | Closes #4037
* sb: Add support to search for a suitable version of python.Chris Johns2018-10-211-3/+8
| | | | | | | | The command python has been removed from upstream python and python2 and python3 is now used. This patch wraps the commands in a shell script that locates a suitable python to run. Updates #3537
* sb: Monitor the build disk usage. Report the usage, total and various sizesChris Johns2018-09-281-6/+62
| | | | | | | | | | | | | | - Track the size of a build of a package in a build set to determine the maximum amout of disk space used. This can be used as a guide to documenting how much space a user needs to set aside to build a specific set of tools. - The `%clean` stage of a build is now split into a separate script. I do not think this is an issue because I could not find any `%clean` sections in any build configs we have. In time support for the `%clean` section will be removed, the package builder cleans up. Closes #3516
* sb/path: Walk up to root checking if a path is writable.Chris Johns2018-04-131-1/+1
| | | | | | A dirname of / is / so the path will never have a length of 0. Close #3392
* sb: Fix path.pyStephan Gambke2018-02-051-2/+1
| | | | | | is_abspath() now considers zero-length strings Also: Remove not needed line in expand()
* sb: Add an orphan check to sb-check.Chris Johns2018-01-181-0/+8
| | | | | | | | | | The orphans check lets you see which configuration and build set files in the RSB are not referernced. You can audit the list and remove any configuration files not being used. Top level build set files are included so you need to becareful not to remove something that is valid and useful. To run: $ ./source-builder/sb-check --check-orphans
* sb: Fix the interface to all path function to be shell paths.Chris Johns2017-10-151-11/+30
| | | | | | | - Add an is_abspath call. - Convert the path or paths to shell paths on entry to all path calls. This is safe to do for a path that is already a shell path. - Fix exists to use shell paths.
* sb: Allow checking if '.' exists as a path.Chris Johns2017-09-221-1/+3
|
* sb: Fix long path support in copy_tree and removeall path support.Chris Johns2017-08-091-35/+64
| | | | | | | | | The change lets the LM32 target build on Windows which has temporary install paths greater than the Win32 API max size. The buildroot path compression is still needed as the GNU assembler does not like paths that exceed the max Windows limit. Closes #2992.
* sb: Make error messages uniqueSebastian Huber2017-06-141-4/+4
| | | | | Enable traceability from the error message to the script location. This eases debugging.
* sb: Update code base to support Python3 and Python2.Chris Johns2016-03-071-31/+33
| | | | | | Fix Windows support to allow MSYS2 Python to be used. Updates #2619.
* Canandian Cross Compiling and RTEMS 3rd party package building Fixes.Chris Johns2015-07-201-1/+5
| | | | | | | | | | | | The change fixes installing for RTEMS 3rd Party packages where the RSB considered them Canadian Cross Compiling (Cxc). Fixing the Cxc issue broke real Cxc builds. The change corrects the issue of macros being changed in the Cxc and the prep data not being udpated. The configuration is loaded again after the updated macros. The macros are also copied and restored to ensure a clean stable base. The change also introduces --rtems-tools and --rtems-bsp to align the command line with the waf configure process or RTEMS application.
* sb: Fix the downloader file:// URL to copy the file to the local path.Chris Johns2015-06-161-0/+12
|
* Fix removall for Windows and POSIX file systems.Chris Johns2015-03-071-6/+12
|
* Windows fixes to build with MSYS2.Chris Johns2015-03-071-30/+40
| | | | | The path handling has been cleaned up and support for file names longer than 256 characters.
* Fix coping and delete on Windows.Chris Johns2015-02-181-12/+31
| | | | | | This change uses a python.org feature to make the paths uicode which changes the WIN32 API used. The default WIN32 is limited to file lengths of 256 characters.
* Windows native build fixes.Chris Johns2015-02-071-1/+8
| | | | The testing of building on Windows is done using MSYS2.
* sb: Do not assume the src is valid.Chris Johns2014-02-041-3/+7
|
* sb: Fixed the errors as found by Gedare.Chris Johns2013-08-271-3/+3
|
* sb: Import log for the copytree warnings.Chris Johns2013-08-271-0/+1
|
* sb: Fix copy_tree coping links on LinuxChris Johns2013-08-221-1/+13
| | | | | Overwriting symlinks did not work on Linux. This change manages the coping of links with special code. The copy worked on FreeBSD.
* sb: Fix the copy tree.Chris Johns2013-08-151-0/+32
| | | | | | | | Python's distutil's copy tree code maintains a cache of directories created so deleting a tree a different way then coping the same tree results in an error because the destination folders in the tree are not present because distutils thinks they exist. The solution is to implement a copy tree function.
* Better error message on rmdir failure.Chris Johns2013-05-131-1/+1
|
* PR 2115 - Fix checking when the path does not fully exist.Chris Johns2013-04-151-0/+8
|
* PR 2115 - Check prefix path write access before starting to build.Chris Johns2013-04-151-0/+3
| | | | | | | | | | Added a check in the options post processing to check is the prefix path allows writes. No actual write check is made. just the permissions are checked. If the --no-install options is used the check is not made. Moved the --no-install option from the set builder to the options module.
* Make exists support lists. Add a path expander call.Chris Johns2013-04-131-2/+13
|
* Fix host paths on Windows.Chris Johns2013-02-271-0/+2
|
* Create tar directory when making build set tar files.Chris Johns2013-02-221-0/+33
| | | | | Move the mkdir and removeall code from the build module to the path module.
* If the path is empty do prepend a dirsep.Chris Johns2013-02-141-1/+4
|
* Move into the source-builder tree.Chris Johns2012-11-061-0/+95