Skip to content

Commit 510af46

Browse files
committed
2 parents 84a5884 + c682d93 commit 510af46

File tree

3 files changed

+44
-41
lines changed

3 files changed

+44
-41
lines changed

systemd-selinux/.SRCINFO

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pkgbase = systemd-selinux
2-
pkgver = 257.1
3-
pkgrel = 1
2+
pkgver = 257.2
3+
pkgrel = 2
44
url = https://www.github.com/systemd/systemd
55
arch = x86_64
66
arch = aarch64
@@ -57,7 +57,7 @@ pkgbase = systemd-selinux
5757
makedepends = linux-headers
5858
makedepends = libselinux
5959
conflicts = mkinitcpio<38-1
60-
source = git+https://github.com/systemd/systemd#tag=v257.1?signed
60+
source = git+https://github.com/systemd/systemd#tag=v257.2?signed
6161
source = 0001-Use-Arch-Linux-device-access-groups.patch
6262
source = arch.conf
6363
source = loader.conf
@@ -79,7 +79,7 @@ pkgbase = systemd-selinux
7979
validpgpkeys = A9EA9081724FFAE0484C35A1A81CEA22BC8C7E2E
8080
validpgpkeys = 9A774DB5DB996C154EBBFBFDA0099A18E29326E1
8181
validpgpkeys = 5C251B5FC54EB2F80F407AAAC54CA336CFEB557E
82-
sha512sums = 53b14cfadf301a44fdfcaa2fe4b9d2371c85581544093b88e5afcee4e45c5bd8668aaae9dd6663363c24f3b610f9b0d6eb61f00df71d588bce8f6264424203e4
82+
sha512sums = 60e09576738abf1d328d06daae8981780a9a4facc5b09e2a3ae24b8461e23d3be2a192a2261ec0e85f004a89eb77e76c4483b268f3d4d918146baf5b201fa49d
8383
sha512sums = 78065bde708118b7d6e4ed492e096c763e4679a1c54bd98750d5d609d8cc2f1373023f308880f14fc923ae7f9fea34824917ef884c0f996b1f43d08ef022c0fb
8484
sha512sums = 61032d29241b74a0f28446f8cf1be0e8ec46d0847a61dadb2a4f096e8686d5f57fe5c72bcf386003f6520bc4b5856c32d63bf3efe7eb0bc0deefc9f68159e648
8585
sha512sums = c416e2121df83067376bcaacb58c05b01990f4614ad9de657d74b6da3efa441af251d13bf21e3f0f71ddcb4c9ea658b81da3d915667dc5c309c87ec32a1cb5a5
@@ -105,7 +105,7 @@ pkgname = systemd-selinux
105105
license = CC0-1.0
106106
license = GPL-2.0-or-later
107107
license = MIT-0
108-
depends = systemd-libs-selinux=257.1
108+
depends = systemd-libs-selinux=257.2
109109
depends = acl
110110
depends = libacl.so
111111
depends = bash
@@ -153,9 +153,9 @@ pkgname = systemd-selinux
153153
optdepends = libp11-kit: support PKCS#11
154154
optdepends = tpm2-tss: unlocking LUKS2 volumes with TPM2
155155
provides = nss-myhostname
156-
provides = systemd-tools=257.1
157-
provides = udev=257.1
158-
provides = systemd=257.1-1
156+
provides = systemd-tools=257.2
157+
provides = udev=257.2
158+
provides = systemd=257.2-2
159159
conflicts = nss-myhostname
160160
conflicts = systemd-tools
161161
conflicts = udev
@@ -196,37 +196,42 @@ pkgname = systemd-libs-selinux
196196
provides = libsystemd.so
197197
provides = libudev.so
198198
provides = libsystemd-selinux
199-
provides = systemd-libs=257.1-1
199+
provides = systemd-libs=257.2-2
200200
conflicts = libsystemd
201201
conflicts = libsystemd-selinux
202202
conflicts = systemd-libs
203203
replaces = libsystemd-selinux
204204

205205
pkgname = systemd-resolvconf-selinux
206206
pkgdesc = systemd resolvconf replacement with SELinux support (for use with systemd-resolved)
207-
depends = systemd-selinux=257.1
207+
depends = systemd-selinux=257.2
208208
provides = openresolv
209209
provides = resolvconf
210-
provides = systemd-resolvconf=257.1-1
210+
provides = systemd-resolvconf=257.2-2
211211
conflicts = resolvconf
212-
conflicts = systemd-resolvconf=257.1-1
212+
conflicts = systemd-resolvconf=257.2-2
213213

