Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / ddm
Commits:
ce3da285 by Felix Yan at 2026-08-26T16:52:25+08:00
upgpkg: 0.3.8-1
- - - - -
3 changed files:
- .SRCINFO
- − 0001-fix-pam-fork-atexit-deadlock.patch
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = ddm
pkgdesc = New Display Manager for DDE
- pkgver = 0.3.7
- pkgrel = 2
+ pkgver = 0.3.8
+ pkgrel = 1
url = https://github.com/linuxdeepin/ddm
arch = x86_64
groups = deepin
@@ -25,9 +25,7 @@ pkgbase = ddm
depends = wayland
depends = xorg-server
depends = xorg-xauth
- source = git+https://github.com/linuxdeepin/ddm.git#tag=0.3.7
- source = 0001-fix-pam-fork-atexit-deadlock.patch
- sha512sums =
36b374347dd8f956b929c6f839fce048188b12c6f3b42777b34f1c60e971ef98b7d3050bc92490d69a9900ed9a40fa634971373ccc0e975c0c4dbfaee1fc9caa
- sha512sums =
188bad970a86ce480e11c39987af16f38e8cd4434d644e2d7f6b6200e306fdd12addca3d39fb84a232837bc334da7c7b8a056ac87d49e9baf676706c9150c158
+ source = git+https://github.com/linuxdeepin/ddm.git#tag=0.3.8
+ sha512sums =
5f3d9d023213b369c0c72821bbeb76b1552718486e889a2fbe4c7e40e6108e96992b30cf5bc51c9bf73d59daa3cb246c391095fd4e5c4b8b8b0b5b2337932a09
pkgname = ddm
=====================================
0001-fix-pam-fork-atexit-deadlock.patch deleted
=====================================
@@ -1,32 +0,0 @@
-diff --git a/src/daemon/Auth.cpp b/src/daemon/Auth.cpp
-index ecb482b..e7ceb09 100644
---- a/src/daemon/Auth.cpp
-+++ b/src/daemon/Auth.cpp
-@@ -14,6 +14,7 @@
- #include "TreelandConnector.h"
-
- #include <pwd.h>
-+#include <pthread.h>
- #include <security/pam_appl.h>
- #include <signal.h>
- #include <unistd.h>
-@@ -319,6 +320,19 @@ namespace DDM {
- env.insert(QStringLiteral("LOGNAME"),
QString::fromLocal8Bit(pw->pw_name));
- }
-
-+ // PAM modules (e.g. pam_gnome_keyring) may fork() internally and
-+ // call exit() instead of _exit() in the fork child, which
triggers
-+ // Qt's atexit cleanup (including libQt6DBus joining its
dispatcher
-+ // thread). After fork(), that thread doesn't exist, so the join
-+ // blocks forever on a futex/semaphore.
-+ //
-+ // Register a pthread_atfork child handler here so that any
-+ // grandchild processes spawned by PAM will have an atexit handler
-+ // that runs _exit() first (LIFO), bypassing Qt's broken cleanup.
-+ pthread_atfork(nullptr, nullptr, []() {
-+ atexit([]() { _exit(0); });
-+ });
-+
- // Open session
- auto sessionEnv = openSessionInternal(env);
- if (!sessionEnv.has_value()) {
=====================================
PKGBUILD
=====================================
@@ -2,8 +2,8 @@
# Contributor: zccrs <[email protected]>
pkgname=ddm
-pkgver=0.3.7
-pkgrel=2
+pkgver=0.3.8
+pkgrel=1
pkgdesc='New Display Manager for DDE'
arch=('x86_64')
url="https://github.com/linuxdeepin/ddm"
@@ -28,14 +28,20 @@ makedepends=(git
python-docutils
treeland-protocols
ninja)
-source=("git+https://github.com/linuxdeepin/ddm.git#tag=$pkgver"
- "0001-fix-pam-fork-atexit-deadlock.patch")
-sha512sums=('36b374347dd8f956b929c6f839fce048188b12c6f3b42777b34f1c60e971ef98b7d3050bc92490d69a9900ed9a40fa634971373ccc0e975c0c4dbfaee1fc9caa'
-
'188bad970a86ce480e11c39987af16f38e8cd4434d644e2d7f6b6200e306fdd12addca3d39fb84a232837bc334da7c7b8a056ac87d49e9baf676706c9150c158')
+source=("git+https://github.com/linuxdeepin/ddm.git#tag=$pkgver")
+sha512sums=('5f3d9d023213b369c0c72821bbeb76b1552718486e889a2fbe4c7e40e6108e96992b30cf5bc51c9bf73d59daa3cb246c391095fd4e5c4b8b8b0b5b2337932a09')
prepare() {
cd ddm
- patch -Np1 < "${srcdir}/0001-fix-pam-fork-atexit-deadlock.patch"
+ # Fix PAM fork children hanging in Qt atexit cleanup:
+ # https://github.com/linuxdeepin/ddm/pull/88
+ git cherry-pick -n 25d277f84837537446e6b42363a53ef20b32795e
+
+ # Use Arch PAM stack names for the non-Debian autologin service.
+ sed -i \
+ -e 's|@include common-account|account include system-login|' \
+ -e 's|@include common-session|session include system-login|' \
+ services/ddm-autologin.pam
}
build() {
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/ddm/-/commit/ce3da2850aa15329c96fc113e54d65f66afdc1ba
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/ddm/-/commit/ce3da2850aa15329c96fc113e54d65f66afdc1ba
You're receiving this email because of your account on gitlab.archlinux.org.
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications
| Help: https://gitlab.archlinux.org/help