diff options
author | Eneas U de Queiroz <cotequeiroz@gmail.com> | 2020-02-20 18:29:03 -0300 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-03-19 11:48:31 +0100 |
commit | 1fcd833c9afe2e990ec656ae15c6ec0386bf9fa8 (patch) | |
tree | ceb30ef81625958fad85768ffc25e83fdf62c461 /LICENSE | |
parent | 33df82be36cb44d61ab0285796e78c62fe1fe787 (diff) | |
download | upstream-1fcd833c9afe2e990ec656ae15c6ec0386bf9fa8.tar.gz upstream-1fcd833c9afe2e990ec656ae15c6ec0386bf9fa8.tar.bz2 upstream-1fcd833c9afe2e990ec656ae15c6ec0386bf9fa8.zip |
build: call ipkg-remove using xargs if #args>=512
The wildcard call to clean up luci package (luci*) can pick up over
2,300 files when the full tree is built. Running make package/luci/clean
or a second run of make package/luci/compile would fail with an
'Argument list too long' error.
To avoid that, a maybe_use_xargs function was created that runs the
command straight as usual if the number of arguments is < 512, or saves
the list in a temporary file and feeds it to xargs otherwise.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
(cherry picked from commit 78d1f3ac61b1740f2a45c40bcde0e83246308a18)
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions