summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* 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
* tools/catalog-report.py: a script to scour the journal for bad catalog entriesZbigniew Jędrzejewski-Szmek2016-12-111-0/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I think it can be a useful tool to find such issues. SD_MESSAGE_UNIT_STARTING 7d4958e842da4a758f6c1cdc7b36dcc5: no field UNIT ../src/core/unit.c:1239 unit_status_log_starting_stopping_reloading Starting Paths. SYSLOG_FACILITY=3 SYSLOG_IDENTIFIER=systemd PRIORITY=6 USER_UNIT=paths.target SD_MESSAGE_UNIT_STARTED 39f53479d3a045ac8e11786248231fbf: no field UNIT ../src/core/job.c:721 job_log_status_message Reached target Paths. SYSLOG_FACILITY=3 SYSLOG_IDENTIFIER=systemd PRIORITY=6 RESULT=done USER_UNIT=paths.target SD_MESSAGE_STARTUP_FINISHED b07a249cd024414a82dd00cd181378ff: no field KERNEL_USEC ../src/core/manager.c:2532 manager_check_finished Startup finished in 19ms. SYSLOG_FACILITY=3 SYSLOG_IDENTIFIER=systemd PRIORITY=6 USERSPACE_USEC=19670 SD_MESSAGE_STARTUP_FINISHED b07a249cd024414a82dd00cd181378ff: no field INITRD_USEC ../src/core/manager.c:2532 manager_check_finished Startup finished in 19ms. SYSLOG_FACILITY=3 SYSLOG_IDENTIFIER=systemd PRIORITY=6 USERSPACE_USEC=19670 unknown 0ce153587afa4095832d233c17a88001: no catalog entry gsm-manager.c:1366 start_phase Entering running state SYSLOG_IDENTIFIER=gnome-session PRIORITY=5 SD_MESSAGE_UNIT_STOPPING de5b426a63be47a7b6ac3eaac82e2f6f: no field UNIT ../src/core/unit.c:1239 unit_status_log_starting_stopping_reloading Stopping Default. SYSLOG_FACILITY=3 SYSLOG_IDENTIFIER=systemd PRIORITY=6 USER_UNIT=default.target SD_MESSAGE_UNIT_STOPPED 9d1aaa27d60140bd96365438aad20286: no field UNIT ../src/core/job.c:729 job_log_status_message Stopped target Default. SYSLOG_FACILITY=3 SYSLOG_IDENTIFIER=systemd PRIORITY=6 RESULT=done USER_UNIT=default.target SD_MESSAGE_TIME_CHANGE c7a787079b354eaaa9e77b371893cd27: no field REALTIME src/core/manager.c:2049 manager_dispatch_time_change_fd Time has been changed SYSLOG_FACILITY=3 SYSLOG_IDENTIFIER=systemd PRIORITY=6 unknown f3ea493c22934e26811cd62abe8e203a: no catalog entry shell-global.c:1375 shell_global_log_structured GNOME Shell started at Sat Jun 11 2016 12:37:46 GMT-0400 (EDT) SYSLOG_IDENTIFIER=gnome-shell SD_MESSAGE_UNIT_FAILED be02cf6855d2428ba40df7e9d022f03d: no field UNIT src/core/job.c:803 job_log_status_message Failed to start GNOME Terminal Server. SYSLOG_FACILITY=3 SYSLOG_IDENTIFIER=systemd RESULT=failed PRIORITY=3 USER_UNIT=gnome-terminal-server.service SD_MESSAGE_LID_CLOSED b72ea4a2881545a0b50e200e55b9b070: no catalog entry src/login/logind-button.c:198 button_dispatch Lid closed. SYSLOG_FACILITY=4 SYSLOG_IDENTIFIER=systemd-logind PRIORITY=6 SD_MESSAGE_LID_OPENED b72ea4a2881545a0b50e200e55b9b06f: no catalog entry src/login/logind-button.c:219 button_dispatch Lid opened. SYSLOG_FACILITY=4 SYSLOG_IDENTIFIER=systemd-logind PRIORITY=6 SD_MESSAGE_SUSPEND_KEY b72ea4a2881545a0b50e200e55b9b072: no catalog entry src/login/logind-button.c:177 button_dispatch Suspend key pressed. SYSLOG_FACILITY=4 SYSLOG_IDENTIFIER=systemd-logind PRIORITY=6 SD_MESSAGE_CONFIG_ERROR c772d24e9a884cbeb9ea12625c306c01: no catalog entry src/shared/conf-parser.c:469 config_parse_sec [/etc/systemd/system/systemd-networkd.service.d/override.conf:2] Failed to parse sec value, ignoring: UNIT=systemd-networkd.service SYSLOG_FACILITY=3 ERRNO=22 SYSLOG_IDENTIFIER=systemd PRIORITY=3 CONFIG_LINE=2 CONFIG_FILE=/etc/systemd/system/systemd-networkd.service.d/override.conf unknown 10dd2dc188b54a5e98970f56499d1f73: no catalog entry gsm-manager.c:308 on_display_server_failure Unrecoverable failure in required component org.gnome.Shell.desktop PRIORITY=3 SYSLOG_IDENTIFIER=gnome-session-binary unknown 52fb62f99e2c49d89cfbf9d6de5e3555: no catalog entry src/journal/test-journal-send.c:85 main Hello World! PAGE_SIZE=4096 TERM=xterm-256color SYSLOG_IDENTIFIER=lt-test-journal-send PRIORITY=5 N_CPUS=2 HOME=/home/zbyszek unknown 9348174c5cc74001a71ef26bd79d302e: no catalog entry /usr/lib/python3.5/site-packages/dnf-plugins/system_upgrade.py:422 log_status Download finished. SYSLOG_IDENTIFIER=python3 DNF_VERSION=1.1.10 TARGET_RELEASEVER=25 SYSTEM_RELEASEVER=24 PRIORITY=5 unknown fef1cc509d5047268b83a3a553f54b43: no catalog entry /usr/lib/python3.5/site-packages/dnf-plugins/system_upgrade.py:422 log_status Rebooting to perform upgrade. SYSLOG_IDENTIFIER=python3 DNF_VERSION=1.1.10 TARGET_RELEASEVER=25 SYSTEM_RELEASEVER=24 PRIORITY=5 unknown 3e0a5636d16b4ca4bbe5321d06c6aa62: no catalog entry /usr/lib/python3.5/site-packages/dnf-plugins/system_upgrade.py:422 log_status Starting system upgrade. This will take a while. SYSLOG_IDENTIFIER=python3 DNF_VERSION=1.1.10 SYSTEM_RELEASEVER=24 PRIORITY=5 TARGET_RELEASEVER=25 unknown 0123456789abcdef0123456789abcdef: no catalog entry <doctest systemd.journal.JournalHandler[9]>:1 <module> Message with ID SYSLOG_IDENTIFIER=/usr/lib/python2.7/site-packages/py/test.py LOGGER=custom_logger_name PRIORITY=4 THREAD_NAME=MainThread
* Use python3 explicitly in all python scriptsFelipe Sateler2016-11-285-0/+5
|
* Remove systemd-bootchartDaniel Mack2016-02-231-9/+0
| | | | | | | This commit rips out systemd-bootchart. It will be given a new home, outside of the systemd repository. The code itself isn't actually specific to systemd and can be used without systemd even, so let's put it somewhere else.
* man: include the target name when linking to man pages in html outputZbigniew Jędrzejewski-Szmek2015-11-221-0/+1
| | | | | | | | | | | | | | | | | | | | | Links like http://www.freedesktop.org/software/systemd/man/systemd.socket.html are changed to http://www.freedesktop.org/software/systemd/man/systemd.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/systemd/systemd/issues/1956.
* terminal: drop unfinished codeDavid Herrmann2015-07-271-119/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This drops the libsystemd-terminal and systemd-consoled code for various reasons: * It's been sitting there unfinished for over a year now and won't get finished any time soon. * Since its initial creation, several parts need significant rework: The input handling should be replaced with the now commonly used libinput, the drm accessors should coordinate the handling of mode-object hotplugging (including split connectors) with other DRM users, and the internal library users should be converted to sd-device and friends. * There is still significant kernel work required before sd-console is really useful. This includes, but is not limited to, simpledrm and drmlog. * The authority daemon is needed before all this code can be used for real. And this will definitely take a lot more time to get done as no-one else is currently working on this, but me. * kdbus maintenance has taken up way more time than I thought and it has much higher priority. I don't see me spending much time on the terminal code in the near future. If anyone intends to hack on this, please feel free to contact me. I'll gladly help you out with any issues. Once kdbus and authorityd are finished (whenever that will be..) I'll definitely pick this up again. But until then, lets reduce compile times and maintenance efforts on this code and drop it for now.
* build-sys: use wildcard glob in update-man-list againZbigniew Jędrzejewski-Szmek2015-06-301-5/+7
| | | | | | | | | | 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.
* compile-unifont: Python 2 compatibilityZbigniew Jędrzejewski-Szmek2015-01-261-19/+22
| | | | Under Python 2, sys.stdout.buffer is missing.
* s/command-line/command line/gLennart Poettering2014-11-061-1/+1
| | | | | | | | | | 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-301-0/+94
| | | | | | | | | | | $ 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-181-0/+116
| | | | | | | | | | | | | | | | | 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-301-2/+3
| | | | | | | | | 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-201-1/+1
| | | | | 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-061-2/+10
|
* man: ignore non-manpage files when generating makefileZbigniew Jędrzejewski-Szmek2014-02-201-1/+7
|
* build-sys: make lxml required when generating indicesZbigniew Jędrzejewski-Szmek2014-02-121-19/+8
| | | | | 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-121-9/+13
| | | | | 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-104-0/+610
| | | | | 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-101-0/+23