[Bug 1258940] perl-Log-Dispatch >= 2.47 causes other modules to fail

bugzilla at redhat.com bugzilla at redhat.com
Wed Sep 2 08:50:28 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1258940

Petr Pisar <ppisar at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppisar at redhat.com
            Summary|new versions of             |perl-Log-Dispatch >= 2.47
                   |perl-Log-Dispatch cause     |causes other modules to
                   |other modules to fail       |fail



--- Comment #2 from Petr Pisar <ppisar at redhat.com> ---
That's because the commit logs into STDERR's file descriptor. It logged into
perl's STDERR handle before.

For example Log-Dispatch-Config test ties a scalar variable to the STDERR
object in order to redirect the logging I/O into the variable. As a result of
the commit, the log messages are printed to /dev/stderr instead of into the
$err scalar tied to the STDERR object, and the test fail.

While I can fix Log-Dispatch-Config's tests (even Log-Dispatch's tests were
changed in the commit) because the Log::Dispatch::Config is just a simple
wrapper around Log::Dispatch constructor, the Log-Dispatch's behavior will
remain changed and other code using the module possibly affected.

There is Log-Dispatch's CPAN RT#106605 supposedly fixed in 2.49, but this still
does not fix this bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the perl-devel mailing list