Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: perl-Config-IniFiles should require IO::Scalar
https://bugzilla.redhat.com/show_bug.cgi?id=791078
Summary: perl-Config-IniFiles should require IO::Scalar Product: Fedora Version: rawhide Platform: Unspecified OS/Version: Unspecified Status: NEW Severity: unspecified Priority: unspecified Component: perl-Config-IniFiles AssignedTo: tcallawa@redhat.com ReportedBy: bochecha@fedoraproject.org QAContact: extras-qa@fedoraproject.org CC: tcallawa@redhat.com, fedora-perl-devel-list@redhat.com Classification: Fedora Story Points: --- Type: --- Regression: --- Mount Type: --- Documentation: ---
Description of problem: It is possible to pass a reference to a variable containing the ini "config file" to Config::IniFiles->new()
This feature requires IO::Scalar to be installed.
However, rpmbuild doesn't pick this dependency automatically.
Version-Release number of selected component (if applicable): perl-Config-IniFiles-2.68-1.fc16.noarch
How reproducible: Always
Steps to Reproduce: 1. yum install perl-Config-IniFiles 2. Run the following perl script: -- test.pl -- use Config::IniFiles;
my $ini = "[section]\nkey=value";
my $config = Config::IniFiles->new(-file=>$ini); -------------
Actual results: On a system without perl-IO-stringy installed, I get: [mathieu@localhost ~]$ perl test.pl Failed to open SCALAR(0x1034c48): No such file or directory at test.pl line 5
This means that the package is missing a requires on perl(IO::Scalar)
Expected results: The script should not fail, because perl-IO-stringy would be installed.
Additional info: The problem is present both in Fedora 16 and EPEL 6, probably in other releases as well.
Note that the requirement should probably be picked up by rpmbuild, my guess is that rpmbuild doesn't like the way IO::Scalar is used in Config::IniFiles: -- lib/Config/IniFiles.pm:2265 -- if (ref($thing) eq "SCALAR") { if (eval { require IO::Scalar; $IO::Scalar::VERSION >= 2.109; }) { return IO::Scalar->new($thing); } else { warn "SCALAR reference as file descriptor requires IO::stringy ". "v2.109 or later" if ($^W); return; } } ---------------------------------
Perhaps it could be added to the spec file in the meantime?
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=791078
Mathieu Bridon bochecha@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|rawhide |16
--- Comment #1 from Mathieu Bridon bochecha@fedoraproject.org 2012-02-15 23:51:55 EST --- I didn't actually verify the bug in Rawhide, so I'm setting the Version to "Fedora 16".
Sorry for the extra email, I should have paid more attention before submitting the bug.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=791078
--- Comment #2 from Fedora Update System updates@fedoraproject.org 2012-02-21 12:36:11 EST --- perl-Config-IniFiles-2.68-3.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/perl-Config-IniFiles-2.68-3.el6
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=791078
--- Comment #3 from Fedora Update System updates@fedoraproject.org 2012-02-21 12:36:22 EST --- perl-Config-IniFiles-2.68-3.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/perl-Config-IniFiles-2.68-3.fc16
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=791078
--- Comment #4 from Fedora Update System updates@fedoraproject.org 2012-02-21 12:36:32 EST --- perl-Config-IniFiles-2.68-3.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/perl-Config-IniFiles-2.68-3.el5
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=791078
--- Comment #5 from Fedora Update System updates@fedoraproject.org 2012-02-21 12:36:41 EST --- perl-Config-IniFiles-2.68-3.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/perl-Config-IniFiles-2.68-3.fc17
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=791078
--- Comment #6 from Fedora Update System updates@fedoraproject.org 2012-02-21 12:36:49 EST --- perl-Config-IniFiles-2.68-3.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/perl-Config-IniFiles-2.68-3.fc15
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=791078
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #7 from Fedora Update System updates@fedoraproject.org 2012-02-21 20:56:41 EST --- Package perl-Config-IniFiles-2.68-3.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing perl-Config-IniFiles-2.68-3.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-2142/perl-Config-IniFile... then log in and leave karma (feedback).
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=791078
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |perl-Config-IniFiles-2.68-3 | |.fc17 Resolution| |ERRATA Last Closed| |2012-02-28 05:49:38
--- Comment #8 from Fedora Update System updates@fedoraproject.org 2012-02-28 05:49:38 EST --- perl-Config-IniFiles-2.68-3.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=791078
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|perl-Config-IniFiles-2.68-3 |perl-Config-IniFiles-2.68-3 |.fc17 |.fc16
--- Comment #9 from Fedora Update System updates@fedoraproject.org 2012-03-01 04:23:56 EST --- perl-Config-IniFiles-2.68-3.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=791078
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|perl-Config-IniFiles-2.68-3 |perl-Config-IniFiles-2.68-3 |.fc16 |.fc15
--- Comment #10 from Fedora Update System updates@fedoraproject.org 2012-03-01 04:30:33 EST --- perl-Config-IniFiles-2.68-3.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=791078
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|perl-Config-IniFiles-2.68-3 |perl-Config-IniFiles-2.68-3 |.fc15 |.el5
--- Comment #11 from Fedora Update System updates@fedoraproject.org 2012-03-08 12:25:20 EST --- perl-Config-IniFiles-2.68-3.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=791078
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|perl-Config-IniFiles-2.68-3 |perl-Config-IniFiles-2.68-3 |.el5 |.el6
--- Comment #12 from Fedora Update System updates@fedoraproject.org 2012-03-08 12:25:46 EST --- perl-Config-IniFiles-2.68-3.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=791078
Konstantin Ryabitsev mricon@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mricon@gmail.com
--- Comment #13 from Konstantin Ryabitsev mricon@gmail.com --- There is no EL6 version of perl-IO-stringy, so this change breaks perl-Config-IniFiles on EL6.
https://bugzilla.redhat.com/show_bug.cgi?id=791078
Paul Howarth paul@city-fan.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |paul@city-fan.org
--- Comment #14 from Paul Howarth paul@city-fan.org --- (In reply to Konstantin Ryabitsev from comment #13)
There is no EL6 version of perl-IO-stringy, so this change breaks perl-Config-IniFiles on EL6.
Yes there is; it's in RHEL (optional), and CentOS (see Bug #884802).
https://bugzilla.redhat.com/show_bug.cgi?id=791078
--- Comment #15 from Konstantin Ryabitsev mricon@gmail.com --- You are correct, of course. For some reason this particular server didn't have the optional channel on. Sorry for the noise.
perl-devel@lists.fedoraproject.org