FS#45494 - [cloc] perl 5.22.0-1 breaks cloc

Attached to Project: Community Packages
Opened by Xinkai Chen (Xinkai) - Sunday, 28 June 2015, 18:20 GMT
Last edited by Evangelos Foutras (foutrelis) - Sunday, 28 June 2015, 19:22 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

perl 5.22.0-1 breaks cloc.

Additional info:
* cloc 1.62

Steps to reproduce:

Trying to run cloc, got:
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /usr/bin/cloc line 1178.

By the way, cloc 1.64 is out(released 2015-06-27). Did not work either, got a similar error:
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /usr/bin/cloc line 1284.

Downgrading perl to perl-5.20.2-1 works.

=============================

After some studying, I found out that the reason was because cloc uses deprecated syntax. I made a patch that can correct it. The patch should be applied to /usr/bin/cloc, version 1.64.

Reference: http://perldoc.perl.org/functions/defined.html
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Sunday, 28 June 2015, 19:22 GMT
Reason for closing:  Fixed
Additional comments about closing:  cloc 1.64-1

Loading...