[Bug 791078] New: perl-Config-IniFiles should require IO::Scalar

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
        ReportedBy: bochecha@xxxxxxxxxxxxxxxxx
         QAContact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: tcallawa@xxxxxxxxxx, fedora-perl-devel-list@xxxxxxxxxx
    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?

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux