Bug 836194 - defined(@array) deprecated in Perl 5.15.7
defined(@array) deprecated in Perl 5.15.7
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: perl-Devel-Hide (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Iain Arnell
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-28 06:11 EDT by Paul Howarth
Modified: 2012-06-28 07:50 EDT (History)
2 users (show)

See Also:
Fixed In Version: 0.0008-11.fc18
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-06-28 07:50:12 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
CPAN 74225 None None None 2012-06-28 06:11:27 EDT

  None (edit)
Description Paul Howarth 2012-06-28 06:11:26 EDT
The 'defined(@array)' construction was actually deprecated a while back, but there was no warning on package variables until Perl 5.15.7.

The warnings show up in the build for Perl 5.16 (http://kojipkgs.fedoraproject.org//packages/perl-Devel-Hide/0.0008/10.fc18/data/logs/noarch/build.log):

$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
defined(@array) is deprecated at /builddir/build/BUILD/Devel-Hide-0.0008/blib/lib/Devel/Hide.pm line 104.
	(Maybe you should just omit the defined()?)
# Testing Devel::Hide 0.0008, Perl 5.016000, /usr/bin/perl
t/001use.t .............. ok
defined(@array) is deprecated at /builddir/build/BUILD/Devel-Hide-0.0008/blib/lib/Devel/Hide.pm line 104.
	(Maybe you should just omit the defined()?)
Devel::Hide hides Q.pm, R.pm
t/002basic.t ............ ok
defined(@array) is deprecated at /builddir/build/BUILD/Devel-Hide-0.0008/blib/lib/Devel/Hide.pm line 104.
	(Maybe you should just omit the defined()?)
Devel::Hide hides Q.pm, R.pm
t/003user.t ............. ok
defined(@array) is deprecated at /builddir/build/BUILD/Devel-Hide-0.0008/blib/lib/Devel/Hide.pm line 104.
	(Maybe you should just omit the defined()?)
Devel::Hide hides Q.pm, R.pm
t/004env.t .............. ok
defined(@array) is deprecated at /builddir/build/BUILD/Devel-Hide-0.0008/blib/lib/Devel/Hide.pm line 104.
	(Maybe you should just omit the defined()?)
t/005lib.t .............. ok
defined(@array) is deprecated at /builddir/build/BUILD/Devel-Hide-0.0008/blib/lib/Devel/Hide.pm line 104.
	(Maybe you should just omit the defined()?)
Devel::Hide: Too late to hide P.pm
t/006before.t ........... ok
defined(@array) is deprecated at /builddir/build/BUILD/Devel-Hide-0.0008/blib/lib/Devel/Hide.pm line 104.
	(Maybe you should just omit the defined()?)
Devel::Hide hides Q.pm, R.pm
defined(@array) is deprecated at /builddir/build/BUILD/Devel-Hide-0.0008/blib/lib/Devel/Hide.pm line 104.
	(Maybe you should just omit the defined()?)
Devel::Hide hides Q.pm, R.pm
t/050child-processes.t .. ok
t/090pod.t .............. ok
defined(@array) is deprecated at /builddir/build/BUILD/Devel-Hide-0.0008/blib/lib/Devel/Hide.pm line 104.
	(Maybe you should just omit the defined()?)
t/098pod-coverage.t ..... ok
All tests successful.
Files=9, Tests=45,  0 wallclock secs ( 0.04 usr  0.01 sys +  0.28 cusr  0.03 csys =  0.36 CPU)
Result: PASS

Omitting the defined() as suggested resolves the problem.
Comment 1 Iain Arnell 2012-06-28 07:50:12 EDT
Thanks, Paul. Patched and built for rawhide. 

https://koji.fedoraproject.org/koji/taskinfo?taskID=4204307

Note You need to log in before you can comment on or make changes to this bug.