]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
4 years agoresolved: use reference counting for DnsQueryCandidate objects 18407/head
Zbigniew Jędrzejewski-Szmek [Fri, 29 Jan 2021 15:21:08 +0000 (16:21 +0100)] 
resolved: use reference counting for DnsQueryCandidate objects

Follow-up for 4ea8b443de. The logic that manages DnsQueryCandidate is rather
complicated: a calls to dns_query_complete() that wants to destroy a
DnsQueryCandidate can be nested inside a deep chain of calls. Using reference
counts seems like the simplest approach.

DnsSearchDomain already uses reference counting.

This patch effectively brings dns_query_candidate_go() to the state before
4ea8b443de, but wraps the iteration over DnsQueryCandidate.transactions in
dns_query_candidate_ref+dns_query_candidate_unref.

4 years agoresolved: minor cleanups
Zbigniew Jędrzejewski-Szmek [Fri, 29 Jan 2021 15:18:12 +0000 (16:18 +0100)] 
resolved: minor cleanups

4 years agoMerge pull request #18392 from keszybz/update-target-rename
Zbigniew Jędrzejewski-Szmek [Thu, 28 Jan 2021 18:06:14 +0000 (19:06 +0100)] 
Merge pull request #18392 from keszybz/update-target-rename

Add various missing license headers and rename meson targets for consistency

4 years agoci: enable Packit integration
Frantisek Sumsal [Thu, 19 Mar 2020 10:37:41 +0000 (11:37 +0100)] 
ci: enable Packit integration

Let's enable the Packit integration and see if it's a viable option for
us. This configuration builds systemd on Fedora (on x86_64, i386, and
aarch64) and runs the unit test suite. To do that, it uses the specfile
from Fedora Rawhide[0] with some minor modifications, thus dropping the
need to have a specfile in the upstream repository.

So far the builds took around 25 minutes each, so speed-wise it's pretty
good. The two remaining supported architectures (s390x and armhfp) are
excluded, for now, since they're emulated and build there takes a really
long time (~4 hours).

[0] https://src.fedoraproject.org/rpms/systemd/

4 years agopo: specify LGPL-2.1+ for all translation files 18392/head
Zbigniew Jędrzejewski-Szmek [Thu, 28 Jan 2021 08:54:36 +0000 (09:54 +0100)] 
po: specify LGPL-2.1+ for all translation files

4 years agonetworkd: add header to distributed "config" files
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 13:31:59 +0000 (14:31 +0100)] 
networkd: add header to distributed "config" files

4 years agolicense: LGPL-2.1+ -> LGPL-2.1-or-later
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 13:16:14 +0000 (14:16 +0100)] 
license: LGPL-2.1+ -> LGPL-2.1-or-later

Follow-up for db9ecf050165fd1033c6f81485917e229c4be537 and
faa73d4e0c8095fedd98ff29851b9634810ff97e.

4 years agokernel-install: add boilerplate on installed .install files
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 13:10:25 +0000 (14:10 +0100)] 
kernel-install: add boilerplate on installed .install files

Those files distribured, so they should have the same header as
kernel-install itself. Let's fix indentation while at it.

4 years agotools: rename helper to match target name
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 13:04:14 +0000 (14:04 +0100)] 
tools: rename helper to match target name

The target is update-syscall-tables, so let's call the script
update-syscall-tables.sh to reduce the cognitive overhead when
trying to find the right file.

4 years agoUse .txt as the extension of arch syscall lists
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 13:00:07 +0000 (14:00 +0100)] 
Use .txt as the extension of arch syscall lists

This makes it easier to filter those files and tells editors that they should
be treated as plain text.

4 years agoUse .txt as the extension for syscall list file
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 12:56:12 +0000 (13:56 +0100)] 
Use .txt as the extension for syscall list file

Upstream uses .text, but this is rather unusual. Let's use .txt as the usual
suffix for text files. This tells various editors and such that the file should
be treated as plain text. I also want to a script to summarize license status,
and having an easy-to-recognize suffix makes this easier.