214214
pkgname = systemd-sysvcompat-selinux
215215
pkgdesc = sysvinit compat for systemd with SELinux support
216-
depends = systemd-selinux=257.1
217-
provides = systemd-sysvcompat=257.1-1
218-
provides = selinux-systemd-sysvcompat=257.1-1
216+
depends = systemd-selinux=257.2
217+
provides = systemd-sysvcompat=257.2-2
218+
provides = selinux-systemd-sysvcompat=257.2-2
219219
conflicts = sysvinit
220220
conflicts = systemd-sysvcompat
221221
conflicts = selinux-systemd-sysvcompat
222222

223+
pkgname = systemd-tests-selinux
224+
pkgdesc = systemd tests with SELinux support
225+
depends = systemd-selinux=257.2
226+
provides = systemd-tests=257.2-2
227+
223228
pkgname = systemd-ukify-selinux
224229
pkgdesc = Combine kernel and initrd into a signed Unified Kernel Image with SELinux support
225-
depends = systemd-selinux=257.1
230+
depends = systemd-selinux=257.2
226231
depends = binutils
227232
depends = python-cryptography
228233
depends = python-pefile
229234
optdepends = python-pillow: Show the size of splash image
230235
optdepends = sbsigntools: Sign the embedded kernel
231236
provides = ukify
232-
provides = systemd-ukify=257.1-1
237+
provides = systemd-ukify=257.2-2

