From 17474f6d2fe642035ce6b78d82c58040fd62c5e4 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Pialasse Date: Mon, 11 Mar 2024 16:18:36 -0400 Subject: [PATCH] patch defined array --- README.md | 7 +++---- perl-Unix-ConfigFile-defined.patch | 12 ++++++++++++ perl-Unix-ConfigFile.spec | 7 ++++++- 3 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 perl-Unix-ConfigFile-defined.patch diff --git a/README.md b/README.md index 33fbfa6..bc6a086 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,7 @@ ## Description -
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* -*Once it has been checked, then this comment will be deleted* -
- Perl-Unix-ConfigFile is a Perl module that provides a simple interface to parse configuration files of a Unix-type system. It reads and writes configuration files in a very flexible and easy to use format and provides methods to access and modify the data in the configuration file. It supports basic features such as comments, variable interpolation, and hierarchical data structures. + +Home Page : https://metacpan.org/dist/Unix-ConfigFile +Bug Tracker : https://rt.cpan.org/Public/Dist/Display.html?Name=Unix-ConfigFile diff --git a/perl-Unix-ConfigFile-defined.patch b/perl-Unix-ConfigFile-defined.patch new file mode 100644 index 0000000..aa6c1ab --- /dev/null +++ b/perl-Unix-ConfigFile-defined.patch @@ -0,0 +1,12 @@ +diff -Nur Unix-ConfigFile-0.06.old/AliasFile.pm Unix-ConfigFile-0.06/AliasFile.pm +--- Unix-ConfigFile-0.06.old/AliasFile.pm 2000-05-02 11:50:43.000000000 -0400 ++++ Unix-ConfigFile-0.06/AliasFile.pm 2024-03-11 16:12:49.412000000 -0400 +@@ -213,7 +213,7 @@ + } + my $name = $1; + my @users = $this->alias($name); +- next if !defined @users; ++ next if !@users; + print $fh $this->joinwrap(80, "$name: ", "\t", ",", ",", @users), "\n" + or return 0; + } diff --git a/perl-Unix-ConfigFile.spec b/perl-Unix-ConfigFile.spec index e61b501..48a2ff5 100644 --- a/perl-Unix-ConfigFile.spec +++ b/perl-Unix-ConfigFile.spec @@ -1,11 +1,12 @@ Name: perl-Unix-ConfigFile Version: 0.06 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Perl interface to various Unix configuration files License: CHECK(GPL+ or Artistic) Group: Development/Libraries URL: http://search.cpan.org/dist/Unix-ConfigFile/ Source0: http://www.cpan.org/authors/id/S/SS/SSNODGRA/Unix-ConfigFile-%{version}.tar.gz +Patch0: perl-Unix-ConfigFile-defined.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) @@ -25,6 +26,7 @@ own module. %prep %setup -q -n Unix-ConfigFile-%{version} +%patch0 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -53,6 +55,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/* %changelog +* Mon Mar 11 2024 Jean-Philippe Pialasse 0.06-2 +- fix cpan 103189 bug with defined @array + * Fri Jul 14 2023 BogusDateBot - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, by assuming the date is correct and changing the weekday.