4 years agodocs: expose GVARIANT-SERIALIZATION as markdown
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 12:44:05 +0000 (13:44 +0100)] 
docs: expose GVARIANT-SERIALIZATION as markdown

4 years agotimesync: add header to distributed file
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 12:41:43 +0000 (13:41 +0100)] 
timesync: add header to distributed file

We don't include a license header in .conf and similar files,
but we should include a header that tells the user that this is
our file and points to some docs.

4 years agotree-wide: add spdx header on source files
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 12:38:40 +0000 (13:38 +0100)] 
tree-wide: add spdx header on source files

version.h is tiny, but the other two certainly deserve a license header.

4 years agotree-wide: add spdx header on all scripts and helpers
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 12:37:10 +0000 (13:37 +0100)] 
tree-wide: add spdx header on all scripts and helpers

Even though many of those scripts are very simple, it is easier to include
the header than to try to say whether each of those files is trivial enough
not to require one.

4 years agomissing-syscalls: add license header in the version-controlled generated file
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 12:14:51 +0000 (13:14 +0100)] 
missing-syscalls: add license header in the version-controlled generated file

If the file was always generated on the fly, the header would be pointless.
But since we distribute it, it should be there. C.f.
a0e150b2f4933ae7546fce9a2773b0208b2dc269.
This was forgotten in 35b42e560039fd87d4ae4d99cd54d1d4e89710b1.

4 years agoudev.pc: add license header
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 11:57:16 +0000 (12:57 +0100)] 
udev.pc: add license header

All other .pc files have the same header. Not sure why this one
was forgotten.

4 years agosysv-install.skeleton: use CC0 as the license
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 11:55:02 +0000 (12:55 +0100)] 
sysv-install.skeleton: use CC0 as the license

We didn't specify any license, which made the script awkward to use. Let's be
maximally permissive. CC0 is used for other documentation-code already.

4 years agogenerate-dns_type-gperf: modernize python syntax
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 11:16:40 +0000 (12:16 +0100)] 
generate-dns_type-gperf: modernize python syntax

4 years agogenerate-sys-test: modernize Python and C code
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 11:03:57 +0000 (12:03 +0100)] 
generate-sys-test: modernize Python and C code

Meson itself requires Python 3.6, which has f-strings. So I think it's fine to
use them here too. I wanted to use walrus for 'if m:= re.search(...)', but that'd
require 3.8.

4 years agoseccomp_restrict_sxid: return ENOSYS for openat2()
Mike Gilbert [Thu, 21 Jan 2021 20:23:32 +0000 (15:23 -0500)] 
seccomp_restrict_sxid: return ENOSYS for openat2()

We reject all openat2() calls because it is currently not possible to
inspect its flags parameter via seccomp.

Fallback code is more likely to look for ENOSYS than EPERM.

4 years agoDrop obsolete vimrc file
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 10:49:11 +0000 (11:49 +0100)] 
Drop obsolete vimrc file

We have another .vimrc in the root of the repo that has a superset of the
content of this file.

4 years agoMerge pull request #18388 from keszybz/update-target-rename
Lennart Poettering [Wed, 27 Jan 2021 13:28:24 +0000 (14:28 +0100)] 
Merge pull request #18388 from keszybz/update-target-rename

meson: rename update targets for consistency

4 years agomeson: rename target to update-hwdb-autosuspend 18388/head
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 08:23:02 +0000 (09:23 +0100)] 
meson: rename target to update-hwdb-autosuspend

The script is renamed to match.

Now all targets are named uniformly in a tab-completion-friendly fashion, with
the exception of systemd-update-po which is generated by the i18n module
automatically:

$ ninja -C build -t targets | grep update
systemd-update-po: phony
update-syscall-tables: phony
update-syscall-header: phony
update-hwdb: phony
update-hwdb-autosuspend: phony
update-dbus-docs: CUSTOM_COMMAND
update-man-rules: CUSTOM_COMMAND

