Compare commits
No commits in common. "c8-stream-5.3" and "c10s" have entirely different histories.
c8-stream-
...
c10s
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/IPC-System-Simple-1.25.tar.gz
|
||||
/IPC-System-Simple-[0-9.]*.tar.gz
|
||||
|
||||
@ -1 +0,0 @@
|
||||
fb50f4f27407c81bb884073bd9bc5cf75f4841f1 SOURCES/IPC-System-Simple-1.25.tar.gz
|
||||
@ -1,37 +0,0 @@
|
||||
From ff8028c4d95425faa5b0705b8ed8c84b1112c7e4 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||
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ř <ppisar@redhat.com>
|
||||
---
|
||||
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
|
||||
|
||||
7
gating.yaml
Normal file
7
gating.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
# RHEL
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-*
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
@ -6,23 +6,20 @@
|
||||
%endif
|
||||
|
||||
Name: perl-IPC-System-Simple
|
||||
Version: 1.25
|
||||
Release: 18%{?dist}
|
||||
License: GPL+ or Artistic
|
||||
Version: 1.30
|
||||
Release: 16%{?dist}
|
||||
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
||||
Summary: Run commands simply, with detailed diagnostics
|
||||
URL: http://search.cpan.org/dist/IPC-System-Simple
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/P/PJ/PJF/IPC-System-Simple-%{version}.tar.gz
|
||||
# Fix random test failures with Test-Simple 1.302065, proposed to upstream,
|
||||
# <https://github.com/pjf/ipc-system-simple/issues/21>
|
||||
Patch0: IPC-System-Simple-1.25-Use-exucatable-name-as-a-source-of-taintedness.patch
|
||||
URL: https://metacpan.org/release/IPC-System-Simple
|
||||
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)
|
||||
@ -42,21 +39,9 @@ BuildRequires: perl(Test::More)
|
||||
# Optional Tests
|
||||
BuildRequires: perl(BSD::Resource)
|
||||
BuildRequires: perl(Test::NoWarnings)
|
||||
# Author Tests
|
||||
%if !%{defined perl_bootstrap}
|
||||
# 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(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::Coverage) >= 1.08
|
||||
%endif
|
||||
# Dependencies
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
# (none)
|
||||
|
||||
%description
|
||||
Calling Perl's in-built 'system()' function is easy; determining if it
|
||||
@ -71,9 +56,22 @@ want to be really lazy, you can just write:
|
||||
and all of your "system" commands will either succeed (run to completion and
|
||||
return a zero exit value), or die with rich diagnostic messages.
|
||||
|
||||
%package tests
|
||||
Summary: Tests for %{name}
|
||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Requires: perl-Test-Harness
|
||||
|
||||
%description tests
|
||||
Tests from %{name}. Execute them
|
||||
with "%{_libexecdir}/%{name}/test".
|
||||
|
||||
%prep
|
||||
%setup -q -n IPC-System-Simple-%{version}
|
||||
%patch0 -p1
|
||||
# Help generators to recognize Perl scripts
|
||||
for F in t/*.t; do
|
||||
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
||||
chmod +x "$F"
|
||||
done
|
||||
|
||||
# Avoid doc-file dependencies
|
||||
chmod -c -x examples/*.pl
|
||||
@ -86,28 +84,127 @@ make %{?_smp_mflags}
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -delete
|
||||
%{_fixperms} -c %{buildroot}
|
||||
# Install tests
|
||||
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
||||
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
||||
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
||||
#!/bin/bash
|
||||
set -e
|
||||
DIR=$(mktemp -d)
|
||||
pushd "$DIR"
|
||||
cp -a %{_libexecdir}/%{name}/* ./
|
||||
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
||||
popd
|
||||
rm -rf "$DIR"
|
||||
EOF
|
||||
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
||||
|
||||
%check
|
||||
make test \
|
||||
%if %{with perl_IPC_System_Simple_enables_optional_test}
|
||||
TEST_AUTHOR=1 \
|
||||
%{!?perl_bootstrap:AUTHOR_TESTING=1} \
|
||||
RELEASE_TESTING=1
|
||||
%endif
|
||||
make test
|
||||
|
||||
%files
|
||||
%if 0%{?_licensedir:1}
|
||||
%license LICENSE
|
||||
%else
|
||||
%doc LICENSE
|
||||
%endif
|
||||
%doc Changes README examples/
|
||||
%{perl_vendorlib}/IPC/
|
||||
%{_mandir}/man3/IPC::System::Simple.3*
|
||||
|
||||
%files tests
|
||||
%{_libexecdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-18
|
||||
- Rebuild with enable hardening (bug #1636329)
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.30-16
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Wed Jul 24 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1.30-15
|
||||
- Package tests
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.30-14
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.30-8
|
||||
- Perl 5.36 rebuild
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.30-5
|
||||
- Perl 5.34 rebuild
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.30-2
|
||||
- Perl 5.32 rebuild
|
||||
|
||||
* Tue Mar 24 2020 Paul Howarth <paul@city-fan.org> - 1.30-1
|
||||
- Update to 1.30
|
||||
- On MSWin32, make Win32::Process a prerequisite
|
||||
|
||||
* Sun Mar 22 2020 Paul Howarth <paul@city-fan.org> - 1.29-1
|
||||
- Update to 1.29
|
||||
- Improved handling of shell commands on Windows, which should get us closer
|
||||
to resolving Win32-related issues; there should be no change of
|
||||
functionality on Unix-like platforms
|
||||
- Better workaround for bug in perl-5.8.9 (GH#23)
|
||||
- Add t/args.t
|
||||
- Modify t/win32.t
|
||||
- Added Travis and AppVeyor configuration files
|
||||
- Eliminated use of Dist::Zilla for build, using older, but more reliable and
|
||||
better understood (by maintainer) ExtUtils::MakeMaker-based configuration
|
||||
- Move author testing to xt/ directory
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.26-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Sat Jan 25 2020 Paul Howarth <paul@city-fan.org> - 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 <releng@fedoraproject.org> - 1.25-24
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-23
|
||||
- Perl 5.30 re-rebuild of bootstrapped packages
|
||||
|
||||
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-22
|
||||
- Perl 5.30 rebuild
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.25-21
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.25-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-19
|
||||
- Perl 5.28 re-rebuild of bootstrapped packages
|
||||
|
||||
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.25-18
|
||||
- Perl 5.28 rebuild
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.25-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
5
plans/sanity.fmf
Normal file
5
plans/sanity.fmf
Normal file
@ -0,0 +1,5 @@
|
||||
summary: Sanity tests
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (IPC-System-Simple-1.30.tar.gz) = 82937df80ae38a9c21e43e256a21cdac1482d4a069eae282043d676ece06251a7139b752cd2b379a0f69ea9209ddd075607da86c6cb9b25f19cf90d91c28d72f
|
||||
12
tests/upstream-tests.fmf
Normal file
12
tests/upstream-tests.fmf
Normal file
@ -0,0 +1,12 @@
|
||||
summary: Upstream tests
|
||||
contact: Jitka Plesnikova <jplesnik@redhat.com>
|
||||
component: perl-IPC-System-Simple
|
||||
require: perl-IPC-System-Simple-tests
|
||||
test: /usr/libexec/perl-IPC-System-Simple/test
|
||||
enabled: true
|
||||
tag:
|
||||
- rhel-buildroot
|
||||
adjust:
|
||||
- enabled: false
|
||||
when: distro < rhel-10 or distro < centos-stream-10
|
||||
continue: false
|
||||
Loading…
Reference in New Issue
Block a user