net-misc/networkmanager: create /run/NetworkManager earlier
authorMart Raudsepp <leio@gentoo.org>
Sun, 26 Apr 2020 07:51:21 +0000 (10:51 +0300)
committerMart Raudsepp <leio@gentoo.org>
Sun, 26 Apr 2020 08:09:05 +0000 (11:09 +0300)
commitb509a4872188323ae2f0ee5f5bd5e580f48f3a53
tree5f3398fdd0d7f21d871a26d5d63e2ecafdeb8e61
parent424b7e44dcaae3642e57c65e9ad5dbafa94d42a0
net-misc/networkmanager: create /run/NetworkManager earlier

NetworkManager itself creates /run/NetworkManager very early on in
its main(), but the OpenRC init file also wants to put the
start-stop-daemon pidfile in it.
It seems to have been working well enough for most people
regardless, but there is still a very real race condition and
bug here, which appears to get triggered for more users with
the p.masked networkmanager versions as well.
Hopefully fix it by creating the directory in start_pre() like other
packages making use of a subdirectory pidfile do, with the same
permissions as NetworkManager itself will/would create it.

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
net-misc/networkmanager/files/init.d.NetworkManager-r2 [new file with mode: 0644]
net-misc/networkmanager/networkmanager-1.18.6.ebuild
net-misc/networkmanager/networkmanager-1.22.10-r11.ebuild [moved from net-misc/networkmanager/networkmanager-1.22.10-r10.ebuild with 99% similarity]