1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-10 01:17:44 +03:00
Backports of patch from systemd git to stable distributions
Go to file
Frantisek Sumsal b113b93524 meson: disable -Wnonnull-compare
This gets enabled by default in gcc-14 and complains everywhere where we
use assert() on an expression that is always true (i.e. using
`int x[static 2]` in function declaration, etc.):

[153/2414] Compiling C object src/basic/libbasic.a.p/fs-util.c.o
In file included from ../src/basic/macro.h:13,
                 from ../src/basic/alloc-util.h:10,
                 from ../src/basic/fs-util.c:11:
../src/basic/fd-util.h: In function ‘format_proc_fd_path’:
../src/fundamental/macro-fundamental.h:74:41: warning: ‘nonnull’ argument ‘buf’ compared to NULL [-Wnonnull-compare]
   74 | #define _unlikely_(x) (__builtin_expect(!!(x), 0))
      |                                         ^~~~~
../src/basic/macro.h:150:21: note: in expansion of macro ‘_unlikely_’
  150 |                 if (_unlikely_(!(expr)))                                \
      |                     ^~~~~~~~~~
../src/basic/macro.h:167:22: note: in expansion of macro ‘assert_message_se’
  167 | #define assert(expr) assert_message_se(expr, #expr)
      |                      ^~~~~~~~~~~~~~~~~
../src/basic/fd-util.h:129:9: note: in expansion of macro ‘assert’
  129 |         assert(buf);
      |         ^~~~~~

Disabling this selectively only for asserts is a bit painful, since the
option is not available in all compilers, and it'd need to be handled in
the EFI stuff as well.

(cherry picked from commit b59bce308d)
(cherry picked from commit 08e99f781e)
(cherry picked from commit d8afb669da)
2024-01-26 19:53:42 +00:00
.clusterfuzzlite ci: unpin CFLite 2022-04-26 09:13:57 +00:00
.github GHA: drop linter 2023-12-24 10:19:45 +01:00
.semaphore ci: bump debian release bullseye -> bookworm 2023-07-07 19:30:52 +01:00
catalog meson: Install all catalogs 2023-01-27 17:47:09 +01:00
coccinelle coccinelle: skip the empty-to-null transformation on the macro itself 2023-01-25 11:35:06 +01:00
docs docs/CREDENTIALS: Don't write authorized_keys with executable bits 2023-12-23 20:42:40 +01:00
factory man: don't suggest using pam_unix.so's use_authtok switch 2024-01-26 19:53:42 +00:00
hwdb.d hwdb: update to main@{2023-11-29} 2023-12-06 11:15:01 +01:00
LICENSES network: change license of examples to MIT-0 2022-10-26 08:39:34 +02:00
man man: don't suggest using pam_unix.so's use_authtok switch 2024-01-26 19:53:42 +00:00
mkosi.conf.d mkosi: update SUSE package list to fix build error 2023-12-06 11:15:01 +01:00
modprobe.d modprobe: set 'ifb numifbs=0' to avoid autocreating ifb0 2024-01-26 19:53:42 +00:00
network meson: Install missing network file 2023-01-27 17:50:27 +01:00
po po: Translated using Weblate (Portuguese) 2022-12-12 13:26:55 +09:00
presets journal: give the ability to enable/disable systemd-journald-audit.socket 2023-01-11 17:18:57 +01:00
rules.d udev: add hwdb execution for hidraw subsystem devices 2024-01-26 19:53:42 +00:00
shell-completion analyze: fix -q option 2024-01-26 19:53:42 +00:00
src Reorder arguments for calloc()-like functions, part #2 2024-01-26 19:53:42 +00:00
sysctl.d sysctl.d: Fix pid_max comment 2023-11-09 21:05:51 +00:00
sysusers.d sysusers: also add root group 2023-02-15 10:29:10 +09:00
test test: temporarily adjust the default mount rate limit 2024-01-26 19:53:42 +00:00
tmpfiles.d tmpfiles.d/systemd-nologin.conf: use f+ instead of F (deprecated) 2023-12-23 20:42:40 +01:00
tools tools: syscall tables moved to a subdirectory 2023-11-09 21:05:51 +00:00
units units: update Description= for systemd-sleep units 2024-01-26 19:53:42 +00:00
xorg xorg/50-systemd-user: add a full license header 2021-10-01 14:45:00 +02:00
.clang-format clang-format: Adjust style of pointers 2022-05-30 04:00:54 +09:00
.ctags editors: Prevent ctags from following symlinks 2019-02-15 11:01:20 -08:00
.dir-locals.el scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
.editorconfig docs: configure editorconfig for css and html 2022-05-17 21:13:17 +02:00
.gitattributes gitattributes: introduce and use "generated" attribute 2021-10-18 09:42:55 +02:00
.gitignore git: Ignore mkosi secure boot keys 2023-02-01 16:52:28 +01:00
.mailmap mailmap: two more names 2021-03-30 13:17:58 +02:00
.packit.yml packit: use Fedora 39 2023-11-09 21:05:51 +00:00
.vimrc scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
.ycm_extra_conf.py ycm: add doc string for all the functions in configuration file 2017-11-29 13:21:49 -07:00
configure configure: update meson invocation 2023-08-09 23:04:43 +01:00
LICENSE.GPL2 relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
LICENSE.LGPL2.1 licence: remove references to old FSF address 2012-12-17 11:41:31 +01:00
Makefile tree-wide: add spdx header on all scripts and helpers 2021-01-28 09:55:35 +01:00
meson_options.txt meson: fix description for link-udev-shared option 2023-06-01 16:37:09 +02:00
meson.build meson: disable -Wnonnull-compare 2024-01-26 19:53:42 +00:00
mkosi.build mkosi: configure multiarch libdir in debian/ubuntu builds 2023-03-03 09:43:10 +01:00
mkosi.kernel.config mkosi: Enable CONFIG_ZBOOT 2022-12-13 21:27:15 +01:00
mkosi.postinst mkosi: mask unit from newer versions that gets installed by package 2023-11-09 23:28:34 +00:00
mkosi.prepare mkosi: Use globs instead of prepare script to install extra packages 2023-02-10 16:05:32 +01:00
NEWS tree-wide: use https for the 0pointer.de doc links 2023-07-07 19:30:52 +01:00
README docs: update unit name for sd-tmpfiles-setup 2023-03-28 18:16:46 +02:00
README.md README.md: add a missing line break 2022-10-19 11:17:33 +02:00
TODO doc: replace wrong á preposition by à 2023-03-28 18:57:25 +02:00

Systemd

System and Service Manager

Semaphore CI 2.0 Build Status
Coverity Scan Status
OSS-Fuzz Status
CIFuzz
CII Best Practices
CentOS CI - CentOS 8
CentOS CI - Arch
CentOS CI - Arch (sanitizers)
CentOS CI - Rawhide (SELinux)
Fossies codespell report
Coverage Status
Packaging status
OpenSSF Scorecard

Details

Most documentation is available on systemd's web site.

Assorted, older, general information about systemd can be found in the systemd Wiki.

Information about build requirements is provided in the README file.

Consult our NEWS file for information about what's new in the most recent systemd versions.

Please see the Code Map for information about this repository's layout and content.

Please see the Hacking guide for information on how to hack on systemd and test your modifications.

Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.

When preparing patches for systemd, please follow our Coding Style Guidelines.

If you are looking for support, please contact our mailing list or join our IRC channel.

Stable branches with backported patches are available in the stable repo.