summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
...
| * Also drop <authorgroup> from autogenerated pagesZbigniew Jędrzejewski-Szmek2018-06-142-18/+0
| |
* | Drop my copyright headersZbigniew Jędrzejewski-Szmek2018-06-145-10/+0
|/ | | | | | | perl -i -0pe 's/\s*Copyright © .... Zbigniew Jędrzejewski.*?\n/\n/gms' man/*xml git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/(#\n)?# +Copyright © [0-9, -]+ Zbigniew Jędrzejewski.*?\n//gms' git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s*\/\*\*\*\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*?\s*\*\*\*\/\s*/\n\n/gms' git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*//gms'
* tree-wide: beautify remaining copyright statementsLennart Poettering2018-06-147-7/+7
| | | | | | Let's unify an beautify our remaining copyright statements, with a unicode ©. This means our copyright statements are now always formatted the same way. Yay.
* tree-wide: remove Lennart's copyright linesLennart Poettering2018-06-141-1/+0
| | | | | | | | | | | These lines are generally out-of-date, incomplete and unnecessary. With SPDX and git repository much more accurate and fine grained information about licensing and authorship is available, hence let's drop the per-file copyright notice. Of course, removing copyright lines of others is problematic, hence this commit only removes my own lines and leaves all others untouched. It might be nicer if sooner or later those could go away too, making git the only and accurate source of authorship information.
* tree-wide: drop 'This file is part of systemd' blurbLennart Poettering2018-06-146-12/+1
| | | | | | | | | | | | | | | | This part of the copyright blurb stems from the GPL use recommendations: https://www.gnu.org/licenses/gpl-howto.en.html The concept appears to originate in times where version control was per file, instead of per tree, and was a way to glue the files together. Ultimately, we nowadays don't live in that world anymore, and this information is entirely useless anyway, as people are very welcome to copy these files into any projects they like, and they shouldn't have to change bits that are part of our copyright header for that. hence, let's just get rid of this old cruft, and shorten our codebase a bit.
* hwdb-update: make sure it works when run from mesonLennart Poettering2018-06-131-1/+3
| | | | | let's make the argument optional again, so that the command line "ninja -C build hwdb-update" runs works.
* coverity.sh: check that coverity responds with 200Evegeny Vereshchagin2018-06-071-1/+10
| | | | | | This is mostly inspired by https://github.com/pmem/pmdk/commit/7b103fd2dd54b2e5974f71fb65c81ab3713c12c5 Closes https://github.com/systemd/systemd/issues/9186.
* tools: make various scripts find the top-levle git dir automaticallyLennart Poettering2018-06-072-4/+8
|
* find-double-newline: look in headers tooLennart Poettering2018-05-221-2/+2
|
* tools: add a script for fixing up TABsLennart Poettering2018-05-221-0/+40
| | | | | This is similar to "find-double-newline.sh" but looks for TABs that should not be there.
* tools/oss-fuzz: install private shared library non-executable (#8927)Zbigniew Jędrzejewski-Szmek2018-05-081-2/+2
| | | | | | Apparently oss-fuzz's "bad build check" is confused by the library. Let's make it non-executable, so the checker ignores it. Should fix https://github.com/google/oss-fuzz/issues/1330.
* meson: generate m4 preprocessor from config.h (#8914)Yu Watanabe2018-05-071-0/+24
|
* tree-wide: drop spurious newlines (#8764)Lennart Poettering2018-04-191-0/+40
| | | | | | | | Double newlines (i.e. one empty lines) are great to structure code. But let's avoid triple newlines (i.e. two empty lines), quadruple newlines, quintuple newlines, …, that's just spurious whitespace. It's an easy way to drop 121 lines of code, and keeps the coding style of our sources a bit tigther.
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-04-066-78/+0
| | | | | | | | | | Files which are installed as-is (any .service and other unit files, .conf files, .policy files, etc), are left as is. My assumption is that SPDX identifiers are not yet that well known, so it's better to retain the extended header to avoid any doubt. I also kept any copyright lines. We can probably remove them, but it'd nice to obtain explicit acks from all involved authors before doing that.
* oss-fuzz: Fallback to `ninja-build` when available (#8641)Filipe Brandenburger2018-04-041-1/+9
| | | | | The ninja binary is deployed as `ninja-build` in older distros such as RHEL 7/CentOS 7. Detect that and use `ninja-build` instead of `ninja` when it's available.
* tools/oss-fuzz: add clang library dir using -LZbigniew Jędrzejewski-Szmek2018-03-121-2/+9
| | | | | | | | | | | | | I have no idea why clang doesn't do this on its own, and why clang makes it so hard to query this path (-dumpversion returns something unrelated...). I know this is an ugly hack, but this is a very specialized script, so it should be OK to make it a bit hacky. Tested to work on Fedora (27) and Debian (unstable). Fixes #8428.
* Rename scripts/oss-fuzz.sh to tools/oss-fuzz.shZbigniew Jędrzejewski-Szmek2018-03-121-0/+59
|
* Rename scripts/coverity.sh to tools/coverity.shZbigniew Jędrzejewski-Szmek2018-03-121-0/+224
| | | | | There are only two files in tools/, I don't think we need a separate directory for them.
* tools/hwdb-update: allow downloads to failZbigniew Jędrzejewski-Szmek2018-03-021-0/+8
| | | | | sf.net is down, and linux-usb.org which is hosted there also fails. That's not nice, but there's not we can do about it now.
* tools/hwdb-update: print what is being executedZbigniew Jędrzejewski-Szmek2018-03-021-2/+4
|
* [gdb-sd_dump_hashmaps.py] String Formatting Update (#7819)Batuhan Osman Taşkaya2018-01-271-7/+7
| | | Changes: % changed as .format()
* Hook up oss-fuzz test cases as testsZbigniew Jędrzejewski-Szmek2018-01-271-0/+10
| | | | | | | | | | | | | | | | | | | | | | This is a bit painful because a separate build of systemd is necessary. The tests are guarded by tests!=false and slow-tests==true. Running them is not slow, but compilation certainly is. If this proves unwieldy, we can add a separate option controlling those builds later. The build for each sanitizer has its own directory, and we build all fuzzer tests there, and then pull them out one-by-one by linking into the target position as necessary. It would be nicer to just build the desired fuzzer, but we need to build the whole nested build as one unit. [I also tried making systemd and nested meson subproject. This would work nicely, but meson does not allow that because the nested target names are the same as the outer project names. If that is ever fixed, that would be the way to go.] v2: - make sure things still work if memory sanitizer is not available v3: - switch to syntax which works with meson 0.42.1 found in Ubuntu
* fuzz: add initial fuzzing infrastructureJonathan Rudenberg2018-01-171-0/+0
| | | | | | | | The fuzzers will be used by oss-fuzz to automatically and continuously fuzz systemd. This commit includes the build tooling necessary to build fuzz targets, and a fuzzer for the DNS packet parser.
* meson: resurrect API documentation targetLennart Poettering2018-01-051-0/+11
| | | | We had this functionality back in Automake times, let's resurrect it.
* separate flags from shebangbleep_blop2017-12-257-7/+14
|
* more portable perl shebangs (#7701)Jörg Thalheim2017-12-191-1/+1
| | | | | | | | same motivation as in #5816: - distributions have scripts to rewrite shebangs on installation and they know what locations to rely on. - For tests/compilation we should rather rely on the user to have setup there PATH correctly.
* meson-hwdb-update: fix undefined variable accessZbigniew Jędrzejewski-Szmek2017-12-141-2/+4
| | | | | | | I added the test if an optional parameter is not empty, but that doesn't work with -u. Provide an empty "fallback" value to fix the issue. Also group the update steps so that it's easier to see what is going on.
* tests: try to autodetect directory betterZbigniew Jędrzejewski-Szmek2017-12-061-0/+31
| | | | | | | | | | Ignore mkosi.builddir. In the future we can also add other patterns if necessary. run-intergration-tests.sh is updated to use the new script, and modified to work from arbitrary directory. Follow-up for #7494.
* test: set log_level to info in test-hwdb and check-help-*Yu Watanabe2017-11-261-0/+2
| | | | | | | | | | These tests check the stderr. So, if the systemd.log_level=debug is set in the kernel command line, then these tests fail. This set log_level to info in hwdb-test.sh and meson-check-help.sh, the kernel command line not to change the output of the target programs. Fixes #7362.
* Add SPDX license headers to python scriptsZbigniew Jędrzejewski-Szmek2017-11-196-0/+8
|
* hwdb: switch meson to use ids_parser.py (#6964)Zbigniew Jędrzejewski-Szmek2017-10-041-1/+1
| | | | Also drop the now-unused perl implementation (that doesn't do sorting), so it's incompatible anyway.
* hwdb: updateZbigniew Jędrzejewski-Szmek2017-10-021-1/+1
| | | | | http://www.uefi.org/uefi-pnp-export is returning an internal server error, so the previous version was used.
* meson-hwdb-update.sh: add -n param to skip downloadsZbigniew Jędrzejewski-Szmek2017-10-021-8/+10
| | | | Useful to experiment with the patching part w/o redownloading the files.
* meson: install the git hook (#6425)Zbigniew Jędrzejewski-Szmek2017-07-241-0/+11
| | | | | | | | | | | This was done autogen.sh previously and was dropped in 72cdb3e783174dcf9223a49f03e3b0e2ca95ddb8. Let's add it back. The meson configuration step is the only reasonable place. Note that this only works for the most standard git dirs, e.g. the hook will not be installed if git worktree is used or if $GIT_DIR is specified, etc. I think that's OK because most of the time meson will be run at least once in the original cloned dir.
* python: remove star importsZbigniew Jędrzejewski-Szmek2017-07-183-3/+3
| | | | | | Star imports are discouraged and break pyflakes. I'm happy to report that pyflakes finds no issues ;)
* build-sys: drop support for generation of Makefile-man.amZbigniew Jędrzejewski-Szmek2017-07-181-67/+4
|
* git-contrib: drop weird non-breaking spacesLennart Poettering2017-07-031-0/+1
| | | | | | For some reason git shortlog spits out non-breaking spaces, let's remove that, as for our purposes (inclusion in NEWS) we really want breaking (i.e. normal) spaces.
* Mark python scripts executableZbigniew Jędrzejewski-Szmek2017-05-073-0/+0
| | | | | | | | | | Since all our python scripts have a proper python3 shebang, there is no benefit to letting meson autodetect them. On linux, meson will just uses exec(), so the shebang is used anyway. The only difference should be in how meson reports the script and that the detection won't fail for (most likely misconfigured) non-UTF8 locales. Closes #5855.
* more portable python shebangs (#5816)Jörg Thalheim2017-04-306-6/+6
| | | | | This is useful on systems like NixOS, where python3 is not in /usr/bin/python3 as well as for people using alternative ways to install python such as virtualenv/pyenv.
* meson: fix checking of linker argsZbigniew Jędrzejewski-Szmek2017-04-252-1/+2
| | | | | | | | | Previous checks did nothing, because cc.has_argument only does compilation, without any linking. Unfortunately cc.links() cannot be used, because it does not accept any options. Providing the test file as a static source is easiest, even if not every elegant. https://github.com/mesonbuild/meson/issues/1676
* meson: also indent scripts with 8 spacesZbigniew Jędrzejewski-Szmek2017-04-253-13/+13
|
* meson: $DESTDIR might be undefinedZbigniew Jędrzejewski-Szmek2017-04-241-3/+3
| | | | This causes an error with -u. Just add an empty fallback.
* meson: use "sh -eu" and make .sh +x, .py -xZbigniew Jędrzejewski-Szmek2017-04-235-5/+5
| | | | | | | | | Shell scripts should be executable so that meson reports their invocation succinctly (does not print 'sh' '-e'). Python scripts should not be executable so that meson does the detection of the right python binary itself. Add -u everywhere to catch potential errors.
* meson: add dist-check-includes replacementZbigniew Jędrzejewski-Szmek2017-04-231-0/+3
| | | | | | This is more-or-less the same as dist-check-includes. meson doesn't exactly make it easy to call a compiler with a custom set of options. The tests are included in the test listing.
* hwdb: use curl instead of wget, and regenerate patch after successful updateZbigniew Jędrzejewski-Szmek2017-04-231-7/+9
| | | | | | | | | | | | libcurl is already our build dependency, so using curl reduces the deps a bit, and curl also has a more modern codebase. Regenerating the patch makes it more likely that the patch will apply in the future. Also, update URLs which return 302 to the new location. (Patch suggested by Igor Gnatenko.)
* meson: add hwdb/update targetZbigniew Jędrzejewski-Szmek2017-04-231-0/+13
|
* meson: add git-contrib targetZbigniew Jędrzejewski-Szmek2017-04-231-0/+7
|
* meson: recreate dist-check-helpZbigniew Jędrzejewski-Szmek2017-04-231-0/+20
|
* meson: create various symlinksZbigniew Jędrzejewski-Szmek2017-04-231-0/+11
| | | | | v2: - remove bashisms
* make-man-rules: add support for generating the list in meson.build formatZbigniew Jędrzejewski-Szmek2017-04-231-6/+40
| | | | | v2: - sort the alias array too, otherwise the output is not stable