Luca Boccassi
840ac5cd1a
process-util: use clone2 on ia64
...
glibc does not provide clone() on ia64, only clone2. But only as a
symbol in the shared library, there's no prototype in the gblic
headers, so we have to define it, copied from the manpage.
2023-07-10 11:39:35 +01:00
Luca Boccassi
5bf36ce524
Cast st_dev to dev_t when printing
...
st_dev is not the same as dev_t, and on O32 architectures like
mipsel it's an unsigned long, but dev_t is still unsigned long long,
so they don't match and compilation fails:
../src/journal/cat.c: In function ‘run’:
../src/basic/format-util.h:46:19: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Werror=format=]
46 | # define DEV_FMT "%" PRIu64
| ^~~
../src/journal/cat.c:168:34: note: in expansion of macro ‘DEV_FMT’
168 | if (asprintf(&s, DEV_FMT ":" INO_FMT, st.st_dev, st.st_ino) < 0)
| ^~~~~~~
In file included from ../src/systemd/sd-journal.h:20,
from ../src/journal/cat.c:11:
/usr/include/inttypes.h:105:41: note: format string is defined here
105 | # define PRIu64 __PRI64_PREFIX "u"
2023-07-10 11:39:15 +01:00
Luca Boccassi
f692c4a6cf
Print ssize_t as %zd
...
On some architectures (x32) ssize_t is int, not long int.
../src/basic/confidential-virt.c: In function ‘msr’:
../src/basic/confidential-virt.c:133:27: error: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘ssize_t’ {aka ‘int’} [-Werror=format=]
133 | log_debug("Short read %ld bytes from MSR device %s (index %" PRIu64 "), ignoring",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
134 | rv,
| ~~
| |
| ssize_t {aka int}
../src/basic/log.h:214:86: note: in definition of macro ‘log_full_errno_zerook’
214 | ? log_internal(_level, _e, PROJECT_FILE, __LINE__, __func__, __VA_ARGS__) \
| ^~~~~~~~~~~
../src/basic/log.h:242:28: note: in expansion of macro ‘log_full’
242 | #define log_debug(...) log_full(LOG_DEBUG, __VA_ARGS__)
| ^~~~~~~~
../src/basic/confidential-virt.c:133:17: note: in expansion of macro ‘log_debug’
133 | log_debug("Short read %ld bytes from MSR device %s (index %" PRIu64 "), ignoring",
| ^~~~~~~~~
../src/basic/confidential-virt.c:133:41: note: format string is defined here
133 | log_debug("Short read %ld bytes from MSR device %s (index %" PRIu64 "), ignoring",
| ~~^
| |
| long int
| %d
2023-07-10 10:57:16 +01:00
Luca Boccassi
e1819eb062
test: mount_option_supported() returns EAGAIN when new mount API is not supported
...
Don't fail test-mountpoint-util if we get EAGAIN as it's expected on old
kernels
2023-07-10 13:12:11 +09:00
Luca Boccassi
4729e84e01
efi: skip libefitest if 'bootloader' is explicitly set to false
...
On x32 efi_arch will be set as the kernel architecture is just x86_64,
but there's no userland support to build the EFI ABI. When -Dbootloader=false
is set, skip libefitest too.
2023-07-10 00:13:42 +01:00
Luca Boccassi
fca5c720be
Merge pull request #28321 from YHNdnzj/hibernate-resume-compare-dev
...
hibernate-resume: follow-ups
2023-07-10 00:13:08 +01:00
Mike Yuan
4427194292
hibernate-resume: compare device nodes using path_equal_or_inode_same
...
Follow-up for 9deeca1275
2023-07-10 00:54:13 +08:00
Mike Yuan
ee1369d789
hibernate-resume: add missing newline to the generated unit
2023-07-10 00:35:31 +08:00
Mike Yuan
c089af84c4
hibernate-resume: refuse resume if resume_offset= is set but not resume=
2023-07-09 12:13:16 +01:00
Mike Yuan
906682a1de
coccinelle/take-fd: match for -EBADF instead of -1
...
Follow-up for 254d1313ae
2023-07-09 14:07:48 +09:00
Mike Yuan
49ddb4757b
LICENSES/README.md: fix syntax
2023-07-08 22:33:53 +00:00
Xeonacid
ca15fc4820
seccomp: add riscv_hwprobe to @default
...
This syscall is for probing hardware capabilities from userspace and should do no harm.
Added in https://github.com/torvalds/linux/commit/ea3de9ce8aa280c5175c835bd3e94a3a9b814b74
2023-07-09 02:26:51 +08:00
Mike Yuan
5b0bcea892
Merge pull request #28309 from weblate/weblate-systemd-master
...
Translations update from Fedora Weblate
2023-07-09 01:47:01 +08:00
Temuri Doghonadze
8c58b1d2c6
po: Translated using Weblate (Georgian)
...
Currently translated at 100.0% (195 of 195 strings)
Co-authored-by: Temuri Doghonadze <temuri.doghonadze@gmail.com >
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ka/
Translation: systemd/main
2023-07-08 19:21:02 +02:00
Yuri Chornoivan
a7d89d836a
po: Translated using Weblate (Ukrainian)
...
Currently translated at 100.0% (195 of 195 strings)
Co-authored-by: Yuri Chornoivan <yurchor@ukr.net >
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/uk/
Translation: systemd/main
2023-07-08 19:21:02 +02:00
Luna Jernberg
b2e0189885
po: Translated using Weblate (Swedish)
...
Currently translated at 100.0% (195 of 195 strings)
Co-authored-by: Luna Jernberg <bittin@reimu.nl >
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/sv/
Translation: systemd/main
2023-07-08 19:21:02 +02:00
김인수
cba7a802ea
po: Translated using Weblate (Korean)
...
Currently translated at 100.0% (195 of 195 strings)
Co-authored-by: 김인수 <simmon@nplob.com >
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ko/
Translation: systemd/main
2023-07-08 19:21:02 +02:00
Pavel Borecki
1222734bc1
po: Translated using Weblate (Czech)
...
Currently translated at 100.0% (195 of 195 strings)
Co-authored-by: Pavel Borecki <pavel.borecki@gmail.com >
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/cs/
Translation: systemd/main
2023-07-08 19:21:01 +02:00
Luca Boccassi
eb1c0357aa
fuzz: switch fuzz-manager-serialize to MANAGER_TEST_RUN_MINIMAL
...
When there is no access to cgroups MANAGER_TEST_RUN_BASIC will fail
to set up and assert. This happens on a build system like Debian's.
Switch to _MINIMAL which skips cgroup and other machine-wide setups.
2023-07-08 10:41:44 +01:00
Dan Streetman
9071d6b1a3
test: Add DA lockout handling to TEST-70-TPM2
...
Since this test intentionally provides an incorrect PIN, the DA lockout counter
is incremented; the test needs to reset it so there is no DA lockout.
2023-07-08 01:13:29 +01:00
Christian Hesse
538f9bafc5
test-proc-cmdline: run tests only with efi
...
Run these tests only with efi enabled.
2023-07-08 03:30:10 +09:00
Lennart Poettering
d8def0f312
dissect: add new verbs to brief version of cmline in --help
2023-07-07 17:13:32 +01:00
Yu Watanabe
9bf0fe3633
Merge pull request #28287 from yuwata/network-null-address
...
network: fix null address handling
2023-07-08 01:13:17 +09:00
Yu Watanabe
2b6916c7c0
Merge pull request #28296 from bluca/shell_compl
...
Add new verbs to bash shell completions
2023-07-08 01:11:41 +09:00
Luca Boccassi
09c857a02a
shell-completion: add show-cache to bash
2023-07-07 13:41:15 +01:00
Luca Boccassi
7df82b8d64
shell-completion: add whoami to bash
2023-07-07 13:40:12 +01:00
Luca Boccassi
1386e34bae
shell-completion: add soft-reboot to bash
2023-07-07 13:39:21 +01:00
Luca Boccassi
865dcdf850
Merge pull request #28295 from eworm-de/zsh-soft-reboot
...
shell-completion/zsh: misc verbs
2023-07-07 13:37:35 +01:00
Christian Hesse
77d4986415
shell-completion/zsh/resolvectl: add show-cache
...
Make zsh shell-completion aware of show-cache.
2023-07-07 14:05:11 +02:00
Christian Hesse
6864f9b9e9
shell-completion/zsh/systemctl: add whoami
...
Make zsh shell-completion aware of whoami.
2023-07-07 14:02:41 +02:00
Christian Hesse
050d6d711a
shell-completion/zsh/systemctl: add soft-reboot
...
Make zsh shell-completion aware of soft-reboot.
2023-07-07 13:57:03 +02:00
Yu Watanabe
555737878f
meson: allow to fallback to use libxcrypt.pc or glibc's libcrypt
...
Some distributions still use glibc's libcrypt. In that case, libcrypt.pc
does not exist and dependency() will fail.
Also, even if libxcrypt is used, there may not be a symlink
from libcrypt.pc to libxcrypt.pc. So, let's add a secondary name.
Follow-up for d625f717db .
Fixes #28289 .
2023-07-07 12:32:12 +01:00
Luca Boccassi
91c96f9b32
test: remove +x from some units
2023-07-07 12:31:28 +01:00
Luca Boccassi
caf8495e90
typo: dont -> don't
2023-07-07 11:51:33 +01:00
Luca Boccassi
544fc54d72
test: add +x to generator-utils.sh
...
It is marked and named as a script, so add +x otherwise Lintian complains:
W: systemd-tests: script-not-executable [usr/lib/systemd/tests/testdata/units/generator-utils.sh]
2023-07-07 11:51:11 +01:00
Luca Boccassi
9ce707d64e
README: mention that meson 0.60 is now required
2023-07-07 11:44:54 +01:00
Luca Boccassi
6e522aa32f
NEWS: mention that meson 0.60 is now required
2023-07-07 11:44:31 +01:00
Luca Boccassi
51bb422198
NEWS: mention that gnu-efi is no longer required
2023-07-07 11:42:46 +01:00
Yu Watanabe
fc25920c94
test-network: add tests for null addresses
...
For issue #26113 .
2023-07-07 19:11:37 +09:00
Yu Watanabe
d0009d9290
network: make address_get() work for null address
...
When a static null address is requested, e.g. Address=0.0.0.0/24,
then the corresponding Address object owned by Network object has
null address, and previously it did not match any addresses already
assigne to the interface.
Let's search matching Address object when originally it is requested as
the null address.
Then, the address configured with requested as a null address will be
kept on reconfigure.
Fixes #26113 .
2023-07-07 19:11:37 +09:00
Yu Watanabe
9684a8ded0
network: always copy input address for link_request_address()
...
Then, the code becomes much simpler.
This also adds several missing log messages.
No functional change, just refactoring.
2023-07-07 19:11:37 +09:00
Yu Watanabe
0b8b30f6bb
network: also use address_kernel_{hash,compare}_func() for managing address requests
...
Request may refer Address object owned by Link, but its broadcast
address or label may be updated by address_equalify(), hence these
fields cannot be used in the hash and compare functions.
2023-07-07 19:11:37 +09:00
Yu Watanabe
14044a4114
network: log broadcast address and address label
2023-07-07 19:11:37 +09:00
Yu Watanabe
0acc647010
network: ignore Broadcast= setting when the address is null
...
When an address is requested with null address, then broadcast should be
determined after an address aquired that will be assigned to the
interface.
2023-07-07 19:11:37 +09:00
Yu Watanabe
9a45125ae7
network: split-out address_section_adjust_broadcast()
...
No functional change, just refactoring.
2023-07-07 19:11:33 +09:00
Christian Hesse
24752c41a4
man/systemd.unit: document restart behavior on Upholds=
...
Behavior on constantly failing (or oneshot) unit was unclear. Let's
document it here.
2023-07-07 10:10:56 +01:00
Lily Foster
9cf2203524
fstab-generator: unify initrd-root-device.target dependency handling code
...
This fixes a bug from #26038 where it would actually write generator
stuff during sysroot check when it was only supposed to check for daemon
reload.
2023-07-07 11:58:43 +09:00
Yu Watanabe
14be337d04
Merge pull request #28233 from mrc0mmand/append-to-corrupted-journals
...
test: append to corrupted journals
2023-07-07 11:51:02 +09:00
Yu Watanabe
d859cf15eb
Merge pull request #28286 from yuwata/network-dhcp4-classless-static-routes
...
network,dhcp4: do not ignore gateway in classless static routes option
2023-07-07 10:12:06 +09:00
Yu Watanabe
75a9122678
network,ndisc: use ndisc_captive_portal_free() at one more place
...
Fixes another memleak introduced by 64de00c49f .
Fixes #28283 .
2023-07-07 09:18:25 +09:00