systemd-selinux/PKGBUILD

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ pkgname=('systemd-selinux'
1919
'systemd-libs-selinux'
2020
'systemd-resolvconf-selinux'
2121
'systemd-sysvcompat-selinux'
22+
'systemd-tests-selinux'
2223
'systemd-ukify-selinux')
2324
_tag='257.1'
2425
# Upstream versioning is incompatible with pacman's version comparisons, one
25-
# way or another. So we replace dashes and tildes with the empty string to
26-
# make sure pacman's version comparing does the right thing for rc versions:
27-
pkgver="${_tag/[-~]/}"
28-
pkgrel=1
26+
# way or another. We use proper version for pacman here (no dash for rc
27+
# release!), and change in source array below.
28+
pkgver='257.2'
29+
pkgrel=2
2930
arch=('x86_64' 'aarch64')
3031
license=('LGPL-2.1-or-later')
3132
url='https://www.github.com/systemd/systemd'
@@ -43,7 +44,9 @@ validpgpkeys=('63CDA1E5D3FC22B998D20DD6327F26951A015CC4' # Lennart Poettering <
4344
'A9EA9081724FFAE0484C35A1A81CEA22BC8C7E2E' # Luca Boccassi <[email protected]>
4445
'9A774DB5DB996C154EBBFBFDA0099A18E29326E1' # Yu Watanabe <[email protected]>
4546
'5C251B5FC54EB2F80F407AAAC54CA336CFEB557E') # Zbigniew Jędrzejewski-Szmek <[email protected]>
46-
source=("git+https://github.com/systemd/systemd#tag=v${_tag}?signed"
47+
# For pacman's version comparisons $pkgver is missing the dash that would be
48+
# in an upstream rc version so add it back when fetching the tag from github.
49+
source=("git+https://github.com/systemd/systemd#tag=v${pkgver/rc/-rc}?signed"
4750
'0001-Use-Arch-Linux-device-access-groups.patch'
4851
# bootloader files
4952
'arch.conf'
@@ -64,7 +67,7 @@ source=("git+https://github.com/systemd/systemd#tag=v${_tag}?signed"
6467
'30-systemd-tmpfiles.hook'
6568
'30-systemd-udev-reload.hook'
6669
'30-systemd-update.hook')
67-
sha512sums=('53b14cfadf301a44fdfcaa2fe4b9d2371c85581544093b88e5afcee4e45c5bd8668aaae9dd6663363c24f3b610f9b0d6eb61f00df71d588bce8f6264424203e4'
70+
sha512sums=('60e09576738abf1d328d06daae8981780a9a4facc5b09e2a3ae24b8461e23d3be2a192a2261ec0e85f004a89eb77e76c4483b268f3d4d918146baf5b201fa49d'
6871
'78065bde708118b7d6e4ed492e096c763e4679a1c54bd98750d5d609d8cc2f1373023f308880f14fc923ae7f9fea34824917ef884c0f996b1f43d08ef022c0fb'
6972
'61032d29241b74a0f28446f8cf1be0e8ec46d0847a61dadb2a4f096e8686d5f57fe5c72bcf386003f6520bc4b5856c32d63bf3efe7eb0bc0deefc9f68159e648'
7073
'c416e2121df83067376bcaacb58c05b01990f4614ad9de657d74b6da3efa441af251d13bf21e3f0f71ddcb4c9ea658b81da3d915667dc5c309c87ec32a1cb5a5'
@@ -84,30 +87,18 @@ sha512sums=('53b14cfadf301a44fdfcaa2fe4b9d2371c85581544093b88e5afcee4e45c5bd8668
8487
'825b9dd0167c072ba62cabe0677e7cd20f2b4b850328022540f122689d8b25315005fa98ce867cf6e7460b2b26df16b88bb3b5c9ebf721746dce4e2271af7b97')
8588

8689
_meson_version="${pkgver}-${pkgrel}"
87-
_meson_vcs_tag='false'
88-
_meson_mode='release'
89-
_meson_compile=()
90-
_meson_install=()
9190
_systemd_src_dir="${pkgbase/-selinux}"
9291

9392
if ((_systemd_UPSTREAM)); then
9493
_meson_version="${pkgver}"
95-
_meson_vcs_tag='true'
96-
_meson_mode='developer'
97-
pkgname+=('systemd-tests')
98-
if ((_systemd_QUIET)); then
99-
_meson_install=('--quiet')
100-
else
101-
_meson_compile=('--verbose')
102-
fi
10394
fi
10495

10596
# Some heuristics to detect that we are building on OBS, with no network access. Skip
10697
# git verification, and use the OBS-provided tarball instead. The sources will be
10798
# unpacked by OBS in $package-$version/
10899
# SELinux package maintenance note: ignore this, as skipping any form of validation is dangerous
109100
#if [ -f /.build/build.dist ] && [ -d /usr/src/packages/SOURCES ] && [ -d /usr/src/packages/BUILD ] && [ -d /usr/src/packages/OTHER ]; then
110-
# source[0]="${pkgbase}-${pkgver}.tar.gz"
101+
# source[0]="$(find . -name "${pkgbase}-${pkgver}.tar.*" -print -quit)"
111102
# sha512sums[0]='SKIP'
112103
# _systemd_src_dir="${pkgbase}-${pkgver}"
113104
#fi
@@ -154,9 +145,9 @@ build() {
154145

155146
local _meson_options=(
156147
-Dversion-tag="${_meson_version}-arch"
157-
-Dvcs-tag="${_meson_vcs_tag}"
148+
-Dvcs-tag=false
158149
-Dshared-lib-tag="${_meson_version}"
159-
-Dmode="${_meson_mode}"
150+
-Dmode=release
160151

161152
-Dapparmor=disabled
162153
-Dbootloader=enabled
@@ -199,7 +190,7 @@ build() {
199190

200191
arch-meson "${_systemd_src_dir}" build "${_meson_options[@]}" $MESON_EXTRA_CONFIGURE_OPTIONS
201192

202-
meson compile -C build "${_meson_compile[@]}"
193+
meson compile -C build
203194
}
204195

205196
check() {
@@ -258,7 +249,7 @@ package_systemd-selinux() {
258249
etc/udev/udev.conf)
259250
install=systemd.install
260251

261-
meson install -C build --no-rebuild --destdir "$pkgdir" "${_meson_install[@]}"
252+
meson install -C build --no-rebuild --destdir "$pkgdir" --quiet
262253

263254
# we'll create this on installation
264255
rmdir "$pkgdir"/var/log/journal/remote

systemd-selinux/systemd.install

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ sd_booted() {
44
[[ -d run/systemd/system && ! -L run/systemd/system ]]
55
}
66

7+
services_needing_restart() {
8+
systemctl list-units --state=running --plain --quiet 'systemd-*.service' \
9+
| cut -d' ' -f1 \
10+
| grep -Ev '^systemd-(logind|networkd)\.service$' \
11+
| grep -Ev '^systemd-.*@.*\.service$'
12+
}
13+
714
post_common() {
815
systemd-sysusers
916
journalctl --update-catalog
@@ -40,7 +47,7 @@ post_upgrade() {
4047
systemctl reload 'user@*.service'
4148

4249
# mark systemd services for later restart
43-
for UNIT in $(systemctl list-units --state=running --plain --quiet 'systemd-*.service' | cut -d' ' -f1 | grep -Ev '^systemd-(logind|networkd)\.service$'); do
50+
for UNIT in $(services_needing_restart); do
4451
systemctl set-property --runtime "${UNIT}" Markers=needs-restart
4552
done
4653
fi

0 commit comments

Comments
 (0)