Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dry run of install-system-deps fails without sudo #2353

Open
gmarzot opened this issue Dec 11, 2024 · 1 comment
Open

dry run of install-system-deps fails without sudo #2353

gmarzot opened this issue Dec 11, 2024 · 1 comment

Comments

@gmarzot
Copy link

gmarzot commented Dec 11, 2024

documentation shows the command run without sudo. ideally sudo should only be required for specific operations and anything that does need to be run as root would run as user.

gmarzot@GMARZOT-LAPTOP:~/Projects/moq/folly$ ./build/fbcode_builder/getdeps.py install-system-deps --dry-run --recursive
Traceback (most recent call last):
File "/home/gmarzot/Projects/moq/folly/./build/fbcode_builder/getdeps.py", line 1484, in
sys.exit(main())
File "/home/gmarzot/Projects/moq/folly/./build/fbcode_builder/getdeps.py", line 1467, in main
return args.func(args)
File "/home/gmarzot/Projects/moq/folly/./build/fbcode_builder/getdeps.py", line 74, in run
opts = setup_build_options(args)
File "/home/gmarzot/Projects/moq/folly/build/fbcode_builder/getdeps/buildopts.py", line 591, in setup_build_options
subprocess.check_output(
File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.10/subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.10/subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: 'mkscratch'

@gmarzot
Copy link
Author

gmarzot commented Dec 11, 2024

specifying writable --scratch-path can avoid sudo so perhaps this is just a doc issue. and prseumable one can build this way after pkg installs.

(uv) gmarzot@GMARZOT-LAPTOP:~/Projects/moq/folly$ ./build/fbcode_builder/getdeps.py install-system-deps --dry-run --recu
rsive --scratch-path /tmp/folly
sudo apt install -y autoconf automake binutils-dev cmake libboost-all-dev libdouble-conversion-dev libdwarf-dev libevent-dev libgflags-dev liblz4-dev libsnappy-dev libsodium-dev libtool libzstd-dev ninja-build zlib1g-dev zstd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant