mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 11:07:13 +08:00
fix systemd 239.0 [skip-ci]
This commit is contained in:
parent
ec2ee21096
commit
bb9ae6ecb6
@ -16,8 +16,9 @@ makedepends=('acl' 'cryptsetup' 'docbook-xsl' 'gperf' 'lz4' 'xz' 'pam' 'libelf'
|
||||
options=('strip')
|
||||
validpgpkeys=('63CDA1E5D3FC22B998D20DD6327F26951A015CC4' # Lennart Poettering <lennart@poettering.net>
|
||||
'5C251B5FC54EB2F80F407AAAC54CA336CFEB557E') # Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
|
||||
source=('git+https://github.com/systemd/systemd-stable'
|
||||
'git+https://github.com/systemd/systemd'
|
||||
source=(# fragment is latest tag for source verification, final merge in prepare()
|
||||
"git+https://github.com/systemd/systemd-stable#tag=v${pkgver%.*}"
|
||||
"git+https://github.com/systemd/systemd#tag=v${pkgver%.*}"
|
||||
'0001-Use-Arch-Linux-device-access-groups.patch'
|
||||
'initcpio-hook-udev'
|
||||
'initcpio-install-systemd'
|
||||
@ -62,53 +63,27 @@ sha512sums=('SKIP'
|
||||
'209b01b044877cc986757fa4009a92ea98f480306c2530075d153203c3cd2b3afccab6aacc1453dee8857991e04270572f1700310705d7a0f4d5bed27fab8c67')
|
||||
|
||||
_backports=(
|
||||
|
||||
)
|
||||
|
||||
_reverts=(
|
||||
)
|
||||
|
||||
_validate_tag() (
|
||||
local success fingerprint trusted status tag=v${pkgver%.*}
|
||||
|
||||
cd "$srcdir/$pkgbase-stable"
|
||||
parse_gpg_statusfile /dev/stdin < <(git verify-tag --raw "$tag" 2>&1)
|
||||
|
||||
if (( ! success )); then
|
||||
error 'failed to validate tag %s\n' "$tag"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if ! in_array "$fingerprint" "${validpgpkeys[@]}" && (( ! trusted )); then
|
||||
error 'unknown or untrusted public key: %s\n' "$fingerprint"
|
||||
return 1
|
||||
fi
|
||||
|
||||
case $status in
|
||||
'expired')
|
||||
warning 'the signature has expired'
|
||||
;;
|
||||
'expiredkey')
|
||||
warning 'the key has expired'
|
||||
;;
|
||||
esac
|
||||
|
||||
return 0
|
||||
)
|
||||
|
||||
prepare() {
|
||||
cd "$pkgbase-stable"
|
||||
|
||||
# add upstream repository for cherry-picking
|
||||
git remote rm upstream || true
|
||||
git remote add -f upstream ../systemd
|
||||
git checkout "$_commit"
|
||||
# merge the latest stable commit (fast-foward only to make sure
|
||||
# the verified tag is in)
|
||||
git merge --ff-only "${_commit}"
|
||||
|
||||
local c
|
||||
for c in "${_backports[@]}"; do
|
||||
git cherry-pick -n "$c"
|
||||
local _c
|
||||
for _c in "${_backports[@]}"; do
|
||||
git cherry-pick -n "${_c}"
|
||||
done
|
||||
for c in "${_reverts[@]}"; do
|
||||
git revert -n "$c"
|
||||
for _c in "${_reverts[@]}"; do
|
||||
git revert -n "${_c}"
|
||||
done
|
||||
|
||||
# Replace cdrom/dialout/tape groups with optical/uucp/storage
|
||||
@ -116,20 +91,15 @@ prepare() {
|
||||
}
|
||||
|
||||
pkgver() {
|
||||
local version count
|
||||
|
||||
cd "$pkgbase-stable"
|
||||
|
||||
# git checkout "$_commit"
|
||||
|
||||
version="$(git describe --abbrev=0 --tags)"
|
||||
count="$(git rev-list --count ${version}..)"
|
||||
printf '%s.%s' "${version#v}" "${count}"
|
||||
local _version _count
|
||||
_version="$(git describe --abbrev=0 --tags)"
|
||||
_count="$(git rev-list --count ${_version}..)"
|
||||
printf '%s.%s' "${_version#v}" "${_count}"
|
||||
}
|
||||
|
||||
build() {
|
||||
# _validate_tag || return
|
||||
|
||||
local _timeservers=({0..3}.chakra.pool.ntp.org)
|
||||
|
||||
local _nameservers=(
|
||||
@ -151,9 +121,8 @@ build() {
|
||||
-Dgnuefi=true
|
||||
-Dima=false
|
||||
-Dlz4=true
|
||||
-Dqrencode=false
|
||||
-Ddbuspolicydir=/usr/share/dbus-1/system.d
|
||||
-Ddefault-dnssec=no
|
||||
|
||||
# TODO(dreisner): consider changing this to unified
|
||||
-Ddefault-hierarchy=hybrid
|
||||
-Ddefault-kill-user-processes=false
|
||||
@ -221,7 +190,7 @@ package_systemd() {
|
||||
mv "$pkgdir"/usr/lib/lib{nss,systemd,udev}*.so* libsystemd
|
||||
|
||||
# files shipped with systemd-resolvconf
|
||||
rm "$pkgdir"/usr/{bin/resolvconf,share/man/man1/resolvconf.1}
|
||||
#rm "$pkgdir"/usr/{bin/resolvconf,share/man/man1/resolvconf.1}
|
||||
|
||||
# avoid a potential conflict with [core]/filesystem
|
||||
rm "$pkgdir"/usr/share/factory/etc/nsswitch.conf
|
||||
@ -277,7 +246,7 @@ package_systemd-resolvconf() {
|
||||
pkgdesc='systemd resolvconf replacement'
|
||||
license=('GPL2')
|
||||
depends=('systemd')
|
||||
provides=('openresolv')
|
||||
provides=('openresolv' 'resolvconf')
|
||||
conflicts=('openresolv')
|
||||
|
||||
install -d -m0755 "$pkgdir"/usr/bin
|
||||
|
Loading…
Reference in New Issue
Block a user