From 22db2d1cdee3fe1acfe9c0ba940bb7a5b6c7a40c Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Wed, 29 Nov 2023 07:51:45 +0000 Subject: [PATCH] Update to 1.18 (rhbz#2251844) - New upstream release 1.18 - Address Freebsd build issue: make function checks more robust within shared lib (GH#15) --- perl-IO-Tty-c99.patch | 48 ------------------------------------------- perl-IO-Tty.spec | 15 +++++++++----- sources | 2 +- 3 files changed, 11 insertions(+), 54 deletions(-) delete mode 100644 perl-IO-Tty-c99.patch diff --git a/perl-IO-Tty-c99.patch b/perl-IO-Tty-c99.patch deleted file mode 100644 index 99b9fda..0000000 --- a/perl-IO-Tty-c99.patch +++ /dev/null @@ -1,48 +0,0 @@ -commit 1735a78561dbe139fd138caef2d44d81f5494fe7 -Author: Khem Raj -Date: Tue Apr 4 12:28:11 2023 -0700 - - Make function checks more robust within shared libs - - Previous attempt to error at link like was with - - https://github.com/toddr/IO-Tty/commit/1747cdf9f98cfd3aada9bf6c09f9d46297e18a5e - - this however causes issues with newer clang where it detects - the assignment as -Wint-conversion warning which is treated at error - and builds with clang fail. So this is an attempt to instruct - linker explicitly to error out if the symbol is not found during link - time when building a shared library, this fixes both the problems - as reported in - - https://github.com/toddr/IO-Tty/issues/23 - - as well as - - https://github.com/toddr/IO-Tty/pull/33#issuecomment-1260147256 - - Signed-off-by: Khem Raj - -diff --git a/Makefile.PL b/Makefile.PL -index 6b1b6fab1a57f457..2efb6f9bb54d7ff8 100644 ---- a/Makefile.PL -+++ b/Makefile.PL -@@ -163,7 +163,8 @@ main () - #if defined (__stub_$f) || defined (__stub___$f) - choke me - #else --f = $f (); -+f = $f; -+f(); - #endif - - ; -@@ -173,7 +174,7 @@ ESQ - - close(TST); - print "Looking for $f()" . "." x (13-length($f)) . " "; -- if (system("$cfg{'cc'} $flags $funcs{$f} functest_$f.c > functest_$f.log 2>&1")) { -+ if (system("$cfg{'cc'} $flags -Wl,--no-undefined $funcs{$f} functest_$f.c > functest_$f.log 2>&1")) { - print "not found.\n"; - } else { - $define{"-DHAVE_\U$f"} = undef; diff --git a/perl-IO-Tty.spec b/perl-IO-Tty.spec index 90567d8..e74b5ea 100644 --- a/perl-IO-Tty.spec +++ b/perl-IO-Tty.spec @@ -1,11 +1,10 @@ Name: perl-IO-Tty -Version: 1.17 -Release: 5%{?dist} +Version: 1.18 +Release: 1%{?dist} Summary: Perl interface to pseudo tty's License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND BSD-2-Clause URL: https://metacpan.org/release/IO-Tty Source0: https://cpan.metacpan.org/modules/by-module/IO/IO-Tty-%{version}.tar.gz -Patch0: perl-IO-Tty-c99.patch # Module Build BuildRequires: coreutils BuildRequires: findutils @@ -29,7 +28,8 @@ BuildRequires: perl(vars) BuildRequires: perl(warnings) # Test Suite BuildRequires: perl(Test::More) -# Runtime +# Dependencies +# (none) # Don't "provide" private Perl libs %{?perl_default_filter} @@ -38,7 +38,7 @@ BuildRequires: perl(Test::More) IO::Tty and IO::Pty provide an interface to pseudo tty's. %prep -%autosetup -p1 -n IO-Tty-%{version} +%setup -q -n IO-Tty-%{version} %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1 @@ -61,6 +61,11 @@ make test %{_mandir}/man3/IO::Tty::Constant.3* %changelog +* Tue Nov 28 2023 Paul Howarth - 1.18-1 +- Update to 1.18 (rhbz#2251844) + - Address Freebsd build issue: make function checks more robust within + shared lib (GH#15) + * Tue Nov 28 2023 Florian Weimer - 1.17-5 - Backport upstream patch to fix C99 compatibility issue diff --git a/sources b/sources index 36bf1c7..fa4b060 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (IO-Tty-1.17.tar.gz) = a9a53670d579684af1ca0d6e77bd74430c801174c59421139f79a19e76377d40055b74a8b1ef92d8601ca5bda2f911cba99a0bda0c24cf847bacac3df2314d37 +SHA512 (IO-Tty-1.18.tar.gz) = 45f5e8856c8bd1169bf094407512cce901efe3cefadd279dff9aaee7c81289a160fa3589f0c01cc5829bcee3ed5d1eaf95002ca2207151d31ce293076dc86c06