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)
This commit is contained in:
parent
acddabbd47
commit
22db2d1cde
@ -1,48 +0,0 @@
|
||||
commit 1735a78561dbe139fd138caef2d44d81f5494fe7
|
||||
Author: Khem Raj <raj.khem@gmail.com>
|
||||
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 <raj.khem@gmail.com>
|
||||
|
||||
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;
|
||||
@ -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 <paul@city-fan.org> - 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 <fweimer@redhat.com> - 1.17-5
|
||||
- Backport upstream patch to fix C99 compatibility issue
|
||||
|
||||
|
||||
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (IO-Tty-1.17.tar.gz) = a9a53670d579684af1ca0d6e77bd74430c801174c59421139f79a19e76377d40055b74a8b1ef92d8601ca5bda2f911cba99a0bda0c24cf847bacac3df2314d37
|
||||
SHA512 (IO-Tty-1.18.tar.gz) = 45f5e8856c8bd1169bf094407512cce901efe3cefadd279dff9aaee7c81289a160fa3589f0c01cc5829bcee3ed5d1eaf95002ca2207151d31ce293076dc86c06
|
||||
|
||||
Loading…
Reference in New Issue
Block a user