Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-IO-Tty for openSUSE:Factory checked in at 2022-11-25 14:08:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-IO-Tty (Old) and /work/SRC/openSUSE:Factory/.perl-IO-Tty.new.1597 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-IO-Tty" Fri Nov 25 14:08:03 2022 rev:26 rq:1037953 version:1.17 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-IO-Tty/perl-IO-Tty.changes 2021-01-28 21:22:25.207639515 +0100 +++ /work/SRC/openSUSE:Factory/.perl-IO-Tty.new.1597/perl-IO-Tty.changes 2022-11-25 14:08:04.717175263 +0100 @@ -1,0 +2,12 @@ +Sat Nov 12 03:06:39 UTC 2022 - Tina Müller <[email protected]> + +- updated to 1.17 + see /usr/share/doc/packages/perl-IO-Tty/ChangeLog + + 1.17 2022-11-11 Todd Rinaldo <[email protected]> + * Switch changelog entries to metacpan friendly format + * #29 - Fix printf format conversion specifiers in croak to support size_t on all platforms + * #11,#30 - Tty.pm: pre-allocate buffer for ioctl but leave it length 0 + * #28 - Use $arg to match @ARGV in Makefile.PL + +------------------------------------------------------------------- Old: ---- IO-Tty-1.16.tar.gz New: ---- IO-Tty-1.17.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-IO-Tty.spec ++++++ --- /var/tmp/diff_new_pack.SF2xp8/_old 2022-11-25 14:08:05.229177779 +0100 +++ /var/tmp/diff_new_pack.SF2xp8/_new 2022-11-25 14:08:05.233177799 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-IO-Tty # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,10 +18,10 @@ %define cpan_name IO-Tty Name: perl-IO-Tty -Version: 1.16 +Version: 1.17 Release: 0 -Summary: Low-level allocate a pseudo-Tty, import constants License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Pseudo ttys and constants URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml @@ -61,6 +61,7 @@ %prep %autosetup -n %{cpan_name}-%{version} +find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" ++++++ IO-Tty-1.16.tar.gz -> IO-Tty-1.17.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/IO-Tty-1.16/ChangeLog new/IO-Tty-1.17/ChangeLog --- old/IO-Tty-1.16/ChangeLog 2021-01-22 09:02:35.000000000 +0100 +++ new/IO-Tty-1.17/ChangeLog 2022-11-11 21:14:48.000000000 +0100 @@ -1,313 +1,287 @@ +1.17 2022-11-11 Todd Rinaldo <[email protected]> + * Switch changelog entries to metacpan friendly format + * #29 - Fix printf format conversion specifiers in croak to support size_t on all platforms + * #11,#30 - Tty.pm: pre-allocate buffer for ioctl but leave it length 0 + * #28 - Use $arg to match @ARGV in Makefile.PL + 1.16 2021-01-2 Todd Rinaldo <[email protected]> * Switch to github for issue tracker. * Switch to testsuite CI workflow. * Tidy -2020-10-03 Todd Rinaldo <[email protected]> 1.15 +1.15 2020-10-03 Todd Rinaldo <[email protected]> * Skip winsize test on Solaris and QNX NTO * Make function tests more robust * Work around a header name collission on util.h. This is breaking on recent OSX -2020-01-18 Todd Rinaldo <[email protected]> 1.14 +1.15 2020-01-18 Todd Rinaldo <[email protected]> * Add strict/warnings to Tty.pm - * Fix pod errors - * Typo: s/dependend/dependent/ - * Prevent spurious warning from get_winsize() - * Fix usage of setsid - * Github actions testing. Windows is off of course. - * Make README.md - -2014-12-14 Todd Rinaldo <[email protected]> 1.13_01 - * RT 91590 - Remove MAP_TARGET from Makefile.PL - * RT 88271 - Fix for Solaris setuid when root running as other user - -2014-09-12 Todd Rinaldo <[email protected]> 1.12 - * Merge pull request from Chris Williams (bingos) to fix "redefinition of typedef" errors with v5.19.4 and above - -2014-05-05 Todd Rinaldo <[email protected]> - * Release 1.11 to CPAN with explicit dropping of support for Win32 (we never supported it) - RT 77813 - * Bump version to a devel release 1.11_01 for experimental work. - * Fix typo in compilter - RT 75649 - * Add support for PERL_MM_OPT - -2010-10-11 Todd Rinaldo <[email protected]> - * CPAN testers clean. Bumping to release version 1.10 - -2010-10-04 Todd Rinaldo <[email protected]> - * RT 60788 - Better error reporting on Operating Systems - that can't set a controlling terminal e.g. BeOS - * Bump to 1.09_01 - -2010-10-04 Todd Rinaldo <[email protected]> - * CPAN testers looks clean. Internal testing done on perl 5.6 - * Bump version to 1.09 and release to CPAN - -2010-10-02 Todd Rinaldo <[email protected]> - * RT 61642 - Fix file number test to work without hang on cygwin - * Bump to 1.08_03 - -2010-09-10 Todd Rinaldo <[email protected]> - * Update all versions to the new version. bump to 1.08_02 - -2010-09-10 Todd Rinaldo <[email protected]> - * RT 45008 - only try TIOCSCTTY if we don't have a ctty - * RT 53883 - IO::Tty detection on BeOS w/fix - * RT 60014 - better META.yml by modernizing Makefile.PL - * RT 44771 - Add _ to list of escape characters for compiler - so it'll compile on windows This is experimental pending a - successful dev release - -2009-02-05 Roland Giersig <[email protected]> - - * v1.08 - - * Makefile.PL, Tty.xs: added support for posix_openpt(), thanks to Ed Schouten for providing a patch - -2006-07-18 Roland Giersig <[email protected]> - - * v1.07 - - * Tty.xs: added some more letter to BSD allocation - -2006-07-15 Roland Giersig <[email protected]> - - * v1.06 - - * Tty.pm: pre-allocate buffer for ioctl - -2006-06-06 Roland Giersig <[email protected]> - - * v1.05 - - * Tty.xs: added includes <sys/pty.h> and <sys/ptyio.h> - -2006-05-28 Roland Giersig <[email protected]> - - * v1.04 - - * Tty.xs: added handling for z/OS (uses /dev/ptyp0000) - - * Makefile.PL: added <sys/pty.h> (for HPUX) - -2006-04-25 Roland Giersig <[email protected]> - - * v1.03 - - * Tty.c: changed newCONSTSUB to use newSV(0) instead of PL_sv_undef, now undef'd constants work - - * Makefile.PL: made ccflags handling meta-char safe, added ldflags; enhanced error msg - - * Makefile.PL: added <sys/ptyio.h> - -2002-04-02 Roland Giersig <[email protected]> - - * Tty.pm, Pty.pm: v1.02; disable warning for non-existant die handler - -2002-03-18 Roland Giersig <[email protected]> - - * v1.01 - - * Makefile.PL: remove cpp, test-compile instead - - * Tty.pm, Pty.pm: disable die handler when requiring Stty - -2002-03-06 Roland Giersig <[email protected]> - - * v0.97_04, final pre-release version - -2002-03-04 Roland Giersig <[email protected]> - - * Pty.pm: v0.97_03 - - * Makefile.PL: order of include files is preserved; added test for - working cpp. - - * Tty.pm (clone_winsize_from): v0.97_03; added function. - - * Tty.xs (allocate_pty): fixed typo in close for _getpty; changed - order of termios.h and termio.h includes + * Fix pod errors + * Typo: s/dependend/dependent/ + * Prevent spurious warning from get_winsize() + * Fix usage of setsid + * Github actions testing. Windows is off of course. + * Make README.md + +1.13_01 2014-12-14 Todd Rinaldo <[email protected]> + * RT 91590 - Remove MAP_TARGET from Makefile.PL + * RT 88271 - Fix for Solaris setuid when root running as other user + +1.12 2014-09-12 Todd Rinaldo <[email protected]> + * Merge pull request from Chris Williams (bingos) to fix "redefinition of typedef" errors with v5.19.4 and above + +1.11 2014-05-05 Todd Rinaldo <[email protected]> + * Release 1.11 to CPAN with explicit dropping of support for Win32 (we never supported it) - RT 77813 + * Bump version to a devel release 1.11_01 for experimental work. + * Fix typo in compilter - RT 75649 + * Add support for PERL_MM_OPT + +1.10 2010-10-11 Todd Rinaldo <[email protected]> + * CPAN testers clean. Bumping to release version 1.10 + +1.09_01 2010-10-04 Todd Rinaldo <[email protected]> + * RT 60788 - Better error reporting on Operating Systems + that can't set a controlling terminal e.g. BeOS + * Bump to 1.09_01 + +1.09 2010-10-04 Todd Rinaldo <[email protected]> + * CPAN testers looks clean. Internal testing done on perl 5.6 + * Bump version to 1.09 and release to CPAN + +1.08_03 2010-10-02 Todd Rinaldo <[email protected]> + * RT 61642 - Fix file number test to work without hang on cygwin + * Bump to 1.08_03 + +1.08_02 2010-09-10 Todd Rinaldo <[email protected]> + * Update all versions to the new version. bump to 1.08_02 + +1.08_01 2010-09-10 Todd Rinaldo <[email protected]> + * RT 45008 - only try TIOCSCTTY if we don't have a ctty + * RT 53883 - IO::Tty detection on BeOS w/fix + * RT 60014 - better META.yml by modernizing Makefile.PL + * RT 44771 - Add _ to list of escape characters for compiler + so it'll compile on windows This is experimental pending a + successful dev release + +v1.08 2009-02-05 Roland Giersig <[email protected]> + * Makefile.PL, Tty.xs: added support for posix_openpt(), thanks to Ed Schouten for providing a patch + +v1.07 2006-07-18 Roland Giersig <[email protected]> + * Tty.xs: added some more letter to BSD allocation + +v1.06 2006-07-15 Roland Giersig <[email protected]> + * Tty.pm: pre-allocate buffer for ioctl + +v1.05 2006-06-06 Roland Giersig <[email protected]> + * Tty.xs: added includes <sys/pty.h> and <sys/ptyio.h> + +v1.04 2006-05-28 Roland Giersig <[email protected]> + * Tty.xs: added handling for z/OS (uses /dev/ptyp0000) + * Makefile.PL: added <sys/pty.h> (for HPUX) + +v1.03 2006-04-25 Roland Giersig <[email protected]> + * Tty.c: changed newCONSTSUB to use newSV(0) instead of PL_sv_undef, now undef'd constants work + * Makefile.PL: made ccflags handling meta-char safe, added ldflags; enhanced error msg + * Makefile.PL: added <sys/ptyio.h> + +v1.02 2002-04-02 Roland Giersig <[email protected]> + * Tty.pm, Pty.pm: v1.02; disable warning for non-existant die handler + +v1.01 2002-03-18 Roland Giersig <[email protected]> + * Makefile.PL: remove cpp, test-compile instead + * Tty.pm, Pty.pm: disable die handler when requiring Stty + +v0.97_04 2002-03-06 Roland Giersig <[email protected]> + * v0.97_04, final pre-release version + +v0.97_03 2002-03-04 Roland Giersig <[email protected]> + * Pty.pm: v0.97_03 + * Makefile.PL: order of include files is preserved; added test for + working cpp. + * Tty.pm (clone_winsize_from): v0.97_03; added function. + * Tty.xs (allocate_pty): fixed typo in close for _getpty; changed order of termios.h and termio.h includes 2002-02-26 Roland Giersig <[email protected]> - * test.pl: replaced Test.pm + * test.pl: replaced Test.pm - * Tty.pm (set_raw): v0.97_01; moved set_raw() from test to method + * Tty.pm (set_raw): v0.97_01; moved set_raw() from test to method - * Tty.xs: got rid of snprintf; don't try openpty() and getpt() if - ptsname is not there. + * Tty.xs: got rid of snprintf; don't try openpty() and getpt() if + ptsname is not there. - * Pty.pm: v0.97_01; updated docs + * Pty.pm: v0.97_01; updated docs - * Makefile.PL: v0.97_01; auto-create IO::Tty::Constant + * Makefile.PL: v0.97_01; auto-create IO::Tty::Constant 2002-01-31 Roland Giersig <[email protected]> - * Pty.pm: add IO::Stty to @ISA, master pty is sometimes a tty. + * Pty.pm: add IO::Stty to @ISA, master pty is sometimes a tty. - * Tty.pm: v0.95_01 + * Tty.pm: v0.95_01 2002-01-30 Roland Giersig <[email protected]> - * Tty.pm, Pty.pm: v0.94_05 + * Tty.pm, Pty.pm: v0.94_05 - * Tty.xs (allocate_pty): moved getpt() and openpty() before muxes + * Tty.xs (allocate_pty): moved getpt() and openpty() before muxes - * test.pl: if master isatty, set it also to raw; seems to be needed. + * test.pl: if master isatty, set it also to raw; seems to be needed. - * Makefile.PL: fixed checks; test problematic constants with a compile. - + * Makefile.PL: fixed checks; test problematic constants with a compile. + 2002-01-23 Roland Giersig <[email protected]> - * Tty.pm: v0.94_03 + * Tty.pm: v0.94_03 - * test.pl: changed test to probe for maximum chunk the pty can - handle; also, the /dev/tty test probes if an EOF is correctly - reported from the child to the parent. + * test.pl: changed test to probe for maximum chunk the pty can + handle; also, the /dev/tty test probes if an EOF is correctly + reported from the child to the parent. - * Tty.xs: finally made debug printfs optional via $IO::Tty::DEBUG. + * Tty.xs: finally made debug printfs optional via $IO::Tty::DEBUG. 2002-01-18 Roland Giersig <[email protected]> - * Tty.pm: v0.94_02 + * Tty.pm: v0.94_02 - * Tty.xs: added #include termio.h + * Tty.xs: added #include termio.h 2002-01-07 Roland Giersig <[email protected]> - * Pty.pm: adapted to new interface - (close_slave): added for keeping open filecount straight - (make_slave_controlling_terminal): created anew - (slave): reverted from open_slave() - - * Tty.pm: v0.94_01 - - * test.pl: adapted to new interface - - * Tty.xs: reverted to opening slave at creation time; added debug - printfs - (open_slave): use ptsname_r if there, forget about erroneous ttyname. - (allocate_pty): added name param on openpty (doesn't take NULL for name) - + * Pty.pm: adapted to new interface + (close_slave): added for keeping open filecount straight + (make_slave_controlling_terminal): created anew + (slave): reverted from open_slave() + + * Tty.pm: v0.94_01 + + * test.pl: adapted to new interface + + * Tty.xs: reverted to opening slave at creation time; added debug + printfs + (open_slave): use ptsname_r if there, forget about erroneous ttyname. + (allocate_pty): added name param on openpty (doesn't take NULL for name) + 2001-11-28 Roland Giersig <[email protected]> - * Tty.pm: v0.92_04 + * Tty.pm: v0.92_04 - * Tty.xs (BOOT): use perl_get_sv for backward compat + * Tty.xs (BOOT): use perl_get_sv for backward compat - * Makefile.PL: added analysis of configuration + * Makefile.PL: added analysis of configuration 2001-11-27 Roland Giersig <[email protected]> - * Tty.pm: v0.92_03 + * Tty.pm: v0.92_03 - * Tty.xs (BOOT): removed export_fail, undefined constants are now - undef instead of not exportable; added CONFIG variable. + * Tty.xs (BOOT): removed export_fail, undefined constants are now + undef instead of not exportable; added CONFIG variable. - * Makefile.PL: added setting of CONFIG var + * Makefile.PL: added setting of CONFIG var - * test.pl: added printing of CONFIG var + * test.pl: added printing of CONFIG var - * Pty.pm (spawn): fixed bug with $^W handling + * Pty.pm (spawn): fixed bug with $^W handling 2001-11-17 Roland Giersig <[email protected]> - * Tty.xs (pty_allocate): complete rewrite, based on ideas from - openssh and Xemacs. Tries all ways detected by Makefile.PL in - order, so in theory it should work everywhere (modulo system - quirks). First tries the high-level openpty() before getpt(), - then various clone devices and finally BSD-style ptys. - - * Tty.xs (open_slave): moved master init stuff here, must be done - before opening the slave. The Stream module pushes are now tried - on all systems but only generate warnings on systems that we know - need them. - - * Makefile.PL: added tests for all kinds of functions and clone - devices. - + * Tty.xs (pty_allocate): complete rewrite, based on ideas from + openssh and Xemacs. Tries all ways detected by Makefile.PL in + order, so in theory it should work everywhere (modulo system + quirks). First tries the high-level openpty() before getpt(), + then various clone devices and finally BSD-style ptys. + + * Tty.xs (open_slave): moved master init stuff here, must be done + before opening the slave. The Stream module pushes are now tried + on all systems but only generate warnings on systems that we know + need them. + + * Makefile.PL: added tests for all kinds of functions and clone + devices. + 2001-11-14 Roland Giersig <[email protected]> - * Tty.xs (MODULE): stole creation code from openssh + * Tty.xs (MODULE): stole creation code from openssh - * test.pl: added test for controlling terminal + * test.pl: added test for controlling terminal - * Pty.pm (spawn): rearranged setsid() and added a fresh open of - the slave pty so the pty becomes the controlling terminal for the - process. + * Pty.pm (spawn): rearranged setsid() and added a fresh open of + the slave pty so the pty becomes the controlling terminal for the + process. 2001-10-25 Roland Giersig <[email protected]> - * Pty.pm (spawn): copied spawning process from Tcl/Expect (thanks, - Don!); should set the controlling tty so ssh and other password - requesting programs should be OK; also now returns exec errors. - (slave_pid): added method to get at PID of spawned process. + * Pty.pm (spawn): copied spawning process from Tcl/Expect (thanks, + Don!); should set the controlling tty so ssh and other password + requesting programs should be OK; also now returns exec errors. + (slave_pid): added method to get at PID of spawned process. - * Makefile.PL: added TIOCCONS. + * Makefile.PL: added TIOCCONS. - * try: adapted to use spawn(). + * try: adapted to use spawn(). - * test.pl: adapted to use spawn(); added test for exec errors. + * test.pl: adapted to use spawn(); added test for exec errors. 2001-10-16 Roland Giersig <[email protected]> - * Pty.pm (new): fixed bad my() line + * Pty.pm (new): fixed bad my() line - * automatically add IO::Stty to ISA if it exists. + * automatically add IO::Stty to ISA if it exists. 2001-07-16 Roland Giersig <[email protected]> - * test.pl: finally some tests! Spawns a perl mini-script that - echoes back all characters from STDIN, but inverted. + * test.pl: finally some tests! Spawns a perl mini-script that + echoes back all characters from STDIN, but inverted. - * Pty.pm (slave): slave now is set to be a controlling tty if possible; - it also remembers it's name now. + * Pty.pm (slave): slave now is set to be a controlling tty if possible; + it also remembers it's name now. - * Makefile.PL: - - on SCO, the slave pts* are in the /dev dir, not /dev/pts - - added test for libutil.h, util.h, pty.h and openpty() - - added symbol TIOCSCTTY - - * Tty.xs: - - some SVR4 only define __SVR4; fixed. - - OSF machines need termio.h for various macros - - AIX doesn't define VOIDSIG; fixed. - - Cygwin can use /dev/ptmx even though that file doesn't exist. - - added openpty() version for FreeBSD and others that have - no good method for creating ptys; untested. - - * Tty.pm: - - moved docu over from Pty.pm to lessen confusion Pty <-> Tty - - added verified systems list - + * Makefile.PL: + - on SCO, the slave pts* are in the /dev dir, not /dev/pts + - added test for libutil.h, util.h, pty.h and openpty() + - added symbol TIOCSCTTY + + * Tty.xs: + - some SVR4 only define __SVR4; fixed. + - OSF machines need termio.h for various macros + - AIX doesn't define VOIDSIG; fixed. + - Cygwin can use /dev/ptmx even though that file doesn't exist. + - added openpty() version for FreeBSD and others that have + no good method for creating ptys; untested. + + * Tty.pm: + - moved docu over from Pty.pm to lessen confusion Pty <-> Tty + - added verified systems list + Change 588 on 2000/09/04 by <[email protected]> (Graham Barr) - Check for /dev/ptmx and /dev/pts instead of testing defined(SVR4) + Check for /dev/ptmx and /dev/pts instead of testing defined(SVR4) Change 587 on 2000/09/04 by <[email protected]> (Graham Barr) - Make ttyname just warn when it is not implemented instead of croak + Make ttyname just warn when it is not implemented instead of croak Change 586 on 2000/09/04 by <[email protected]> (Graham Barr) - Include <sys/modem.h> for HPUX + Include <sys/modem.h> for HPUX Change 585 on 2000/09/04 by <[email protected]> (Graham Barr) - Makefile.PL - - Fix to how cc is called + Makefile.PL + - Fix to how cc is called Change 461 on 2000/03/29 by <[email protected]> (Graham Barr) - Release 0.03 + Release 0.03 Change 460 on 2000/03/29 by <[email protected]> (Graham Barr) - General cleanup and added PPD stuff into Makefile.PL + General cleanup and added PPD stuff into Makefile.PL Change 310 on 1999/05/10 by <[email protected]> (Graham Barr) - - Removed the need for Configure by implementing a test in Makefile.PL - - The existance of constants are now checked at import time, so @EXPORT - had to be renamed to @EXPORT_OK. ie noting is imported by default + - Removed the need for Configure by implementing a test in Makefile.PL + - The existance of constants are now checked at import time, so @EXPORT + had to be renamed to @EXPORT_OK. ie noting is imported by default diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/IO-Tty-1.16/META.json new/IO-Tty-1.17/META.json --- old/IO-Tty-1.16/META.json 2021-01-22 09:02:54.000000000 +0100 +++ new/IO-Tty-1.17/META.json 2022-11-11 21:15:01.000000000 +0100 @@ -4,7 +4,7 @@ "Roland Giersig <[email protected]>" ], "dynamic_config" : 1, - "generated_by" : "ExtUtils::MakeMaker version 7.44, CPAN::Meta::Converter version 2.150010", + "generated_by" : "ExtUtils::MakeMaker version 7.64, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], @@ -43,6 +43,6 @@ "url" : "https://github.com/toddr/IO-Tty" } }, - "version" : "1.16", - "x_serialization_backend" : "JSON::PP version 4.04" + "version" : "1.17", + "x_serialization_backend" : "JSON::PP version 4.07" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/IO-Tty-1.16/META.yml new/IO-Tty-1.17/META.yml --- old/IO-Tty-1.16/META.yml 2021-01-22 09:02:54.000000000 +0100 +++ new/IO-Tty-1.17/META.yml 2022-11-11 21:15:01.000000000 +0100 @@ -7,7 +7,7 @@ configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 1 -generated_by: 'ExtUtils::MakeMaker version 7.44, CPAN::Meta::Converter version 2.150010' +generated_by: 'ExtUtils::MakeMaker version 7.64, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -21,5 +21,5 @@ bugtracker: https://github.com/toddr/IO-Tty/issues license: http://dev.perl.org/licenses/ repository: https://github.com/toddr/IO-Tty -version: '1.16' +version: '1.17' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/IO-Tty-1.16/Makefile.PL new/IO-Tty-1.17/Makefile.PL --- old/IO-Tty-1.16/Makefile.PL 2021-01-22 09:02:35.000000000 +0100 +++ new/IO-Tty-1.17/Makefile.PL 2022-11-11 21:14:48.000000000 +0100 @@ -16,7 +16,7 @@ my %cfg; @cfg{qw(cc ccflags ldflags)} = @Config{qw(cc ccflags ldflags)}; for my $arg (@ARGV) { - if ( /^(CC|CCFLAGS|LDFLAGS)=(.*)/i ) { + if ( $arg =~ /^(CC|CCFLAGS|LDFLAGS)=(.*)/i ) { $cfg{lc($1)} = $2; } } @@ -37,7 +37,7 @@ my %define; my @libs; -my $Package_Version = '1.16'; # keep this consistent with Tty.pm +my $Package_Version = '1.17'; # keep this consistent with Tty.pm my $Is_Beta = ($Package_Version =~ m/_/); open(SUB, ">xssubs.c") or die "open: $!"; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/IO-Tty-1.16/Pty.pm new/IO-Tty-1.17/Pty.pm --- old/IO-Tty-1.16/Pty.pm 2021-01-22 09:02:35.000000000 +0100 +++ new/IO-Tty-1.17/Pty.pm 2022-11-11 21:14:48.000000000 +0100 @@ -10,7 +10,7 @@ use vars qw(@ISA $VERSION); -$VERSION = '1.16'; # keep same as in Tty.pm +$VERSION = '1.17'; # keep same as in Tty.pm @ISA = qw(IO::Handle); eval { local $^W = 0; undef local $SIG{__DIE__}; require IO::Stty }; @@ -158,7 +158,7 @@ =head1 VERSION -1.16 +1.17 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/IO-Tty-1.16/README new/IO-Tty-1.17/README --- old/IO-Tty-1.16/README 2021-01-22 09:02:35.000000000 +0100 +++ new/IO-Tty-1.17/README 2022-11-11 21:14:48.000000000 +0100 @@ -2,7 +2,7 @@ IO::Tty - Low-level allocate a pseudo-Tty, import constants. VERSION - 1.16 + 1.17 SYNOPSIS use IO::Tty qw(TIOCNOTTY); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/IO-Tty-1.16/Tty.pm new/IO-Tty-1.17/Tty.pm --- old/IO-Tty-1.16/Tty.pm 2021-01-22 09:02:35.000000000 +0100 +++ new/IO-Tty-1.17/Tty.pm 2022-11-11 21:14:48.000000000 +0100 @@ -15,8 +15,8 @@ use vars qw(@ISA $VERSION $XS_VERSION $CONFIG $DEBUG); -$VERSION = '1.16'; -$XS_VERSION = "1.16"; +$VERSION = '1.17'; +$XS_VERSION = "1.17"; @ISA = qw(IO::Handle); eval { local $^W = 0; undef local $SIG{__DIE__}; require IO::Stty }; @@ -57,7 +57,8 @@ croak "Given filehandle is not a tty in clone_winsize_from, called" if not POSIX::isatty($fh); return 1 if not POSIX::isatty($self); # ignored for master ptys - my $winsize = " " x 1024; # preallocate memory + my $winsize = " " x 1024; # preallocate memory for older perl versions + $winsize = ''; # But leave the SV as empty ioctl( $fh, &IO::Tty::Constant::TIOCGWINSZ, $winsize ) and ioctl( $self, &IO::Tty::Constant::TIOCSWINSZ, $winsize ) and return 1; @@ -71,7 +72,8 @@ sub get_winsize { my $self = shift; - ioctl( $self, IO::Tty::Constant::TIOCGWINSZ(), my $winsize = q<> ) + my $winsize = " " x 1024; # preallocate memory + ioctl( $self, IO::Tty::Constant::TIOCGWINSZ(), $winsize ) or croak "Cannot TIOCGWINSZ - $!"; substr( $winsize, $SIZEOF_WINSIZE ) = ""; return IO::Tty::unpack_winsize($winsize); @@ -120,7 +122,7 @@ =head1 VERSION -1.16 +1.17 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/IO-Tty-1.16/Tty.xs new/IO-Tty-1.17/Tty.xs --- old/IO-Tty-1.16/Tty.xs 2021-01-22 09:02:35.000000000 +0100 +++ new/IO-Tty-1.17/Tty.xs 2022-11-11 21:14:48.000000000 +0100 @@ -864,7 +864,7 @@ struct winsize ws; PPCODE: if(SvCUR(winsize) != sizeof(ws)) - croak("IO::Tty::unpack_winsize(): Bad arg length - got %d, expected %d", + croak("IO::Tty::unpack_winsize(): Bad arg length - got %zd, expected %zd", SvCUR(winsize), sizeof(ws)); Copy(SvPV_nolen(winsize), &ws, sizeof(ws), char); EXTEND(SP, 4);
