summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2018-06-20tree-wide: drop copyright headers from frequent contributorsZbigniew Jędrzejewski-Szmek
Fixes #9320. for p in Shapovalov Chevalier Rozhkov Sievers Mack Herrmann Schmidt Rudenberg Sahani Landden Andersen Watanabe; do git grep -e 'Copyright.*'$p -l|xargs perl -i -0pe 's|/([*][*])?[*]\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\s*[*]([*][*])?/\n*|\n|gms; s|\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\n*|\n|gms' done
2018-06-14Merge pull request #9301 from keszybz/man-drop-authorgroupLennart Poettering
man: drop unused <authorgroup> tags from man sources
2018-06-14Drop my copyright headersZbigniew Jędrzejewski-Szmek
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'
2018-06-14Also drop <authorgroup> from autogenerated pagesZbigniew Jędrzejewski-Szmek
2018-06-14tree-wide: beautify remaining copyright statementsLennart Poettering
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.
2018-06-14tree-wide: remove Lennart's copyright linesLennart Poettering
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.
2018-06-14tree-wide: drop 'This file is part of systemd' blurbLennart Poettering
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.
2018-06-13hwdb-update: make sure it works when run from mesonLennart Poettering
let's make the argument optional again, so that the command line "ninja -C build hwdb-update" runs works.
2018-06-07coverity.sh: check that coverity responds with 200Evegeny Vereshchagin
This is mostly inspired by https://github.com/pmem/pmdk/commit/7b103fd2dd54b2e5974f71fb65c81ab3713c12c5 Closes https://github.com/systemd/systemd/issues/9186.
2018-06-07tools: make various scripts find the top-levle git dir automaticallyLennart Poettering
2018-05-22find-double-newline: look in headers tooLennart Poettering
2018-05-22tools: add a script for fixing up TABsLennart Poettering
This is similar to "find-double-newline.sh" but looks for TABs that should not be there.
2018-05-08tools/oss-fuzz: install private shared library non-executable (#8927)Zbigniew Jędrzejewski-Szmek
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.
2018-05-07meson: generate m4 preprocessor from config.h (#8914)Yu Watanabe
2018-04-19tree-wide: drop spurious newlines (#8764)Lennart Poettering
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.
2018-04-06tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek
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.
2018-04-04oss-fuzz: Fallback to `ninja-build` when available (#8641)Filipe Brandenburger
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.
2018-03-12tools/oss-fuzz: add clang library dir using -LZbigniew Jędrzejewski-Szmek
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.
2018-03-12Rename scripts/oss-fuzz.sh to tools/oss-fuzz.shZbigniew Jędrzejewski-Szmek
2018-03-12Rename scripts/coverity.sh to tools/coverity.shZbigniew Jędrzejewski-Szmek
There are only two files in tools/, I don't think we need a separate directory for them.
2018-03-02tools/hwdb-update: allow downloads to failZbigniew Jędrzejewski-Szmek
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.
2018-03-02tools/hwdb-update: print what is being executedZbigniew Jędrzejewski-Szmek
2018-01-27[gdb-sd_dump_hashmaps.py] String Formatting Update (#7819)Batuhan Osman Taşkaya
Changes: % changed as .format()
2018-01-27Hook up oss-fuzz test cases as testsZbigniew Jędrzejewski-Szmek
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
2018-01-17fuzz: add initial fuzzing infrastructureJonathan Rudenberg
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.
2018-01-05meson: resurrect API documentation targetLennart Poettering
We had this functionality back in Automake times, let's resurrect it.
2017-12-25separate flags from shebangbleep_blop
2017-12-19more portable perl shebangs (#7701)Jörg Thalheim
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.
2017-12-14meson-hwdb-update: fix undefined variable accessZbigniew Jędrzejewski-Szmek
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.
2017-12-06tests: try to autodetect directory betterZbigniew Jędrzejewski-Szmek
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.
2017-11-26test: set log_level to info in test-hwdb and check-help-*Yu Watanabe
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.
2017-11-19Add SPDX license headers to python scriptsZbigniew Jędrzejewski-Szmek
2017-10-04hwdb: switch meson to use ids_parser.py (#6964)Zbigniew Jędrzejewski-Szmek
Also drop the now-unused perl implementation (that doesn't do sorting), so it's incompatible anyway.
2017-10-02hwdb: updateZbigniew Jędrzejewski-Szmek
http://www.uefi.org/uefi-pnp-export is returning an internal server error, so the previous version was used.
2017-10-02meson-hwdb-update.sh: add -n param to skip downloadsZbigniew Jędrzejewski-Szmek
Useful to experiment with the patching part w/o redownloading the files.
2017-07-24meson: install the git hook (#6425)Zbigniew Jędrzejewski-Szmek
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.
2017-07-18python: remove star importsZbigniew Jędrzejewski-Szmek
Star imports are discouraged and break pyflakes. I'm happy to report that pyflakes finds no issues ;)
2017-07-18build-sys: drop support for generation of Makefile-man.amZbigniew Jędrzejewski-Szmek
2017-07-03git-contrib: drop weird non-breaking spacesLennart Poettering
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.
2017-05-07Mark python scripts executableZbigniew Jędrzejewski-Szmek
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.
2017-04-30more portable python shebangs (#5816)Jörg Thalheim
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.
2017-04-25meson: fix checking of linker argsZbigniew Jędrzejewski-Szmek
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
2017-04-25meson: also indent scripts with 8 spacesZbigniew Jędrzejewski-Szmek
2017-04-24meson: $DESTDIR might be undefinedZbigniew Jędrzejewski-Szmek
This causes an error with -u. Just add an empty fallback.
2017-04-23meson: use "sh -eu" and make .sh +x, .py -xZbigniew Jędrzejewski-Szmek
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.
2017-04-23meson: add dist-check-includes replacementZbigniew Jędrzejewski-Szmek
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.
2017-04-23hwdb: use curl instead of wget, and regenerate patch after successful updateZbigniew Jędrzejewski-Szmek
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.)
2017-04-23meson: add hwdb/update targetZbigniew Jędrzejewski-Szmek
2017-04-23meson: add git-contrib targetZbigniew Jędrzejewski-Szmek
2017-04-23meson: recreate dist-check-helpZbigniew Jędrzejewski-Szmek