@@ -19,13 +19,14 @@ pkgname=('systemd-selinux'
19
19
' systemd-libs-selinux'
20
20
' systemd-resolvconf-selinux'
21
21
' systemd-sysvcompat-selinux'
22
+ ' systemd-tests-selinux'
22
23
' systemd-ukify-selinux' )
23
24
_tag=' 257.1'
24
25
# 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
29
30
arch=(' x86_64' ' aarch64' )
30
31
license=(' LGPL-2.1-or-later' )
31
32
url=' https://www.github.com/systemd/systemd'
@@ -43,7 +44,9 @@ validpgpkeys=('63CDA1E5D3FC22B998D20DD6327F26951A015CC4' # Lennart Poettering <
43
44
' A9EA9081724FFAE0484C35A1A81CEA22BC8C7E2E' # Luca Boccassi <[email protected] >
44
45
' 9A774DB5DB996C154EBBFBFDA0099A18E29326E1' # Yu Watanabe <[email protected] >
45
46
' 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"
47
50
' 0001-Use-Arch-Linux-device-access-groups.patch'
48
51
# bootloader files
49
52
' arch.conf'
@@ -64,7 +67,7 @@ source=("git+https://github.com/systemd/systemd#tag=v${_tag}?signed"
64
67
' 30-systemd-tmpfiles.hook'
65
68
' 30-systemd-udev-reload.hook'
66
69
' 30-systemd-update.hook' )
67
- sha512sums=(' 53b14cfadf301a44fdfcaa2fe4b9d2371c85581544093b88e5afcee4e45c5bd8668aaae9dd6663363c24f3b610f9b0d6eb61f00df71d588bce8f6264424203e4 '
70
+ sha512sums=(' 60e09576738abf1d328d06daae8981780a9a4facc5b09e2a3ae24b8461e23d3be2a192a2261ec0e85f004a89eb77e76c4483b268f3d4d918146baf5b201fa49d '
68
71
' 78065bde708118b7d6e4ed492e096c763e4679a1c54bd98750d5d609d8cc2f1373023f308880f14fc923ae7f9fea34824917ef884c0f996b1f43d08ef022c0fb'
69
72
' 61032d29241b74a0f28446f8cf1be0e8ec46d0847a61dadb2a4f096e8686d5f57fe5c72bcf386003f6520bc4b5856c32d63bf3efe7eb0bc0deefc9f68159e648'
70
73
' c416e2121df83067376bcaacb58c05b01990f4614ad9de657d74b6da3efa441af251d13bf21e3f0f71ddcb4c9ea658b81da3d915667dc5c309c87ec32a1cb5a5'
@@ -84,30 +87,18 @@ sha512sums=('53b14cfadf301a44fdfcaa2fe4b9d2371c85581544093b88e5afcee4e45c5bd8668
84
87
' 825b9dd0167c072ba62cabe0677e7cd20f2b4b850328022540f122689d8b25315005fa98ce867cf6e7460b2b26df16b88bb3b5c9ebf721746dce4e2271af7b97' )
85
88
86
89
_meson_version=" ${pkgver} -${pkgrel} "
87
- _meson_vcs_tag=' false'
88
- _meson_mode=' release'
89
- _meson_compile=()
90
- _meson_install=()
91
90
_systemd_src_dir=" ${pkgbase/ -selinux} "
92
91
93
92
if (( _systemd_UPSTREAM)) ; then
94
93
_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
103
94
fi
104
95
105
96
# Some heuristics to detect that we are building on OBS, with no network access. Skip
106
97
# git verification, and use the OBS-provided tarball instead. The sources will be
107
98
# unpacked by OBS in $package-$version/
108
99
# SELinux package maintenance note: ignore this, as skipping any form of validation is dangerous
109
100
# 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) "
111
102
# sha512sums[0]='SKIP'
112
103
# _systemd_src_dir="${pkgbase}-${pkgver}"
113
104
# fi
@@ -154,9 +145,9 @@ build() {
154
145
155
146
local _meson_options=(
156
147
-Dversion-tag=" ${_meson_version} -arch"
157
- -Dvcs-tag=" ${_meson_vcs_tag} "
148
+ -Dvcs-tag=false
158
149
-Dshared-lib-tag=" ${_meson_version} "
159
- -Dmode=" ${_meson_mode} "
150
+ -Dmode=release
160
151
161
152
-Dapparmor=disabled
162
153
-Dbootloader=enabled
@@ -199,7 +190,7 @@ build() {
199
190
200
191
arch-meson " ${_systemd_src_dir} " build " ${_meson_options[@]} " $MESON_EXTRA_CONFIGURE_OPTIONS
201
192
202
- meson compile -C build " ${_meson_compile[@]} "
193
+ meson compile -C build
203
194
}
204
195
205
196
check () {
@@ -258,7 +249,7 @@ package_systemd-selinux() {
258
249
etc/udev/udev.conf)
259
250
install=systemd.install
260
251
261
- meson install -C build --no-rebuild --destdir " $pkgdir " " ${_meson_install[@]} "
252
+ meson install -C build --no-rebuild --destdir " $pkgdir " --quiet
262
253
263
254
# we'll create this on installation
264
255
rmdir " $pkgdir " /var/log/journal/remote
0 commit comments