Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/perl-IO-Tty.git#033ad905863c8f29a19b9a466c6ff98bc1318656
This commit is contained in:
DistroBaker 2020-11-04 12:24:04 +00:00
parent a6f24eec68
commit 212befe243
3 changed files with 10 additions and 36 deletions

View File

@ -1,28 +0,0 @@
From 1747cdf9f98cfd3aada9bf6c09f9d46297e18a5e Mon Sep 17 00:00:00 2001
From: Paul Howarth <paul@city-fan.org>
Date: Sat, 22 Aug 2020 13:16:00 +0100
Subject: [PATCH] Make function tests more robust
Actually try calling the function rather than just referencing it.
This prevents some false-positive function detections, such as seen in
https://github.com/toddr/IO-Tty/issues/23
---
Makefile.PL | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.PL b/Makefile.PL
index 3ff081b..25824d1 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -160,7 +160,7 @@ main ()
#if defined (__stub_$f) || defined (__stub___$f)
choke me
#else
-f = $f;
+f = $f ();
#endif
;
--
2.26.2

View File

@ -1,11 +1,10 @@
Name: perl-IO-Tty
Version: 1.14
Release: 5%{?dist}
Version: 1.15
Release: 1%{?dist}
Summary: Perl interface to pseudo tty's
License: (GPL+ or Artistic) and BSD
URL: https://metacpan.org/release/IO-Tty
Source0: https://cpan.metacpan.org/modules/by-module/IO/IO-Tty-%{version}.tar.gz
Patch0: 0001-Make-function-tests-more-robust.patch
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
@ -41,10 +40,6 @@ IO::Tty and IO::Pty provide an interface to pseudo tty's.
%prep
%setup -q -n IO-Tty-%{version}
# Prevent false-positive detection of functions, e.g strlcpy() and _getpty()
# https://github.com/toddr/IO-Tty/pull/24
%patch0 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
@ -66,6 +61,13 @@ make test
%{_mandir}/man3/IO::Tty::Constant.3*
%changelog
* Wed Nov 4 2020 Paul Howarth <paul@city-fan.org> - 1.15-1
- Update to 1.15
- Skip winsize test on Solaris and QNX NTO (GH#22)
- Make function tests more robust (GH#24)
- Work around a header name collision on util.h; this is breaking on recent
OSX (GH#26)
* Sat Aug 22 2020 Paul Howarth <paul@city-fan.org> - 1.14-5
- Fix FTBFS due to false detection of strlcpy() and _getpty()
https://github.com/toddr/IO-Tty/pull/24

View File

@ -1 +1 @@
SHA512 (IO-Tty-1.14.tar.gz) = 4d6a5299f87eab0281f5e26953bc1537d760d88c486de9c8512750af733d5e466e059400a310746eb8fe432b8c8dcb82055c4cfbb1d31e25c9ce874557618305
SHA512 (IO-Tty-1.15.tar.gz) = 55329833d2e5ac426c0b69224e0af41d86c8dfd935c3698eb15800f0b7f48610651403ea54d9c7cad2f71b7c1080e957fa3706912680204f9b83c801095d2648