Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package uwsm for openSUSE:Factory checked in at 2026-12-05 19:11:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/uwsm (Old) and /work/SRC/openSUSE:Factory/.uwsm.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "uwsm" Sat Dec 5 19:11:24 2026 rev:12 rq:1403187 version:0.27.3 Changes: -------- --- /work/SRC/openSUSE:Factory/uwsm/uwsm.changes 2026-11-10 14:42:01.880614925 +0100 +++ /work/SRC/openSUSE:Factory/.uwsm.new.1340718/uwsm.changes 2026-12-05 19:14:14.577898495 +0100 @@ -1,0 +2,12 @@ +Fri Dec 04 22:11:14 UTC 2026 - Alexey Kolos <[email protected]> + +- Update to version 0.27.3 +- Fixes: + * Logic bug when setting __LOAD_PROFILE__ + * Better info on forked systemctl + * Work around foreground request issues + * Hide printf errors trying to write into closed descriptors when session is being terminated + * Kmscon handling is needed in both kms and fb modes + * Guard kmscon DRM master handling + +------------------------------------------------------------------- Old: ---- uwsm-0.27.2.obscpio New: ---- uwsm-0.27.3.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ uwsm.spec ++++++ --- /var/tmp/diff_new_pack.YaD6y4/_old 2026-12-05 19:14:15.433934626 +0100 +++ /var/tmp/diff_new_pack.YaD6y4/_new 2026-12-05 19:14:15.438934837 +0100 @@ -17,7 +17,7 @@ Name: uwsm -Version: 0.27.2 +Version: 0.27.3 Release: 0 Summary: Universal Wayland Session Manager License: MIT ++++++ _service ++++++ --- /var/tmp/diff_new_pack.YaD6y4/_old 2026-12-05 19:14:15.470936188 +0100 +++ /var/tmp/diff_new_pack.YaD6y4/_new 2026-12-05 19:14:15.473936315 +0100 @@ -2,7 +2,7 @@ <service name="obs_scm" mode="manual"> <param name="url">https://github.com/Vladimir-csp/uwsm.git</param> <param name="scm">git</param> - <param name="revision">v0.27.2</param> + <param name="revision">v0.27.3</param> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> <param name="changesgenerate">enable</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.YaD6y4/_old 2026-12-05 19:14:15.496937286 +0100 +++ /var/tmp/diff_new_pack.YaD6y4/_new 2026-12-05 19:14:15.500937454 +0100 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/Vladimir-csp/uwsm.git</param> - <param name="changesrevision">05da94b3da620ebd41432eba5eac6c81354e30fa</param></service></servicedata> + <param name="changesrevision">67eda20a4821b2351e0abe929480e9101e751aca</param></service></servicedata> (No newline at EOF) ++++++ uwsm-0.27.2.obscpio -> uwsm-0.27.3.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/uwsm-0.27.2/debian/changelog new/uwsm-0.27.3/debian/changelog --- old/uwsm-0.27.2/debian/changelog 2026-11-09 21:23:23.000000000 +0100 +++ new/uwsm-0.27.3/debian/changelog 2026-12-04 19:30:01.000000000 +0100 @@ -1,5 +1,5 @@ -uwsm (0.27.2-1~local0) UNRELEASED; urgency=medium +uwsm (0.27.3-1~local0) UNRELEASED; urgency=medium * Upstream build. - -- Vladimir-csp <[email protected]> Mon, 09 Nov 2026 23:23:23 +0300 + -- Vladimir-csp <[email protected]> Fri, 04 Dec 2026 21:30:01 +0300 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/uwsm-0.27.2/uwsm/main.py new/uwsm-0.27.3/uwsm/main.py --- old/uwsm-0.27.2/uwsm/main.py 2026-11-09 21:23:23.000000000 +0100 +++ new/uwsm-0.27.3/uwsm/main.py 2026-12-04 19:30:01.000000000 +0100 @@ -2775,7 +2775,7 @@ __WM_DESKTOP_NAMES__={shlex.quote(':'.join(CompGlobals.desktop_names))} __WM_FIRST_DESKTOP_NAME__={shlex.quote(CompGlobals.desktop_names[0])} __WM_DESKTOP_NAMES_EXCLUSIVE__={'true' if CompGlobals.cli_desktop_names_exclusive else 'false'} - __LOAD_PROFILE__={'true' if have_env_login else 'false'} + __LOAD_PROFILE__={'false' if have_env_login else 'true'} __OIFS__=" \t\n" # random mark for environment dump at the end __RANDOM_MARK__={random_mark} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/uwsm-0.27.2/uwsm-libexec/signal-handler.sh new/uwsm-0.27.3/uwsm-libexec/signal-handler.sh --- old/uwsm-0.27.2/uwsm-libexec/signal-handler.sh 2026-11-09 21:23:23.000000000 +0100 +++ new/uwsm-0.27.3/uwsm-libexec/signal-handler.sh 2026-12-04 19:30:01.000000000 +0100 @@ -2,41 +2,35 @@ # shellcheck disable=SC2059 printf_out() { - printf "$@" + printf "$@" 2> /dev/null [ -z "$UWSM_SH_NO_STDOUT" ] || return - printf "$@" >&3 + printf "$@" >&3 2> /dev/null } # shellcheck disable=SC2059 printf_err() { - printf "$@" >&2 - printf "$@" >&4 + printf "$@" >&2 2> /dev/null + printf "$@" >&4 2> /dev/null } start() { printf_out '%s\n' "Starting ${UNIT}..." - case "${TERM_SESSION_TYPE:-}" in - kms) - printf_out '%s\n' "Requesting kmscon background." - # shellcheck disable=SC1003 - case "${TERM_PROGRAM:-}" in - tmux) printf '%b' '\033Ptmux;\033\033]setBackground\a\033\\' >&3 ;; - *) printf '\033]setBackground\a' >&3 ;; - esac - ;; - esac + kmscon_background { trap '' TERM HUP INT exec systemctl --user start --wait "${UNIT}" } & STARTPID=$! - printf_out '%s\n' "Forked systemctl, PID ${STARTPID}." + printf_out '%s\n' "Forked PID ${STARTPID}: systemctl --user start --wait ${UNIT}" } # shellcheck disable=SC2329 stop() { trap '' TERM HUP INT - printf_out '%s\n' "Received SIG${1}, stopping ${UNIT}..." + SIGNAL=$1 + printf_out '%s\n' "Received SIG${SIGNAL}, stopping ${UNIT}..." + # request foreground right away before systemd takes stdout away. + kmscon_foreground systemctl --user stop "${UNIT}" & finish } @@ -44,29 +38,98 @@ finish() { wait "${STARTPID}" RC=$? - case "${TERM_SESSION_TYPE:-}" in - kms) - printf_out '%s\n' "Requesting kmscon foreground." - # shellcheck disable=SC1003 - case "${TERM_PROGRAM:-}" in - tmux) printf '%b' '\033Ptmux;\033\033]setForeground\a\033\\' >&3 ;; - *) printf '\033]setForeground\a' >&3 ;; - esac - ;; - esac + # request kmscon foreground on normal exit + [ -n "$SIGNAL" ] || kmscon_foreground case "$RC" in - 0) printf_out '%s\n' "PID ${STARTPID} exited with RC ${RC}" ;; - *) printf_err '%s\n' "PID ${STARTPID} exited with RC ${RC}" ;; + 0) printf_out '%s\n' "PID ${STARTPID} exited with RC ${RC}: systemctl --user start --wait ${UNIT}" ;; + *) printf_err '%s\n' "PID ${STARTPID} exited with RC ${RC}: systemctl --user start --wait ${UNIT}" ;; esac exit "$RC" } +# kmscon_* functions partially based on kmscon-launch-gui script +kmscon_background() { + # do nothing if we are not on kmscon + case "${TERM_SESSION_TYPE:-}" in + kms | fb) true ;; + *) return 0 ;; + esac + # Store current tty number + kms_tty= + active_tty_file=/sys/class/tty/tty0/active + if [ -f "$active_tty_file" ]; then + read -r kms_tty < "$active_tty_file" + fi + printf_out '%s\n' "Requesting kmscon background." + # shellcheck disable=SC1003 + case "${TERM_PROGRAM:-}" in + tmux) printf '%b' '\033Ptmux;\033\033]setBackground\a\033\\' >&3 ;; + *) printf '\033]setBackground\a' >&3 ;; + esac + # pause to allow kmscon to take DRM master + { sleep 0.2 || /bin/sleep 0.2 || sleep 1; } 2> /dev/null +} + +kmscon_wait_tty() { + # return if launch tty was not saved + [ -n "${kms_tty:-}" ] || return 0 + read -r check_kms_tty < "$active_tty_file" + # return if on same tty + [ "${check_kms_tty}" != "${kms_tty}" ] || return 0 + wait=5 + # If the current tty has changed, wait 5 seconds until the user switches back. + # Waiting introduces three bad options: + # - drop signal traps, be terminated, leave kmscon inoperable + # - wait long/forever and thus hold session open, potentially hindering shutdown + # - send setForeground early, get temporarily inoperable kmscon with log spam + # until tty switch in/out/in (least bad option). + # if terminated, trap will skip this and request foreground right away + # https://github.com/kmscon/kmscon/issues/638 + ts1=$(date +%s) + ts2=$ts1 + while [ "$((ts2 - ts1))" -lt "$wait" ]; do + printf_out '%s\n' "Waiting for ${kms_tty} to return to foreground..." + # use inotifywait if available, fallback to plain sleep + if command -v inotifywait > /dev/null; then + inotifywait -qqe modify -t "$wait" "$active_tty_file" + else + { sleep 0.2 || /bin/sleep 0.2 || sleep 1; } 2> /dev/null + fi + read -r check_kms_tty < "$active_tty_file" + if [ "${check_kms_tty}" = "${kms_tty}" ]; then + printf_out '%s\n' "${kms_tty} returned to foreground." + return 0 + fi + ts2=$(date +%s) + done + printf_err '%s\n' "Giving up on ${kms_tty}." +} + +kmscon_foreground() { + # do nothing if we are not on kmscon + case "${TERM_SESSION_TYPE:-}" in + kms | fb) true ;; + *) return 0 ;; + esac + # wait for foreground tty on normal exit + [ -n "$SIGNAL" ] || kmscon_wait_tty + printf_out '%s\n' "Requesting kmscon foreground." + # shellcheck disable=SC1003 + case "${TERM_PROGRAM:-}" in + tmux) printf '%b' '\033Ptmux;\033\033]setForeground\a\033\\' >&3 ;; + *) printf '\033]setForeground\a' >&3 ;; + esac + # pause after foreground request on normal exit + [ -n "$SIGNAL" ] || { sleep 0.2 || /bin/sleep 0.2 || sleep 1; } 2> /dev/null +} + if [ "$#" != "1" ]; then printf_err '%s\n' "Designed to be run by uwsm! Exiting." exit 1 fi UNIT=$1 +SIGNAL= trap "stop TERM" TERM trap "stop HUP" HUP diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/uwsm-0.27.2/version.sh new/uwsm-0.27.3/version.sh --- old/uwsm-0.27.2/version.sh 2026-11-09 21:23:23.000000000 +0100 +++ new/uwsm-0.27.3/version.sh 2026-12-04 19:30:01.000000000 +0100 @@ -4,7 +4,7 @@ # or prints back UWSM_VERSION env if set, # or prints a fallback version if not in git repo. -VERSION=0.27.2 +VERSION=0.27.3 set -e ++++++ uwsm.obsinfo ++++++ --- /var/tmp/diff_new_pack.YaD6y4/_old 2026-12-05 19:14:15.659944166 +0100 +++ /var/tmp/diff_new_pack.YaD6y4/_new 2026-12-05 19:14:15.663944334 +0100 @@ -1,5 +1,5 @@ name: uwsm -version: 0.27.2 -mtime: 1794255803 -commit: 05da94b3da620ebd41432eba5eac6c81354e30fa +version: 0.27.3 +mtime: 1796409001 +commit: 67eda20a4821b2351e0abe929480e9101e751aca
