Skip to content

Commit

Permalink
Drop LD_PRELOAD from shebang, because env doesn't support -S on…
Browse files Browse the repository at this point in the history
… CloudLinux 7
  • Loading branch information
kpushkaryov committed Jul 11, 2024
1 parent fed44fc commit 88bb877
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ include_defs('//product.defs.py')
python_binary(
name = 'cloudlinux7to8.pex',
platform = 'py3',
# libgcc_s.so.1 is preloaded to workaround crash due to "libgcc_s.so.1 must
# be installed for pthread_cancel to work" instead of clean exit after
# dist-upgrade, see https://bugs.python.org/issue44434
build_args = ['--python-shebang', '/usr/bin/env -S LD_PRELOAD=libgcc_s.so.1 python3'],
build_args = ['--python-shebang', '/usr/bin/env python3'],
main_module = 'cloudlinux7to8.main',
deps = [
'dist-upgrader//pleskdistup:lib',
Expand Down

0 comments on commit 88bb877

Please sign in to comment.