mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 13:47:14 +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')
|
options=('strip')
|
||||||
validpgpkeys=('63CDA1E5D3FC22B998D20DD6327F26951A015CC4' # Lennart Poettering <lennart@poettering.net>
|
validpgpkeys=('63CDA1E5D3FC22B998D20DD6327F26951A015CC4' # Lennart Poettering <lennart@poettering.net>
|
||||||
'5C251B5FC54EB2F80F407AAAC54CA336CFEB557E') # Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
|
'5C251B5FC54EB2F80F407AAAC54CA336CFEB557E') # Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
|
||||||
source=('git+https://github.com/systemd/systemd-stable'
|
source=(# fragment is latest tag for source verification, final merge in prepare()
|
||||||
'git+https://github.com/systemd/systemd'
|
"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'
|
'0001-Use-Arch-Linux-device-access-groups.patch'
|
||||||
'initcpio-hook-udev'
|
'initcpio-hook-udev'
|
||||||
'initcpio-install-systemd'
|
'initcpio-install-systemd'
|
||||||
@ -62,53 +63,27 @@ sha512sums=('SKIP'
|
|||||||
'209b01b044877cc986757fa4009a92ea98f480306c2530075d153203c3cd2b3afccab6aacc1453dee8857991e04270572f1700310705d7a0f4d5bed27fab8c67')
|
'209b01b044877cc986757fa4009a92ea98f480306c2530075d153203c3cd2b3afccab6aacc1453dee8857991e04270572f1700310705d7a0f4d5bed27fab8c67')
|
||||||
|
|
||||||
_backports=(
|
_backports=(
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
_reverts=(
|
_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() {
|
prepare() {
|
||||||
cd "$pkgbase-stable"
|
cd "$pkgbase-stable"
|
||||||
|
|
||||||
|
# add upstream repository for cherry-picking
|
||||||
git remote rm upstream || true
|
git remote rm upstream || true
|
||||||
git remote add -f upstream ../systemd
|
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
|
local _c
|
||||||
for c in "${_backports[@]}"; do
|
for _c in "${_backports[@]}"; do
|
||||||
git cherry-pick -n "$c"
|
git cherry-pick -n "${_c}"
|
||||||
done
|
done
|
||||||
for c in "${_reverts[@]}"; do
|
for _c in "${_reverts[@]}"; do
|
||||||
git revert -n "$c"
|
git revert -n "${_c}"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Replace cdrom/dialout/tape groups with optical/uucp/storage
|
# Replace cdrom/dialout/tape groups with optical/uucp/storage
|
||||||
@ -116,20 +91,15 @@ prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
local version count
|
|
||||||
|
|
||||||
cd "$pkgbase-stable"
|
cd "$pkgbase-stable"
|
||||||
|
|
||||||
# git checkout "$_commit"
|
local _version _count
|
||||||
|
_version="$(git describe --abbrev=0 --tags)"
|
||||||
version="$(git describe --abbrev=0 --tags)"
|
_count="$(git rev-list --count ${_version}..)"
|
||||||
count="$(git rev-list --count ${version}..)"
|
printf '%s.%s' "${_version#v}" "${_count}"
|
||||||
printf '%s.%s' "${version#v}" "${count}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
# _validate_tag || return
|
|
||||||
|
|
||||||
local _timeservers=({0..3}.chakra.pool.ntp.org)
|
local _timeservers=({0..3}.chakra.pool.ntp.org)
|
||||||
|
|
||||||
local _nameservers=(
|
local _nameservers=(
|
||||||
@ -151,9 +121,8 @@ build() {
|
|||||||
-Dgnuefi=true
|
-Dgnuefi=true
|
||||||
-Dima=false
|
-Dima=false
|
||||||
-Dlz4=true
|
-Dlz4=true
|
||||||
-Dqrencode=false
|
|
||||||
-Ddbuspolicydir=/usr/share/dbus-1/system.d
|
-Ddbuspolicydir=/usr/share/dbus-1/system.d
|
||||||
-Ddefault-dnssec=no
|
|
||||||
# TODO(dreisner): consider changing this to unified
|
# TODO(dreisner): consider changing this to unified
|
||||||
-Ddefault-hierarchy=hybrid
|
-Ddefault-hierarchy=hybrid
|
||||||
-Ddefault-kill-user-processes=false
|
-Ddefault-kill-user-processes=false
|
||||||
@ -221,7 +190,7 @@ package_systemd() {
|
|||||||
mv "$pkgdir"/usr/lib/lib{nss,systemd,udev}*.so* libsystemd
|
mv "$pkgdir"/usr/lib/lib{nss,systemd,udev}*.so* libsystemd
|
||||||
|
|
||||||
# files shipped with systemd-resolvconf
|
# 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
|
# avoid a potential conflict with [core]/filesystem
|
||||||
rm "$pkgdir"/usr/share/factory/etc/nsswitch.conf
|
rm "$pkgdir"/usr/share/factory/etc/nsswitch.conf
|
||||||
@ -277,7 +246,7 @@ package_systemd-resolvconf() {
|
|||||||
pkgdesc='systemd resolvconf replacement'
|
pkgdesc='systemd resolvconf replacement'
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
depends=('systemd')
|
depends=('systemd')
|
||||||
provides=('openresolv')
|
provides=('openresolv' 'resolvconf')
|
||||||
conflicts=('openresolv')
|
conflicts=('openresolv')
|
||||||
|
|
||||||
install -d -m0755 "$pkgdir"/usr/bin
|
install -d -m0755 "$pkgdir"/usr/bin
|
||||||
|
Loading…
Reference in New Issue
Block a user