diff -Nru /tmp/qu3G166E2J/kdelibs-3.5.5/debian/changelog /tmp/iG0xQrsXCl/kdelibs-3.5.5/debian/changelog --- /tmp/qu3G166E2J/kdelibs-3.5.5/debian/changelog 2007-02-19 19:09:15.000000000 +0000 +++ /tmp/iG0xQrsXCl/kdelibs-3.5.5/debian/changelog 2007-02-19 19:09:19.000000000 +0000 @@ -1,3 +1,13 @@ +kdelibs (4:3.5.5-0ubuntu3.2) edgy-proposed; urgency=low + + * Update for https://blueprints.launchpad.net/ubuntu/+spec/kubuntu-update-manager + - https://launchpad.net/ubuntu/+source/update-manager/+bug/84717 + * Add kubuntu_63_konsole_pty.diff, adds setPtyFd() function to kpty, allows konsole to + attach to an existing pty from another process + * Update shlib version for kdelibs4c2a + + -- Jonathan Riddell Mon, 12 Feb 2007 13:18:28 +0000 + kdelibs (4:3.5.5-0ubuntu3.1) edgy-security; urgency=low * SECURITY UPDATE: XSS attacks possible with comment in TITLE tag. diff -Nru /tmp/qu3G166E2J/kdelibs-3.5.5/debian/patches/kubuntu_63_konsole_pty.diff /tmp/iG0xQrsXCl/kdelibs-3.5.5/debian/patches/kubuntu_63_konsole_pty.diff --- /tmp/qu3G166E2J/kdelibs-3.5.5/debian/patches/kubuntu_63_konsole_pty.diff 1970-01-01 00:00:00.000000000 +0000 +++ /tmp/iG0xQrsXCl/kdelibs-3.5.5/debian/patches/kubuntu_63_konsole_pty.diff 2007-02-19 19:09:19.000000000 +0000 @@ -0,0 +1,86 @@ +unchanged: +diff -Nur kdelibs-3.5.5/interfaces/terminal/kde_terminal_interface.h kdelibs-3.5.5.new/interfaces/terminal/kde_terminal_interface.h +--- kdelibs-3.5.5/interfaces/terminal/kde_terminal_interface.h 2005-10-10 15:05:25.000000000 +0000 ++++ kdelibs-3.5.5.new/interfaces/terminal/kde_terminal_interface.h 2007-02-19 18:54:45.000000000 +0000 +@@ -163,6 +163,8 @@ + start another program instead or close it yourself. + */ + virtual void setAutoDestroy(bool enabled) = 0; ++ ++ virtual bool setPtyFd(int master_pty) = 0; + }; + + #endif +diff -Nur kdelibs-3.5.5/kdecore/kpty.cpp kdelibs-3.5.5.new/kdecore/kpty.cpp +--- kdelibs-3.5.5/kdecore/kpty.cpp 2007-02-19 18:54:32.000000000 +0000 ++++ kdelibs-3.5.5.new/kdecore/kpty.cpp 2007-02-19 18:55:44.000000000 +0000 +@@ -277,6 +277,42 @@ + return false; + + gotpty: ++ return _attachPty(d->masterFd); ++ ++ return true; ++} ++ ++bool KPty::setPty(int pty_master) ++{ ++ kdWarning(175) ++ << "setPty()" << endl; ++ // a pty is already open ++ if(d->masterFd >= 0) { ++ kdWarning(175) ++ << "d->masterFd >= 0" << endl; ++ return false; ++ } ++ d->masterFd = pty_master; ++ return _attachPty(pty_master); ++} ++ ++bool KPty::_attachPty(int pty_master) ++{ ++ QCString ptyName; ++ ++ kdWarning(175) ++ << "_attachPty() " << pty_master << endl; ++#if defined(HAVE_PTSNAME) && defined(HAVE_GRANTPT) ++ char *ptsn = ptsname(d->masterFd); ++ if (ptsn) { ++ grantpt(d->masterFd); ++ d->ttyName = ptsn; ++ } else { ++ ::close(d->masterFd); ++ d->masterFd = -1; ++ } ++#endif ++ + struct stat st; + if (stat(d->ttyName.data(), &st)) + return false; // this just cannot happen ... *cough* Yeah right, I just +diff -Nur kdelibs-3.5.5/kdecore/kpty.h kdelibs-3.5.5.new/kdecore/kpty.h +--- kdelibs-3.5.5/kdecore/kpty.h 2005-10-10 15:06:02.000000000 +0000 ++++ kdelibs-3.5.5.new/kdecore/kpty.h 2007-02-19 18:54:45.000000000 +0000 +@@ -61,6 +61,13 @@ + */ + bool open(); + ++ /** ++ * Attach a existing pty master ++ * ++ * @return true if the pty was successfully added ++ */ ++ bool setPty(int pty_master); ++ + /** + * Close the pty master/slave pair. + */ +@@ -138,6 +145,9 @@ + */ + int slaveFd() const; + ++ protected: ++ bool _attachPty(int pty_master); ++ + private: + bool chownpty(bool grant); + diff -Nru /tmp/qu3G166E2J/kdelibs-3.5.5/debian/rules /tmp/iG0xQrsXCl/kdelibs-3.5.5/debian/rules --- /tmp/qu3G166E2J/kdelibs-3.5.5/debian/rules 2007-02-19 19:09:15.000000000 +0000 +++ /tmp/iG0xQrsXCl/kdelibs-3.5.5/debian/rules 2007-02-19 19:09:19.000000000 +0000 @@ -24,7 +24,7 @@ PACKAGES_WITH_LIBS := kdelibs4c2a -DEB_DH_MAKESHLIBS_ARGS_kdelibs4c2a := -V'kdelibs4c2a (>= 4:3.5.3-1)' +DEB_DH_MAKESHLIBS_ARGS_kdelibs4c2a := -V'kdelibs4c2a (>= 4:3.5.5-0ubuntu3.2)' #shlibs_ver = 4:3.5.0-1 #$(foreach p,$(PACKAGES_WITH_LIBS),$(eval DEB_DH_MAKESHLIBS_ARGS_$(p) := -V'$(p) (>= $(shlibs_ver))'))