4 years agomeson: rename target to update-hwdb
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 08:17:26 +0000 (09:17 +0100)] 
meson: rename target to update-hwdb

The goal is to have all "update-*" targets named uniformly so that
tab-completion works. The script is renamed to match.

4 years agomeson: rename target to update-man-rules
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 08:10:25 +0000 (09:10 +0100)] 
meson: rename target to update-man-rules

Same justification as for update-dbus-docs.

4 years agomeson: rename target to update-dbus-docs
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 07:46:42 +0000 (08:46 +0100)] 
meson: rename target to update-dbus-docs

Very old versions of meson did not include the subdirectory name in the
target name, so we started adding various "top-level" custom targets in
subdirectories. This was nice because the main meson.build file wasn't
as cluttered. But then meson started including the subdir name in the
target name. So let's move the definition to the root so we can have all
targets named uniformly.

4 years agoMerge pull request #18340 from ddstreet/integration-tests-no-build
Zbigniew Jędrzejewski-Szmek [Wed, 27 Jan 2021 07:23:38 +0000 (08:23 +0100)] 
Merge pull request #18340 from ddstreet/integration-tests-no-build

allow test/run-integration-tests.sh to work without a local build

4 years agotreewide: tighten variable scope in loops (#18372)
Susant Sahani [Wed, 27 Jan 2021 07:19:39 +0000 (08:19 +0100)] 
treewide: tighten variable scope in loops (#18372)

Also use _cleanup_free_ in one more place.

4 years agoMerge pull request #18380 from yuwata/test-network-ipv6-proxy-ndp
Yu Watanabe [Wed, 27 Jan 2021 01:47:36 +0000 (10:47 +0900)] 
Merge pull request #18380 from yuwata/test-network-ipv6-proxy-ndp

test-network: add tests for IPv6ProxyNDPAddress=

4 years agotest/TEST-01-BASIC: also install testsuite.target 18340/head
Dan Streetman [Wed, 18 Nov 2020 14:39:50 +0000 (09:39 -0500)] 
test/TEST-01-BASIC: also install testsuite.target

This test doesn't require the tests to be installed, so it must manually
install required test services and targets itself, including the default
target of testsuite.target

Also use $TEST_UNITS_DIR which is set by test-functions instead of
calculating the path

4 years agotest/run-integration-tests.sh: adjust arg processing
Dan Streetman [Wed, 18 Nov 2020 12:30:11 +0000 (07:30 -0500)] 
test/run-integration-tests.sh: adjust arg processing

The script currently parses either 'clean' or 'clean-again' as wanting
to clean both before and after running tests. This fixes that to split
the action up; clean runs before tests, clean-again after; and also
verifies the parameter(s) before passing them to make.

4 years agotest: allow run-integration-tests.sh to run without build
Dan Streetman [Tue, 17 Nov 2020 20:55:47 +0000 (15:55 -0500)] 
test: allow run-integration-tests.sh to run without build

4 years agotest/test-functions: allow installing systemd files from local system
Dan Streetman [Tue, 17 Nov 2020 22:20:22 +0000 (17:20 -0500)] 
test/test-functions: allow installing systemd files from local system

Add NO_BUILD var to allow testing with no local build, by installing
local systemd files into the image.

This only works for debian-like distros currently, that use the
tools 'apt' and 'dpkg' for package management.

4 years agotest: find $BUILD_DIR in test-functions, remove from other scripts
Dan Streetman [Tue, 17 Nov 2020 20:39:37 +0000 (15:39 -0500)] 
test: find $BUILD_DIR in test-functions, remove from other scripts

The $BUILD_DIR is only used in test-functions, and doesn't need to
be specified in any other scripts. Additionally, to be able to allow
the integration test suite to be run against locally installed binaries,
instead of built binaries, moving BUILD_DIR logic completely into
test-functions allows later patches to be simpler.

4 years agotest/test-functions: add variables for several dir locations
Dan Streetman [Tue, 26 Jan 2021 21:46:10 +0000 (16:46 -0500)] 
test/test-functions: add variables for several dir locations

4 years agotest/test-functions: move var assignment
Dan Streetman [Tue, 17 Nov 2020 21:02:14 +0000 (16:02 -0500)] 
test/test-functions: move var assignment

This makes no code change, only moves a small block of vars higher in the
file. This makes the next commit a bit easier to read.

4 years agotest: remove unused 'basedir' var from integration test makefiles
Dan Streetman [Tue, 17 Nov 2020 21:10:29 +0000 (16:10 -0500)] 
test: remove unused 'basedir' var from integration test makefiles

4 years agoMerge pull request #18384 from poettering/mangle-os-fix
Luca Boccassi [Tue, 26 Jan 2021 20:23:52 +0000 (20:23 +0000)] 
Merge pull request #18384 from poettering/mangle-os-fix

import: two fixes to OS mangling logic

4 years agotest-network: retry several times if expected LLDP info is not obtained
Yu Watanabe [Tue, 26 Jan 2021 12:06:36 +0000 (21:06 +0900)] 
test-network: retry several times if expected LLDP info is not obtained

As LLDP thing does not get involved in the link status, `networkctl lldp`
may not provide an expected information even if the link is in
'configured' state.

Fixes #17360.

4 years agoMerge pull request #18377 from yuwata/sd-device-cleanups
Lennart Poettering [Tue, 26 Jan 2021 16:39:54 +0000 (17:39 +0100)] 
Merge pull request #18377 from yuwata/sd-device-cleanups

sd-device: several tiny cleanups

4 years agoMerge pull request #18382 from yuwata/fix-downgrade-to-bool
Lennart Poettering [Tue, 26 Jan 2021 16:38:19 +0000 (17:38 +0100)] 
Merge pull request #18382 from yuwata/fix-downgrade-to-bool

sd-device,sd-netlink: trivial cleanups

4 years agoimport-common: when mangling OS trees, propagate ownership/mode from subdir to parent 18384/head
Lennart Poettering [Tue, 26 Jan 2021 14:06:28 +0000 (15:06 +0100)] 
import-common: when mangling OS trees, propagate ownership/mode from subdir to parent

After all we want to remove the top-level dir, and make it look like the
only subdir, hence propagate the attributes from the subdir to the
top-level dir.

4 years agoimport-common: fix log message string
Lennart Poettering [Tue, 26 Jan 2021 14:05:25 +0000 (15:05 +0100)] 
import-common: fix log message string

The trees do look like directory trees, obviously. But they don't like
OS trees.

4 years agonetwork: drop unnecessary condition in error path 18380/head
Yu Watanabe [Tue, 26 Jan 2021 16:20:50 +0000 (01:20 +0900)] 
network: drop unnecessary condition in error path

See neigh_add() in kernel. It does not return EEXIST.

4 years agonetwork: drop wrong flag for neighbor entry
Yu Watanabe [Tue, 26 Jan 2021 16:19:24 +0000 (01:19 +0900)] 
network: drop wrong flag for neighbor entry

NLM_F_REQUEST is a nlmsg flag, not a neighbor flag.

4 years agotest-network: add tests for IPv6ProxyNDPAddress=
Yu Watanabe [Tue, 26 Jan 2021 12:36:25 +0000 (21:36 +0900)] 
test-network: add tests for IPv6ProxyNDPAddress=

4 years agosd-device: do not use downgrade-to-bool feature 18382/head
Yu Watanabe [Tue, 26 Jan 2021 14:57:33 +0000 (23:57 +0900)] 
sd-device: do not use downgrade-to-bool feature

4 years agosd-netlink: fix indentation
Yu Watanabe [Tue, 26 Jan 2021 14:55:37 +0000 (23:55 +0900)] 
sd-netlink: fix indentation

4 years agosd-netlink: do not use downgrade-to-bool feature
Yu Watanabe [Tue, 26 Jan 2021 14:54:32 +0000 (23:54 +0900)] 
sd-netlink: do not use downgrade-to-bool feature

4 years agodocs/ENVIRONMENT: move entry for systemd-udevd
Yu Watanabe [Tue, 26 Jan 2021 12:52:12 +0000 (21:52 +0900)] 
docs/ENVIRONMENT: move entry for systemd-udevd

`$SYSTEMD_REBOOT_TO_FIRMWARE_SETUP=` or friends are for logind.

4 years agosd-device: use size_t for index in the loop 18377/head
Yu Watanabe [Tue, 26 Jan 2021 11:35:53 +0000 (20:35 +0900)] 
sd-device: use size_t for index in the loop

4 years agosd-device: use string_hash_ops_free_free
Yu Watanabe [Tue, 26 Jan 2021 11:26:33 +0000 (20:26 +0900)] 
sd-device: use string_hash_ops_free_free

4 years agosd-device: add a short comment why we simply return negative errno here on failure
Yu Watanabe [Tue, 26 Jan 2021 11:07:38 +0000 (20:07 +0900)] 
sd-device: add a short comment why we simply return negative errno here on failure

4 years agosd-device: rename variables and use TAKE_PTR()
Yu Watanabe [Tue, 26 Jan 2021 10:56:13 +0000 (19:56 +0900)] 
sd-device: rename variables and use TAKE_PTR()

4 years agosd-device: use string_hash_ops_free_free
Yu Watanabe [Tue, 26 Jan 2021 10:52:56 +0000 (19:52 +0900)] 
sd-device: use string_hash_ops_free_free

4 years agosysusers: flush nscd's caches whenever /etc/{passwd,group} are modified
Franck Bui [Mon, 25 Jan 2021 15:32:44 +0000 (16:32 +0100)] 
sysusers: flush nscd's caches whenever /etc/{passwd,group} are modified

4 years agoMerge pull request #18374 from mrc0mmand/assorted-ci-tweaks
Frantisek Sumsal [Mon, 25 Jan 2021 20:50:09 +0000 (21:50 +0100)] 
Merge pull request #18374 from mrc0mmand/assorted-ci-tweaks

Assorted CI tweaks

4 years agoci: use the recommended meson syntax 18374/head
Frantisek Sumsal [Mon, 25 Jan 2021 15:01:56 +0000 (16:01 +0100)] 
ci: use the recommended meson syntax

See: docs/HACKING.md

4 years agoci: drop an unnecessary sudo
Frantisek Sumsal [Mon, 25 Jan 2021 14:49:27 +0000 (15:49 +0100)] 
ci: drop an unnecessary sudo

4 years agoci: make the script names a bit more consistent
Frantisek Sumsal [Mon, 25 Jan 2021 14:45:36 +0000 (15:45 +0100)] 
ci: make the script names a bit more consistent

4 years agoMerge pull request #18371 from yuwata/use-ansi-normal
Yu Watanabe [Mon, 25 Jan 2021 14:40:14 +0000 (23:40 +0900)] 
Merge pull request #18371 from yuwata/use-ansi-normal

tree-wide: use ansi_normal() instead of ANSI_NORMAL

4 years agoMerge pull request #18281 from yuwata/log-drop-log-realm
Yu Watanabe [Mon, 25 Jan 2021 14:39:29 +0000 (23:39 +0900)] 
Merge pull request #18281 from yuwata/log-drop-log-realm

log: drop LogRealm

4 years agoMerge pull request #18365 from DaanDeMeyer/update-man-rules-mkosi
Zbigniew Jędrzejewski-Szmek [Mon, 25 Jan 2021 13:05:56 +0000 (14:05 +0100)] 
Merge pull request #18365 from DaanDeMeyer/update-man-rules-mkosi

Fix update-man-rules usage with mkosi

4 years agocgtop: use ansi_normal() or friends instead of ANSI_NORMAL 18371/head
Yu Watanabe [Sun, 17 Jan 2021 21:38:13 +0000 (06:38 +0900)] 
cgtop: use ansi_normal() or friends instead of ANSI_NORMAL

4 years agologs-show: simplify code
Yu Watanabe [Sun, 17 Jan 2021 21:37:18 +0000 (06:37 +0900)] 
logs-show: simplify code

4 years agoterminal-util: use ansi_normal() or friends instead of ANSI_NORMAL
Yu Watanabe [Sun, 17 Jan 2021 21:36:42 +0000 (06:36 +0900)] 
terminal-util: use ansi_normal() or friends instead of ANSI_NORMAL

4 years agolog: use ansi_normal() instead of ANSI_NORMAL
Yu Watanabe [Sun, 17 Jan 2021 21:36:02 +0000 (06:36 +0900)] 
log: use ansi_normal() instead of ANSI_NORMAL

4 years agolibsystemd: fix typo in symbol versioning
Zbigniew Jędrzejewski-Szmek [Mon, 25 Jan 2021 07:50:27 +0000 (08:50 +0100)] 
libsystemd: fix typo in symbol versioning

4 years agolog: drop unused LogRealm 18281/head
Yu Watanabe [Sun, 17 Jan 2021 04:59:33 +0000 (13:59 +0900)] 
log: drop unused LogRealm

Already no binary is built with LOG_REALM= argument.
Hence, we can safely drop LogRealm now.

4 years agoudev: stop to use LOG_REALM_UDEV
Yu Watanabe [Sun, 17 Jan 2021 04:32:29 +0000 (13:32 +0900)] 
udev: stop to use LOG_REALM_UDEV

Before this commit, udevd is built with LOG_REALM=LOG_REALM_UDEV.
However, log level specified by e.g. environment variable or kernel
command line option are also passed to LOG_REALM_SYSTEMD. So, the
maximum log level for the two realms are always equivalent, and it is
not necessary to specify the build option. Hence drop it.

4 years agoselinux-util: do not use log_internal_realm() without setting log realm
Yu Watanabe [Sun, 17 Jan 2021 04:02:54 +0000 (13:02 +0900)] 
selinux-util: do not use log_internal_realm() without setting log realm

4 years agolog: drop unused log_full_errno_realm() macro
Yu Watanabe [Sun, 17 Jan 2021 03:57:07 +0000 (12:57 +0900)] 
log: drop unused log_full_errno_realm() macro

4 years agoMerge pull request #18363 from bluca/test_image_reuse
Zbigniew Jędrzejewski-Szmek [Mon, 25 Jan 2021 08:25:56 +0000 (09:25 +0100)] 
Merge pull request #18363 from bluca/test_image_reuse

tests: build the image once and then copy/extend it

4 years agoTranslated using Weblate (Punjabi)
A S Alam [Sun, 24 Jan 2021 16:38:24 +0000 (17:38 +0100)] 
Translated using Weblate (Punjabi)

Currently translated at 3.7% (7 of 189 strings)

Co-authored-by: A S Alam <amanpreet.alam@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/pa/
Translation: systemd/main

4 years agosd-bus: Add sd_bus_reply()
Daan De Meyer [Sat, 23 Jan 2021 15:16:57 +0000 (15:16 +0000)] 
sd-bus: Add sd_bus_reply()

While sd-bus already provides sd_bus_call() for calling a method
from a complete bus message object, We don't have an equivalent
function for replying from a method with a complete bus message
object.

Currently, we use sd_bus_send(call->bus, m, NULL) instead. Let's
add a shorthand for this pattern and name it sd_bus_reply().

4 years agoAvoid error when bind mount source already exists
Stefan Agner [Mon, 28 Dec 2020 20:46:40 +0000 (21:46 +0100)] 
Avoid error when bind mount source already exists

4 years agoMerge pull request #18361 from anitazha/oomdconfigtime
Zbigniew Jędrzejewski-Szmek [Sun, 24 Jan 2021 19:12:28 +0000 (20:12 +0100)] 
Merge pull request #18361 from anitazha/oomdconfigtime

oom: some improvements and fixes

4 years agohwdb.d/60-keyboard.hwdb: Fixes for Samsung 900X laptops
John Slade [Sun, 24 Jan 2021 14:04:03 +0000 (14:04 +0000)] 
hwdb.d/60-keyboard.hwdb: Fixes for Samsung 900X laptops

It is only the Samsung 900X3A which has the alternative function keys.

The 900X3B, 900X4B have the standard Series 9 layout - as defined above.

Note: the 900X4A is not a valid laptop model.

4 years agomeson: Fix update-man-rules when the build dir is not a subdir of the project dir 18365/head
Daan De Meyer [Sun, 24 Jan 2021 14:13:58 +0000 (14:13 +0000)] 
meson: Fix update-man-rules when the build dir is not a subdir of the project dir

Until now, update-man-rules assumed that the build directory was
a subdirectory of the project directory. When using mkosi, this is
not the case. We use find instead of git ls-files because git ls-files
does not seem to support outputting absolute paths.

Also, this makes update-man-rules a bit more user-friendly as new manpages
don't have to be added to the git staging area before they are processed by
update-man-rules.py.

4 years agomkosi: Pass build script arguments to ninja
Daan De Meyer [Sun, 24 Jan 2021 14:13:02 +0000 (14:13 +0000)] 
mkosi: Pass build script arguments to ninja

mkosi recently gained support to pass arguments to the build script.
Let's take advantage of this in systemd's build script to allow
passing which target to build to ninja in the build script.

4 years agotests: build the image once and then copy/extend it 18363/head
Luca Boccassi [Wed, 6 Jan 2021 21:42:28 +0000 (21:42 +0000)] 
tests: build the image once and then copy/extend it

Building custom images for each test takes a lot of time.
Build the default one, and if the test needs incompatible changes
just copy it and extend it instead.

4 years agotest: note where the bionic-* CI tool/integration lives
Luca Boccassi [Tue, 5 Jan 2021 14:05:15 +0000 (14:05 +0000)] 
test: note where the bionic-* CI tool/integration lives

4 years agoMerge pull request #18358 from jwrdegoede/hwdb-2-accel-quirks
Luca Boccassi [Sun, 24 Jan 2021 11:35:59 +0000 (11:35 +0000)] 
Merge pull request #18358 from jwrdegoede/hwdb-2-accel-quirks

Hwdb 2 accel quirks

4 years agodocs: Update HACKING.md with the mkosi boot/qemu commands + options
Daan De Meyer [Sat, 23 Jan 2021 12:16:18 +0000 (12:16 +0000)] 
docs: Update HACKING.md with the mkosi boot/qemu commands + options

Let's use the mkosi commands in HACKING.md and recommend some options
that speed up mkosi builds. Also includes some other small improvements.

4 years agodocs: Add a section to HACKING.md on using mkosi and clangd together
Daan De Meyer [Sat, 23 Jan 2021 12:17:36 +0000 (12:17 +0000)] 
docs: Add a section to HACKING.md on using mkosi and clangd together

While it's perfectly possible today to completely rely on mkosi for
building and testing systemd, to get code completion and other IDE
niceties to work properly, it's still necessary to build systemd
locally.

Recently, mkosi gained the ability to allow external programs to
communicate with the build script. We can use this feature to run
the clangd language server in the mkosi build image via a custom
build script to provide IDE features in editors without requiring
developers to build systemd on the host or install any of systemd's
build dependencies locally.

This commit adds the necessary information on how to set this up
to HACKING.md.

4 years agooom: update extended test to remove swap gating 18361/head
Anita Zhang [Sun, 24 Jan 2021 09:34:23 +0000 (01:34 -0800)] 
oom: update extended test to remove swap gating

4 years agooom: fix reclaim activity detection
Anita Zhang [Sun, 24 Jan 2021 09:22:51 +0000 (01:22 -0800)] 
oom: fix reclaim activity detection

This should have been checking for any reclaim activity within a larger interval
of time rather than within the past second. On systems with swap this
doesn't seem to have mattered too much as reclaim would always increase when
memory pressure was elevated. But testing in the no swap case having
this larger interval made a difference between oomd killing or not.

4 years agooom: make swap a soft requirement
Anita Zhang [Sun, 24 Jan 2021 06:10:42 +0000 (22:10 -0800)] 
oom: make swap a soft requirement

4 years agooom: make memory pressure duration configurable through oomd.conf
Anita Zhang [Sun, 24 Jan 2021 08:16:19 +0000 (00:16 -0800)] 
oom: make memory pressure duration configurable through oomd.conf

4 years agohwdb: Add accel orientation quirk for the Jumper Ezpad 7 tablet 18358/head
Hans de Goede [Sat, 23 Jan 2021 21:36:58 +0000 (22:36 +0100)] 
hwdb: Add accel orientation quirk for the Jumper Ezpad 7 tablet

Add a quirk to fix the accelerometer orientation on
the Jumper Ezpad 7 tablet.

4 years agohwdb: Add accel orientation quirk for the Estar Beauty HD tablet
Hans de Goede [Wed, 23 Dec 2020 20:45:18 +0000 (21:45 +0100)] 
hwdb: Add accel orientation quirk for the Estar Beauty HD tablet

Add a quirk to fix the accelerometer orientation on the Estar Beauty HD
(marked as model-number MID 7316R on the back) tablet.

4 years agoMerge pull request #18349 from poettering/import-fixlets2
Luca Boccassi [Sat, 23 Jan 2021 00:21:48 +0000 (00:21 +0000)] 
Merge pull request #18349 from poettering/import-fixlets2

minor importd fixlets

4 years agorepart: improve help text
Lennart Poettering [Fri, 22 Jan 2021 19:29:58 +0000 (20:29 +0100)] 
repart: improve help text

Finding "partitions" in a "directory" is a bit weird. Let's find
"partition definitions" there, after all the option is called
--definitions=

4 years agoimport: downgrade error messages we ignore to LOG_WARNING 18349/head
Lennart Poettering [Fri, 22 Jan 2021 19:39:29 +0000 (20:39 +0100)] 
import: downgrade error messages we ignore to LOG_WARNING

4 years agoimport: set up btrfs qgroups on correct hierarchy
Lennart Poettering [Fri, 22 Jan 2021 17:49:44 +0000 (18:49 +0100)] 
import: set up btrfs qgroups on correct hierarchy

Also, simplify import_assign_pool_quota_and_warn(), don't do the same
thing twice. Let's just allow the caller call this twice.

4 years agoimport: drop redundant {}, as per coding style
Lennart Poettering [Fri, 22 Jan 2021 16:35:47 +0000 (17:35 +0100)] 
import: drop redundant {}, as per coding style

4 years agoimport: introduce ImportFlags flags field
Lennart Poettering [Fri, 22 Jan 2021 16:10:50 +0000 (17:10 +0100)] 
import: introduce ImportFlags flags field

This merges the two flags that are passed to the ImportTar/ImportRaw
objects into a single flags parameter, which we then can extend more
easily later on.

No change in behaviour.

This is inspired by 133b34f69a72dc90d4e336837d699245390c9f50 which does
the same for PullTar/PullRaw.

4 years agoimport: don't apply empty_or_dash_to_null() to stuff we know is NULL anyway
Lennart Poettering [Fri, 22 Jan 2021 15:47:22 +0000 (16:47 +0100)] 
import: don't apply empty_or_dash_to_null() to stuff we know is NULL anyway

4 years agofeature: display status with a different shape depending on the status (#17728)
Jiehong [Wed, 20 Jan 2021 14:52:35 +0000 (15:52 +0100)] 
feature: display status with a different shape depending on the status (#17728)