summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAge
* find-double-newline: look in headers tooLennart Poettering2018-08-24
|
* meson: generate m4 preprocessor from config.h (#8914)Yu Watanabe2018-08-24
|
* tree-wide: drop spurious newlines (#8764)Lennart Poettering2018-08-24
| | | | | | | | | 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-08-24
| | | | | | | | | | 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-08-24
| | | | | | 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: Fix executable bit on scripts that ost it somehow.Sven Eden2018-06-29
|
* meson.build: remove unnecessary `ln --relative` checkKylie McClain2018-06-08
| | | | | | | `ln --relative` is used by tools/meson-make-symlink.sh, which is never once ran during the build process for elogind. additionally, it incurrs a dependency on GNU coreutils (or any other `ln` that has the non-standard `--relative` extension), so there's no real need to check for it.
* String Formatting Update (#7819)Batuhan Osman Taşkaya2018-05-30
| | | | Changes: % changed as .format()
* Hook up oss-fuzz test cases as testsZbigniew Jędrzejewski-Szmek2018-05-30
| | | | | | | | | | | | | | | | | | | | | | 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
* meson: resurrect API documentation targetLennart Poettering2018-05-30
| | | | We had this functionality back in Automake times, let's resurrect it.
* separate flags from shebangbleep_blop2018-05-30
|
* more portable perl shebangs (#7701)Jörg Thalheim2018-05-30
| | | | | | | | | 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.
* Prep v236 : Add missing SPDX-License-Identifier (9/9) toolsSven Eden2018-03-26
|
* test: set log_level to info in test-hwdb and check-help-*Yu Watanabe2017-11-26
| | | | | | | | | | These tests check the stderr. So, if the elogind.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.
* check_tree.pl: Added handling of xml files.Sven Eden2018-03-09
|
* Some minor cleanupsSven Eden2018-03-07
|
* tools/check-includes.pl : Prepared for check-tree.pl handling.Sven Eden2018-03-07
|
* tools/check-includes.pl : Fixed errors. The constant long list of errors in ↵Sven Eden2018-03-07
| | | | Eclipse Epic drove me nuts. ;-)
* Fix and fortify cap-list generation and inlcude symlinking for gentoo build ↵Sven Eden2017-12-10
| | | | system.
* Meson build system: Recreate the symlinking of elogind/systemd/*.h headers ↵Sven Eden2017-12-08
| | | | into elogin/
* Prep v235: Update build system to fit elogindSven Eden2017-08-16
| | | | | | - Update man/rules/meson.build with elogind set of xml files. - Update documentation generating tools to fit elogind. - Follow upstream and link against libelogind-shared-<version>.so
* Prep v235: Apply upstream fixes (1/10) [root]Sven Eden2017-08-14
|
* meson: install the git hook (#6425)Zbigniew Jędrzejewski-Szmek2017-08-10
| | | | | | | | | | | | 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.
* General: Update build system to upstream support of meson+ninja.Sven Eden2017-08-04
| | | | | | | | Upstream thinks, that the auto tools are too 'legacy', or that they are at least no longer fitting. We follow, as the classic auto tools files have been removed, so no other choice here...
* Mark python scripts executableZbigniew Jędrzejewski-Szmek2017-07-25
| | | | | | | | | | 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.
* man: include the target name when linking to man pages in html outputZbigniew Jędrzejewski-Szmek2017-05-17
| | | | | | | | | | | | | | | | | | | | | Links like http://www.freedesktop.org/software/elogind/man/elogind.socket.html are changed to http://www.freedesktop.org/software/elogind/man/elogind.socket.html#Accept=. This implementation is quick & dirty, and misses various corner cases. A fairly important one is that when a few directives share the same anchor (which happens when multiple directives are described in the same paragraph), generated links for everything except the first one link to an invalid anchor. Another shortcoming is that the formatting does not use the proper generateID machinery, so the anchor name could be wrong in some cases. But it seems to work for a large percentage of links, so seems to be an improvement in usability. When the anchor is missing, we land at the top of the page, which is the same as before. If the anchor were to point to different spot, this would be more confusing... Not sure if that ever happens. Anyway, the user should be able to recover from landing on the wrong place in the page. (Mostly) fixes https://github.com/elogind/elogind/issues/1956.
* Prep v227: Fix man page index building.Sven Eden2017-04-12
|
* Fix man page building to be less systemd and more elogind.Sven Eden2017-03-14
|
* build-sys: use wildcard glob in update-man-list againZbigniew Jędrzejewski-Szmek2017-03-14
| | | | | | | | | | The idea is that after adding a new man page, make update-man-list will be used to regenerate part of the makefile. So the data already present in the makefile cannot be used to do that. Also, renames filter out generated xml files in make-man-rules.py itself in order to make Makefile.am a bit simpler, and rename files to dist_files to better reflect new meaning.
* Remove unifont and terminal checks/supportAndy Wingo2015-04-19
|
* compile-unifont: Python 2 compatibilityZbigniew Jędrzejewski-Szmek2015-01-26
| | | | Under Python 2, sys.stdout.buffer is missing.
* s/command-line/command line/gLennart Poettering2014-11-06
| | | | | | | | | | A follow-up to: commit 3f85ef0f05ffc51e19f86fb83a1c51e8e3cd6817 Author: Harald Hoyer <harald@redhat.com> Date: Thu Nov 6 15:33:48 2014 +0100 s/commandline/command line/g
* tools: add gdb command to dump hashmap informationMichal Schmidt2014-10-30
| | | | | | | | | | | $ sudo gdb -p 1 ... (gdb) source gdb-sd_dump_hashmaps.py (gdb) sd_dump_hashmaps ... lists allocated hashmaps ... (gdb) sd_dump_hashmaps 1 ... lists allocated hashmaps, their DIB histograms and contiguous blocks statistics ...
* terminal: add unifont font-handlingDavid Herrmann2014-07-18
| | | | | | | | | | | | | | | | | The unifont layer of libsystemd-terminal provides a fallback font for situations where no system-fonts are available, or if you don't want to deal with traditional font-formats for some reasons. The unifont API mmaps a pre-compiled bitmap font that was generated out of GNU-Unifont font-data. This guarantees, that all users of the font will share the pages in memory. Furthermore, the layout of the binary file allows accessing glyph data in O(1) without pre-rendering glyphs etc. That is, the OS can skip loading pages for glyphs that we never access. Note that this is currently a test-run and we want to include the binary file in the GNU-Unifont package. However, until it was considered stable and accepted by the maintainers, we will ship it as part of systemd. So far it's only enabled with the experimental --enable-terminal, anyway.
* man: mention that x-systemd.device-timeout is only for fstabZbigniew Jędrzejewski-Szmek2014-06-30
| | | | | | | | | Reformat fstab options description. Now they are easier to read and show up in systemd.directives(7). Use a single sublist for both /etc/fstab and /etc/crypttab options. Many of them can be used in both places. crypttab(5) is updated to use the same docbook elements, so formatting is uniform.
* build-sys: fix indentation in make-man-rules generated outputFilipe Brandenburger2014-06-20
| | | | | This fixes the footer where 7 spaces were used on the first line of EXTRA_DIST, but a Tab was clearly intended.
* build-sys: update intructions for Makefile-man.am regenerationZbigniew Jędrzejewski-Szmek2014-03-06
|
* man: ignore non-manpage files when generating makefileZbigniew Jędrzejewski-Szmek2014-02-20
|
* build-sys: make lxml required when generating indicesZbigniew Jędrzejewski-Szmek2014-02-12
| | | | | Since the manpage indices generated without lxml would be missing some parts, it doesn't make sense to keep lxml optional anymore.
* man: use xinclude to de-deduplicate common textZbigniew Jędrzejewski-Szmek2014-02-12
| | | | | I only tested with python-lxml. I'm not sure if xml.etree should be deprecated.
* build-sys: move python helpers to tools directoryKarel Zak2014-02-10
| | | | | Note that make-man-rules.py is missing in EXTRA_DIST=, this patch fixes this mistake too.
* build-sys: add check-includes build target and scriptKarel Zak2014-02-10