From 70a32a0ee2770dca170f85387e6b727fb1e54057 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Sat, 25 Jan 2020 15:30:28 +0000 Subject: [PATCH] Update to 1.26 - New upstream release 1.26 - BUILD: Update FAIL_POSIX warning message (GH#28) - TEST: t/07_taint.t: Use executable name as source of taintedness (GH#21) - OTHER: Typographic corrections (CPAN RT#60211, CPAN RT#86403) - Add Travis configuration --- ...able-name-as-a-source-of-taintedness.patch | 37 ------------------- .rpmlint => perl-IPC-System-Simple.rpmlintrc | 0 perl-IPC-System-Simple.spec | 34 ++++++++--------- sources | 2 +- 4 files changed, 16 insertions(+), 57 deletions(-) delete mode 100644 IPC-System-Simple-1.25-Use-exucatable-name-as-a-source-of-taintedness.patch rename .rpmlint => perl-IPC-System-Simple.rpmlintrc (100%) diff --git a/IPC-System-Simple-1.25-Use-exucatable-name-as-a-source-of-taintedness.patch b/IPC-System-Simple-1.25-Use-exucatable-name-as-a-source-of-taintedness.patch deleted file mode 100644 index 5e480db..0000000 --- a/IPC-System-Simple-1.25-Use-exucatable-name-as-a-source-of-taintedness.patch +++ /dev/null @@ -1,37 +0,0 @@ -From ff8028c4d95425faa5b0705b8ed8c84b1112c7e4 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= -Date: Wed, 2 Aug 2017 17:29:13 +0200 -Subject: [PATCH] Use exucatable name as a source of taintedness -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Test::Simple >= 1.302065 injects variables into the environment. These -are not tainted and caused a random t/07_taint.t test failures. - -This patch fixes it by using executable name $0 instead. - -https://github.com/pjf/ipc-system-simple/issues/21 -Signed-off-by: Petr Písař ---- - t/07_taint.t | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/t/07_taint.t b/t/07_taint.t -index 49cee12..be449cd 100644 ---- a/t/07_taint.t -+++ b/t/07_taint.t -@@ -17,8 +17,8 @@ use_ok("IPC::System::Simple","run","capture"); - - chdir("t"); # Ignore return, since we may already be in t/ - --my $taint = $ENV{(keys(%ENV))[0]} . "foo"; # ."foo" to avoid zero length --ok(tainted($taint),"Sanity - ENV vars are tainted"); -+my $taint = $0 . "foo"; # ."foo" to avoid zero length -+ok(tainted($taint),"Sanity - executable name is tainted"); - - my $evil_zero = 1 - (length($taint) / length($taint)); - --- -2.9.4 - diff --git a/.rpmlint b/perl-IPC-System-Simple.rpmlintrc similarity index 100% rename from .rpmlint rename to perl-IPC-System-Simple.rpmlintrc diff --git a/perl-IPC-System-Simple.spec b/perl-IPC-System-Simple.spec index 1450b4f..007be34 100644 --- a/perl-IPC-System-Simple.spec +++ b/perl-IPC-System-Simple.spec @@ -6,23 +6,20 @@ %endif Name: perl-IPC-System-Simple -Version: 1.25 -Release: 24%{?dist} +Version: 1.26 +Release: 1%{?dist} License: GPL+ or Artistic Summary: Run commands simply, with detailed diagnostics URL: https://metacpan.org/release/IPC-System-Simple -Source0: https://cpan.metacpan.org/authors/id/P/PJ/PJF/IPC-System-Simple-%{version}.tar.gz -# Fix random test failures with Test-Simple 1.302065, proposed to upstream, -# -Patch0: IPC-System-Simple-1.25-Use-exucatable-name-as-a-source-of-taintedness.patch +Source0: https://cpan.metacpan.org/modules/by-module/IPC/IPC-System-Simple-%{version}.tar.gz BuildArch: noarch # Module Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-generators -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) # Module Runtime BuildRequires: perl(Carp) BuildRequires: perl(Config) @@ -47,12 +44,10 @@ BuildRequires: perl(Test::NoWarnings) # Break build-cycle: perl-IPC-System-Simple → perl-Test-Perl-Critic # → perl-Perl-Critic → perl-PPI → perl-IO-All → perl-File-MimeInfo # → perl-File-BaseDir → perl-IPC-System-Simple -BuildRequires: perl(English) +BuildRequires: perl(Pod::Coverage::TrustPod) BuildRequires: perl(Test::Perl::Critic) %endif -# Release Tests (wants Test::Pod 1.41 but EL-6 doesn't have it) -BuildRequires: perl(Pod::Coverage::TrustPod) -BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod) >= 1.41 BuildRequires: perl(Test::Pod::Coverage) >= 1.08 %endif # Dependencies @@ -73,7 +68,6 @@ return a zero exit value), or die with rich diagnostic messages. %prep %setup -q -n IPC-System-Simple-%{version} -%patch0 -p1 # Avoid doc-file dependencies chmod -c -x examples/*.pl @@ -91,21 +85,23 @@ find %{buildroot} -type f -name .packlist -delete make test \ %if %{with perl_IPC_System_Simple_enables_optional_test} TEST_AUTHOR=1 \ - %{!?perl_bootstrap:AUTHOR_TESTING=1} \ - RELEASE_TESTING=1 + %{!?perl_bootstrap:AUTHOR_TESTING=1} %endif %files -%if 0%{?_licensedir:1} %license LICENSE -%else -%doc LICENSE -%endif %doc Changes README examples/ %{perl_vendorlib}/IPC/ %{_mandir}/man3/IPC::System::Simple.3* %changelog +* Sat Jan 25 2020 Paul Howarth - 1.26-1 +- Update to 1.26 + - BUILD: Update FAIL_POSIX warning message (GH#28) + - TEST: t/07_taint.t: Use executable name as source of taintedness (GH#21) + - OTHER: Typographic corrections (CPAN RT#60211, CPAN RT#86403) + - Add Travis configuration + * Fri Jul 26 2019 Fedora Release Engineering - 1.25-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 0eec8c0..1687ead 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fb49e674e1d52e8e5646d08507d7fda5 IPC-System-Simple-1.25.tar.gz +SHA512 (IPC-System-Simple-1.26.tar.gz) = cf9a0ba99ecb080010f9da995d5985501dc61fb4254c4ba0c0033000e5f2678f728feb8cf3f96324439fcc77dbd76da6a509e0b75203ef37a8ca11bf1a2aa2bb