chiark / gitweb /
Sven Eden [Wed, 26 Sep 2018 15:58:00 +0000 (17:58 +0200)]
Enhance the dealing with glibc-2.28
It appears that the necessary bits were already there, but commented
out. When meson checked for 'struct statx', the inclusion of both
sys/stat.h and linux/stat.h where commented out. Uncommenting them
should be enough.
Sven Eden [Mon, 10 Sep 2018 17:50:04 +0000 (19:50 +0200)]
Fix elogind being non-reactive to laptop lid events.
Revert "logind: relax udev rules matching devices logind watches for"
This reverts commit
964a6d9fb555cc86528eb1cc1f6d044f85584842 and adds
the new ENV{} mechanism to 70-power-switch.rules, but leave out gpio.
Bug: https://github.com/elogind/elogind/issues/51
elogind doesn't respond to lid events with eudev-3.2.5
Closes: https://github.com/elogind/elogind/issues/51
Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
Sven Eden [Wed, 26 Sep 2018 05:50:10 +0000 (07:50 +0200)]
pwx: Revision bump for rebuild_all.sh having the renamed debug -> debug-extra option
Zbigniew Jędrzejewski-Szmek [Sun, 19 Aug 2018 17:11:30 +0000 (19:11 +0200)]
meson: rename -Ddebug to -Ddebug-extra
Meson added -Doptimization and -Ddebug options, which obviously causes
a conflict with our -Ddebug options. Let's rename it.
Closes #76.
Christoph Willing [Mon, 24 Sep 2018 22:39:53 +0000 (08:39 +1000)]
Deal with glibc-2.28
Closes: https://github.com/elogind/elogind/issues/74
Signed-off-by: Christoph Willing <chris.willing@linux.com>
Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
Sven Eden [Fri, 31 Aug 2018 06:07:35 +0000 (08:07 +0200)]
Prep v239: Fix and add debug messages to method_can_shutdown_or_sleep()
Sven Eden [Thu, 30 Aug 2018 06:35:32 +0000 (08:35 +0200)]
Prep v239: Only _HANDLE_ACTION_INVALID makes method_can_shutdown_or_sleep() answer 'no'
Sven Eden [Wed, 29 Aug 2018 15:55:22 +0000 (17:55 +0200)]
Prep v239: Add support for suspend-then-hibernate to loginctl.
Sven Eden [Wed, 29 Aug 2018 06:33:39 +0000 (08:33 +0200)]
Prep v239: Utilize new user_runtime_dir() function
Sven Eden [Wed, 29 Aug 2018 06:33:20 +0000 (08:33 +0200)]
Prep v239: Add new user-runtime-dir main() function as user_runtime_dir().
Sven Eden [Tue, 28 Aug 2018 06:53:43 +0000 (08:53 +0200)]
Prep v239: As we need the rootlibexecdir, 73-seat-late.rules.m4 must be configured first.
Sven Eden [Tue, 28 Aug 2018 06:16:06 +0000 (08:16 +0200)]
Prep v239: meson.build: Enabled listing of now supported options.
Sven Eden [Tue, 28 Aug 2018 06:00:44 +0000 (08:00 +0200)]
Prep v239: Sync libelogind_version with upstream libsystemd_version
Sven Eden [Mon, 27 Aug 2018 06:44:24 +0000 (08:44 +0200)]
Prep v239: A few cosmetic upgrades
Sven Eden [Fri, 24 Aug 2018 06:24:38 +0000 (08:24 +0200)]
Prep v239: Add man/custom-entities.ent.in, we now need it.
Sven Eden [Fri, 24 Aug 2018 05:41:08 +0000 (07:41 +0200)]
Prep v239: Do not test terminal_urlify_path()
elogind doesn't need and thus does not support it.
Sven Eden [Fri, 24 Aug 2018 05:40:30 +0000 (07:40 +0200)]
Prep v239: Do not test ioprio_class_from_to_string()
elogind doesn't need and thus does not support it.
Sven Eden [Thu, 23 Aug 2018 16:39:52 +0000 (18:39 +0200)]
Prep v239: Mask unneedd tests test_copy_atomic() and assert_equal_fd()
Sven Eden [Thu, 23 Aug 2018 16:37:16 +0000 (18:37 +0200)]
Prep v239: Unmask cg_weight_parse()
Sven Eden [Thu, 23 Aug 2018 16:19:38 +0000 (18:19 +0200)]
Prep v239: Remove udev-util.c, we no longer need that.
Sven Eden [Thu, 23 Aug 2018 16:12:43 +0000 (18:12 +0200)]
Prep v239: Remove os-util.[hc] - We do not need anything in there.
Sven Eden [Thu, 23 Aug 2018 06:48:48 +0000 (08:48 +0200)]
Prep v239: Unmasked mkdtemp_malloc(), it is needed to test inotify.
Sven Eden [Thu, 23 Aug 2018 06:45:37 +0000 (08:45 +0200)]
Prep v239: Fix new sd_bus_open_user_with_description()
Sven Eden [Thu, 23 Aug 2018 06:45:18 +0000 (08:45 +0200)]
Prep v239: Mask definition of config_parse_mode, we do not need that.
Sven Eden [Thu, 23 Aug 2018 06:35:42 +0000 (08:35 +0200)]
Prep v239: Fix ustreams move of the unneeded target_table into its own also unneeded function.
Sven Eden [Thu, 23 Aug 2018 06:27:14 +0000 (08:27 +0200)]
Prep v239: Unmask inotify_add_watch_fd()
Sven Eden [Thu, 23 Aug 2018 06:21:15 +0000 (08:21 +0200)]
Prep v239: Fix main() to call manager_new() again.
Sven Eden [Thu, 23 Aug 2018 06:20:10 +0000 (08:20 +0200)]
Prep v239: Mask all unneeded functions in the new format-table.[hc] files.
Sven Eden [Thu, 23 Aug 2018 06:17:24 +0000 (08:17 +0200)]
Prep v239: Unmask delete_chars()
Sven Eden [Tue, 21 Aug 2018 06:20:36 +0000 (08:20 +0200)]
Prep v239: Add support for the new 'suspend-then-hibernate' method.
Sven Eden [Mon, 20 Aug 2018 17:15:58 +0000 (19:15 +0200)]
Prep v239: Update manager_parse_config_file() that got moved to logind-core.c
Sven Eden [Mon, 20 Aug 2018 17:04:20 +0000 (19:04 +0200)]
Prep v239: Unmask inotify event stuff, now ustilized by the sd_event struct.
Sven Eden [Mon, 20 Aug 2018 16:51:42 +0000 (18:51 +0200)]
Prep v239: Mirror upstream and move pager.[hc] from shared to basic.
Sven Eden [Mon, 20 Aug 2018 07:32:10 +0000 (09:32 +0200)]
Prep v239: Fix sleep-config.[hc] and sleep/sleep.c to utilize upstream updates.
Sven Eden [Mon, 20 Aug 2018 07:30:45 +0000 (09:30 +0200)]
Prep v239: Fix conf-parser.[hc], it got a bit mangled by migration.
Sven Eden [Mon, 20 Aug 2018 07:25:00 +0000 (09:25 +0200)]
Prep v239: Fix logind-session.c, it got screwed by migration.
Sven Eden [Mon, 20 Aug 2018 07:24:05 +0000 (09:24 +0200)]
Prep v239: terminal-util.[hc] - Mask new 'urlify' functions, we do not need them.
Sven Eden [Mon, 20 Aug 2018 07:18:16 +0000 (09:18 +0200)]
Prep v239: string-util.[hc] - Unmasked skip_leading_chars() - Newly utilized by strstrip()
Sven Eden [Mon, 20 Aug 2018 07:16:39 +0000 (09:16 +0200)]
Prep v239: path-util.[hc] - Masked path_simplify_and_warn() - Nowhere needed.
Sven Eden [Mon, 20 Aug 2018 07:15:27 +0000 (09:15 +0200)]
Prep v239: fd-util.[hc] - Masked fd_duplicate_data_fd() - Nowhere needed.
Sven Eden [Thu, 16 Aug 2018 06:07:55 +0000 (08:07 +0200)]
Prep v239: sync manager_get_user_by_pid() with upstream updates
Sven Eden [Wed, 15 Aug 2018 07:01:47 +0000 (09:01 +0200)]
Prep v239: Uncomment header inclusions that are new or needed now.
Sven Eden [Wed, 15 Aug 2018 07:00:48 +0000 (09:00 +0200)]
Prep v239: fs-util: Mask new chase_symlinks_and_*() functions.
They are nowhere needed.
Sven Eden [Wed, 15 Aug 2018 06:58:23 +0000 (08:58 +0200)]
Prep v239: Remove basic/set.c - No longer needed.
Sven Eden [Wed, 15 Aug 2018 06:47:37 +0000 (08:47 +0200)]
Prep v239: manager_get_session_by_pid() : Support Session **ret parameter.
Sven Eden [Wed, 15 Aug 2018 06:38:17 +0000 (08:38 +0200)]
Prep v239: Unmask Valgrind options and checks in meson files.
Doesn't hurt to leave that possibility open.
Sven Eden [Wed, 15 Aug 2018 06:34:24 +0000 (08:34 +0200)]
Prep v239: Fix sd_event_add_inotify.xml
elogind has no inotify test program
Sven Eden [Tue, 14 Aug 2018 16:39:33 +0000 (18:39 +0200)]
Prep v239: Add missing updates that evaded migration.
Sven Eden [Tue, 14 Aug 2018 16:21:43 +0000 (18:21 +0200)]
Prep v239: 73-seat-late.rules is now built from 73-seat-late.rules.m4
Sven Eden [Tue, 14 Aug 2018 16:07:33 +0000 (18:07 +0200)]
Prep v239: Remove portabled, rc-local and time-sync.
They, or at least bits of them, have slithered in during migration.
Sven Eden [Fri, 10 Aug 2018 15:41:29 +0000 (17:41 +0200)]
Build system: Fix various issues that came from errornous migration.
No matter how much advanced check_tree.pl is, there are plenty possibilities
where upstream changes can be transported wrong. Mainly adding something we then
have to mask out. But at the end of the day this is actually wanted, so we do
not miss important changes.
Sven Eden [Fri, 10 Aug 2018 15:36:28 +0000 (17:36 +0200)]
Bump pwx migration tools to stored last mutual commit for upstream v239 tag.
Lennart Poettering [Fri, 22 Jun 2018 11:03:47 +0000 (13:03 +0200)]
meson: bump package and library version
Lennart Poettering [Fri, 22 Jun 2018 10:57:54 +0000 (12:57 +0200)]
final touches to NEWS
Yu Watanabe [Thu, 21 Jun 2018 01:51:35 +0000 (10:51 +0900)]
NEWS: mention 'timedatectl show'
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 22:08:36 +0000 (00:08 +0200)]
NEWS: mention %E
Lennart Poettering [Wed, 20 Jun 2018 17:36:06 +0000 (19:36 +0200)]
update TODO
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 20:35:36 +0000 (22:35 +0200)]
NEWS: mention ConditionSecurity=uefi-secureboot
Follow-up for
be405b909e5d78b43e3af47e0d10cd84c714e2f3.
Yu Watanabe [Wed, 20 Jun 2018 16:29:49 +0000 (01:29 +0900)]
meson: make DNS-over-TLS support optional
This adds dns-over-tls option to meson. If set to 'false',
systemd-resolved is not linked with libgnutls.
Lennart Poettering [Wed, 20 Jun 2018 09:54:25 +0000 (11:54 +0200)]
NEWS: document that the BLS is now part of our tree
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 10:38:36 +0000 (12:38 +0200)]
test-sizeof: another aproach to _Float128 availability detection
Lennart Poettering [Wed, 20 Jun 2018 11:01:51 +0000 (13:01 +0200)]
tree-wide: drop MSG_NOSIGNAL flag from recvmsg() invocations
MSG_NOSIGNAL is only defined for sendmsg(), not for recvmsg(), hence
let's drop it's use, in particular as it appears to create problems on
older kernels. See:
https://lists.freedesktop.org/archives/systemd-devel/2018-June/040869.html
Lennart Poettering [Wed, 20 Jun 2018 09:06:17 +0000 (11:06 +0200)]
update NEWS contributors list again
Lennart Poettering [Wed, 20 Jun 2018 10:46:18 +0000 (12:46 +0200)]
units: make system-update-pre.target a passive unit (#9349)
This is an additional synchronization point normally not needed. Hence,
let's make it passive, i.e. pull it in from the unit which wants to be
ordered before the update service rather than by the update service
itself.
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 10:11:00 +0000 (12:11 +0200)]
Drop copyrights tags for "systemd authors"
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 09:58:53 +0000 (11:58 +0200)]
tree-wide: drop copyright headers from frequent contributors
Fixes #9320.
for p in Shapovalov Chevalier Rozhkov Sievers Mack Herrmann Schmidt Rudenberg Sahani Landden Andersen Watanabe; do
git grep -e 'Copyright.*'$p -l|xargs perl -i -0pe 's|/([*][*])?[*]\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\s*[*]([*][*])?/\n*|\n|gms; s|\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\n*|\n|gms'
done
Yu Watanabe [Tue, 19 Jun 2018 05:17:02 +0000 (14:17 +0900)]
sd-bus: fix typo in comment
Yu Watanabe [Tue, 19 Jun 2018 05:09:13 +0000 (14:09 +0900)]
tree-wide: do not assign values if not used
Chris Lamb [Mon, 18 Jun 2018 20:43:12 +0000 (22:43 +0200)]
Correct a number of trivial typos.
Yu Watanabe [Fri, 15 Jun 2018 05:25:22 +0000 (14:25 +0900)]
man: use systemd-boot instead of sd-boot
Lennart Poettering [Thu, 19 Apr 2018 14:51:04 +0000 (16:51 +0200)]
update NEWS
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jun 2018 07:18:02 +0000 (09:18 +0200)]
NEWS: rework the description of device naming changes
We really should try to be as precise as possible here. Saying
"your interfaces might be renamed" scares the shit of out people,
for obvious reasons. This change only touches some niche cases
fortunately, let's make this clear.
Lennart Poettering [Thu, 14 Jun 2018 13:22:45 +0000 (15:22 +0200)]
NEWS: update contributor list to current git
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jun 2018 10:28:53 +0000 (12:28 +0200)]
Also drop <authorgroup> from autogenerated pages
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jun 2018 10:02:53 +0000 (12:02 +0200)]
man: drop unused <authorgroup> tags from man sources
Docbook styles required those to be present, even though the templates that we
use did not show those names anywhere. But something changed semi-recently (I
would suspect docbook templates, but there was only a minor version bump in
recent years, and the changelog does not suggest anything related), and builds
now work without those entries. Let's drop this dead weight.
Tested with F26-F29, debian unstable.
$ perl -i -0pe 's/\s*<authorgroup>.*<.authorgroup>//gms' man/*xml
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jun 2018 10:47:16 +0000 (12:47 +0200)]
Drop my copyright headers
perl -i -0pe 's/\s*Copyright © .... Zbigniew Jędrzejewski.*?\n/\n/gms' man/*xml
git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/(#\n)?# +Copyright © [0-9, -]+ Zbigniew Jędrzejewski.*?\n//gms'
git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s*\/\*\*\*\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*?\s*\*\*\*\/\s*/\n\n/gms'
git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*//gms'
Lennart Poettering [Tue, 12 Jun 2018 17:00:24 +0000 (19:00 +0200)]
tree-wide: beautify remaining copyright statements
Let's unify an beautify our remaining copyright statements, with a
unicode ©. This means our copyright statements are now always formatted
the same way. Yay.
Lennart Poettering [Tue, 12 Jun 2018 16:23:39 +0000 (18:23 +0200)]
tree-wide: remove Lennart's copyright lines
These lines are generally out-of-date, incomplete and unnecessary. With
SPDX and git repository much more accurate and fine grained information
about licensing and authorship is available, hence let's drop the
per-file copyright notice. Of course, removing copyright lines of others
is problematic, hence this commit only removes my own lines and leaves
all others untouched. It might be nicer if sooner or later those could
go away too, making git the only and accurate source of authorship
information.
Lennart Poettering [Tue, 12 Jun 2018 15:04:27 +0000 (17:04 +0200)]
tree-wide: drop 'This file is part of systemd' blurb
This part of the copyright blurb stems from the GPL use recommendations:
https://www.gnu.org/licenses/gpl-howto.en.html
The concept appears to originate in times where version control was per
file, instead of per tree, and was a way to glue the files together.
Ultimately, we nowadays don't live in that world anymore, and this
information is entirely useless anyway, as people are very welcome to
copy these files into any projects they like, and they shouldn't have to
change bits that are part of our copyright header for that.
hence, let's just get rid of this old cruft, and shorten our codebase a
bit.
Lennart Poettering [Tue, 5 Jun 2018 14:52:22 +0000 (16:52 +0200)]
copy: rework copy_file_atomic() to copy the specified file via O_TMPFILE if possible
Lennart Poettering [Tue, 5 Jun 2018 14:51:31 +0000 (16:51 +0200)]
util: allow mkdtemp_malloc() to be called with NULL pattern
In that case simply place the directory in /tmp.
Yu Watanabe [Thu, 14 Jun 2018 02:26:29 +0000 (11:26 +0900)]
fs-util: introduce fchmod_and_chown()
The new function fchmod_and_chown() is almost same as chmod_and_chown()
except it takes file descriptor instead of file path.
Franck Bui [Wed, 13 Jun 2018 16:15:55 +0000 (18:15 +0200)]
locale-util: on overlayfs FTW_MOUNT causes nftw(3) to not list *any* files
On overlayfs, FTW_MOUNT causes nftw to not list *any* files because the
condition used by glibc to verify that it's on the same mountpoint doesn't work
on overlayfs, see https://bugzilla.suse.com/show_bug.cgi?id=
1096807 for the
details.
However using FTW_MOUNT doesn't seem to be really needed when walking through
the keymap directorie tree. So until the glibc or the kernel is fixed (which
might take some time), let's make localectl works with overlayfs.
There's a small side effect here, by which regular (non-directory) files with
bind mounts will be parsed while they were skipped by the previous logic.
Yu Watanabe [Sun, 10 Jun 2018 08:17:34 +0000 (17:17 +0900)]
timedatectl: add 'show' command to display machine-readable output
Closes #9249.
Zbigniew Jędrzejewski-Szmek [Tue, 5 Jun 2018 09:21:00 +0000 (11:21 +0200)]
test-sizeof: also print float types from ISO/IEC TS 18661-3
Iwan Timmer [Wed, 13 Jun 2018 18:26:24 +0000 (20:26 +0200)]
resolve: rename PrivateDNS to DNSOverTLS
PrivateDNS is not considered a good name for this option, so rename it to DNSOverTLS
Franck Bui [Fri, 1 Jun 2018 16:21:03 +0000 (18:21 +0200)]
pid1: preserve current value of log target across re-{load,execution}
To make debugging easier, this patches allows one to change the log target and
do reload/reexec without modifying configuration permanently, which makes
debugging easier.
Indeed if one changed the log target at runtime (via the bus or via signals),
the change was lost on the next reload/reexecution.
In order to restore back the default value (set via system.conf, environment
variables or any other means ), the empty string in the "LogTarget" property is
now supported as well as sending SIGTRMIN+26 signal.
Franck Bui [Wed, 30 May 2018 15:57:23 +0000 (17:57 +0200)]
pid1: preserve current value of log level across re-{load,execution}
To make debugging easier, this patches allows one to change the log level and
do reload/reexec without modifying configuration permanently, which makes
debugging easier.
Indeed if one changed the log max level at runtime (via the bus or via
signals), the change was lost on the next daemon reload/reexecution.
In order to restore the original value back (set via system.conf, environment
variables or any other means), the empty string in the "LogLevel" property is
now supported as well as sending SIGRTMIN+23 signal.
Zbigniew Jędrzejewski-Szmek [Wed, 13 Jun 2018 08:34:30 +0000 (10:34 +0200)]
test-alloc-util: add casts to bools from p ointers
C++03: "An rvalue of arithmetic, enumeration, pointer, or pointer to member
type can be converted to an rvalue of type bool. A zero value, null pointer
value, or null member pointer value is converted to false; any other value is
converted to true"
C should behave the same because pointers are scalars in C, but let's verify
that.
Zbigniew Jędrzejewski-Szmek [Mon, 11 Jun 2018 14:02:03 +0000 (16:02 +0200)]
tree-wide: drop !! casts to booleans
They are not needed, because anything that is non-zero is converted
to true.
C11:
> 6.3.1.2: When any scalar value is converted to _Bool, the result is 0 if the
> value compares equal to 0; otherwise, the result is 1.
https://stackoverflow.com/questions/
31551888/casting-int-to-bool-in-c-c
Zbigniew Jędrzejewski-Szmek [Mon, 11 Jun 2018 14:07:45 +0000 (16:07 +0200)]
test-alloc-util: add a "test" for bool casts
Just in case ;)
There is no good place, test-alloc-util.c is as good as any, and it's quite
short so far, so let's add this there.
Zbigniew Jędrzejewski-Szmek [Mon, 11 Jun 2018 11:47:25 +0000 (13:47 +0200)]
basic/parse-util: remove unnecessary parentheses
Lennart Poettering [Tue, 12 Jun 2018 13:43:59 +0000 (15:43 +0200)]
terminal-util: make file names in --cat-config output clickable links
Lennart Poettering [Tue, 12 Jun 2018 13:20:05 +0000 (15:20 +0200)]
NEWS: add an example that actually applies
Lennart Poettering [Tue, 12 Jun 2018 13:19:54 +0000 (15:19 +0200)]
NEWS: the tool is called resolvconf, without the inner e
Lennart Poettering [Tue, 12 Jun 2018 13:18:50 +0000 (15:18 +0200)]
NEWS: break lines with emacs once more
Let's follow the line break rules our .dir-locals.el file defines
Lennart Poettering [Tue, 12 Jun 2018 13:18:25 +0000 (15:18 +0200)]
NEWS: some .mailmap work to clean up contributors list
Yu Watanabe [Mon, 4 Jun 2018 12:27:57 +0000 (21:27 +0900)]
conf-parser: simplify conf_parse_path()
Follow-up for
97651797e83d0548aef9f808657d3518d89e5aee.
Yu Watanabe [Wed, 13 Jun 2018 02:16:26 +0000 (11:16 +0900)]
bash-completion/resolvectl: support privatedns command
Yu Watanabe [Wed, 13 Jun 2018 05:52:57 +0000 (14:52 +0900)]
NEWS: add more news