Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kpty for openSUSE:Factory checked in at 2022-05-16 18:07:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kpty (Old) and /work/SRC/openSUSE:Factory/.kpty.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kpty" Mon May 16 18:07:08 2022 rev:103 rq:977195 version:5.94.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kpty/kpty.changes 2022-04-11 23:48:52.723320530 +0200 +++ /work/SRC/openSUSE:Factory/.kpty.new.1538/kpty.changes 2022-05-16 18:09:09.521308781 +0200 @@ -1,0 +2,10 @@ +Tue May 10 08:18:07 UTC 2022 - Christophe Giboudeaux <christo...@krop.fr> + +- Update to 5.94.0 + * New feature release + * For more details please see: + * https://kde.org/announcements/frameworks/5/5.94.0 +- Changes since 5.93.0: + * KPtryProcess: call childProcessModifier() of parent class first + +------------------------------------------------------------------- Old: ---- kpty-5.93.0.tar.xz kpty-5.93.0.tar.xz.sig New: ---- kpty-5.94.0.tar.xz kpty-5.94.0.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kpty.spec ++++++ --- /var/tmp/diff_new_pack.AcUYGQ/_old 2022-05-16 18:09:10.101309242 +0200 +++ /var/tmp/diff_new_pack.AcUYGQ/_new 2022-05-16 18:09:10.105309246 +0200 @@ -17,14 +17,14 @@ %define lname libKF5Pty5 -%define _tar_path 5.93 +%define _tar_path 5.94 # Full KF5 version (e.g. 5.33.0) %{!?_kf5_version: %global _kf5_version %{version}} # Last major and minor KF5 version (e.g. 5.33) %{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')} %bcond_without released Name: kpty -Version: 5.93.0 +Version: 5.94.0 Release: 0 Summary: Primitives to interface with pseudo terminal devices License: LGPL-2.1-or-later ++++++ kpty-5.93.0.tar.xz -> kpty-5.94.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kpty-5.93.0/CMakeLists.txt new/kpty-5.94.0/CMakeLists.txt --- old/kpty-5.93.0/CMakeLists.txt 2022-04-02 12:26:01.000000000 +0200 +++ new/kpty-5.94.0/CMakeLists.txt 2022-05-07 23:25:56.000000000 +0200 @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.16) -set(KF_VERSION "5.93.0") # handled by release scripts +set(KF_VERSION "5.94.0") # handled by release scripts set(KF_DEP_VERSION "5.93.0") # handled by release scripts project(KPty VERSION ${KF_VERSION}) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kpty-5.93.0/po/zh_CN/kpty5.po new/kpty-5.94.0/po/zh_CN/kpty5.po --- old/kpty-5.93.0/po/zh_CN/kpty5.po 2022-04-02 12:26:01.000000000 +0200 +++ new/kpty-5.94.0/po/zh_CN/kpty5.po 2022-05-07 23:25:56.000000000 +0200 @@ -15,7 +15,7 @@ "Project-Id-Version: kdeorg\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2021-08-14 00:14+0000\n" -"PO-Revision-Date: 2022-03-31 13:30\n" +"PO-Revision-Date: 2022-04-26 15:19\n" "Last-Translator: \n" "Language-Team: Chinese Simplified\n" "Language: zh_CN\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kpty-5.93.0/src/kptyprocess.cpp new/kpty-5.94.0/src/kptyprocess.cpp --- old/kpty-5.93.0/src/kptyprocess.cpp 2022-04-02 12:26:01.000000000 +0200 +++ new/kpty-5.94.0/src/kptyprocess.cpp 2022-05-07 23:25:56.000000000 +0200 @@ -41,7 +41,8 @@ Q_D(KPtyProcess); #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) - setChildProcessModifier([d]() { + auto parentChildProcModifier = KProcess::childProcessModifier(); + setChildProcessModifier([d, parentChildProcModifier]() { d->pty->setCTty(); if (d->addUtmp) { d->pty->login(KUser(KUser::UseRealUserID).loginName().toLocal8Bit().constData(), qgetenv("DISPLAY").constData()); @@ -55,6 +56,10 @@ if (d->ptyChannels & StderrChannel) { dup2(d->pty->slaveFd(), 2); } + + if (parentChildProcModifier) { + parentChildProcModifier(); + } }); #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kpty-5.93.0/src/kptyprocess.h new/kpty-5.94.0/src/kptyprocess.h --- old/kpty-5.93.0/src/kptyprocess.h 2022-04-02 12:26:01.000000000 +0200 +++ new/kpty-5.94.0/src/kptyprocess.h 2022-05-07 23:25:56.000000000 +0200 @@ -31,6 +31,29 @@ * for it is impossible. Note that execute() does not work with the PTY, too. * Use the PTY device's waitFor*() functions or use it asynchronously. * + * @note If you inherit from this class and use setChildProcessModifier() in + * the derived class, you must call the childProcessModifier() of KPtyProcess + * first (using setChildProcessModifier() in the derived class will "overwrite" + * the childProcessModifier() std::function that was previously set by KPtyProcess). + * For example: + * @code + * class MyProcess : public KPtyProcess + * { + * MyProcess() + * { + * auto parentChildProcModifier = KPtyProcess::childProcessModifier(); + * setChildProcessModifier([parentChildProcModifier]() { + * // First call the parent class modifier function + * if (parentChildProcModifier) { + * parentChildProcModifier(); + * } + * // Then whatever extra code you need to run + * .... + * .... + * }); + * } + * @endcode + * * @author Oswald Buddenhagen <o...@kde.org> */ class KPTY_EXPORT KPtyProcess : public KProcess