aboutsummaryrefslogtreecommitdiffstats
path: root/tools/arch-setup.sh
AgeCommit message (Collapse)AuthorFilesLines
2022-08-22CMake+etc: Enable Qt6 by default for Unix buildsJoão Valverde1-3/+4
Linux builds were left behind on the Qt transition, presumably because our Ubuntu CI image does not support Qt6. Enable Qt6 by default and explicitly disable it for slower or more conservative Linux distros. Drop experimental status for Qt6, because we are using it to build official Windows and macOS releases.
2022-07-23Make Perl optional.Gerald Combs1-2/+2
Update our documentation, build configuration, and setup scripts to make Perl optional. Closes #18152.
2022-04-19Tools: Fix our pacman arguments in arch-setup.sh.Gerald Combs1-1/+1
Add back the -u / --sysupgrade flag.
2022-04-18Fix tools/*-setup.sh to work with no argumentsnaesten1-11/+13
They were checking for --help in an unusual manner that failed when run with no arguments. I've checked that --help works for each script, and that debian-setup.sh actually works. NOTE: bsd-setup.sh and rpm-setup.sh seem to have sometimes-broken formatting, because they try to pass escape sequences to echo, which POSIX says is implementation-defined (except on XSI-conformant systems). These changes were mostly made using the following script, with a manual fix in bsd-setup.sh because it isn't using "switch case". ```python #!/bin/env python3 import sys import re usage_p = re.compile(r'^if \[ "\$1" = "--help" \]\nthen\n((?:\t(?:printf|echo) .*\n)*)\texit 1\nfi$', re.MULTILINE) case_p = re.compile(r'(^\tcase \$arg in$)', re.MULTILINE) root_check_p = re.compile(r'(\n# Check if the user is root(?:\n|.)*?fi\n)', re.MULTILINE) done_p = re.compile(r'(^done\n)', re.MULTILINE) def fix_setup(name: str): assert name.endswith('-setup.sh') with open(name, 'r') as fin: s = fin.read() s = usage_p.sub(r'function print_usage() {\n\1}', s) s = case_p.sub(r'''\1 \t\t--help) \t\t\tprint_usage \t\t\texit 0 \t\t\t;;''', s) m1 = root_check_p.search(s) if m1: root_check = m1[0] s = root_check_p.sub('', s) pos = done_p.search(s).end() # type: ignore[union-attr] s = s[:pos] + root_check + s[pos:] with open(name, 'w') as fout: fout.write(s) if __name__ == '__main__': for name in sys.argv[1:]: fix_setup(name) ```
2022-04-17Tools: Make the Alpine and Arch setup scripts more strict.Gerald Combs1-1/+3
Make sure alpine-setup.sh and arch-setup.sh fail with a nonzero status similar to debian-setup.sh and rpm-setup.sh.
2022-04-10Tools: Make the Debian and RPM setup scripts more strict.Gerald Combs1-0/+1
We use debian-setup.sh and rpm-setup.sh to build the containers in https://gitlab.com/wireshark/wireshark-containers/. Make sure they fail with a nonzero exit status, otherwise we might end up with an invalid container image. Make sure OPTIONS is defined in all of the setup scripts that use it.
2021-12-31arch-setup: Update requirements for user guidesJoão Valverde1-0/+2
2021-11-15tools: Add Arch Linux setup script to install dependenciesJoão Valverde1-0/+127
This was intentionally kept simple (matches the philosophy of Arch). In particular I wasn't so concerned about what is a required build dependency and what is an optional build dependency to compile the programs. I don't know why one would ever wish to skip installation of non-essential library dependencies. But others are very welcome to extend this intentionally barebones effort. The script also adds an "--install-all" flag to install everything at once. I keep forgetting the name of the other options. I used the build optional flag to install packages required to build documentation and so on. Ancillary stuff.