diff options
author | http://kerravonsen.dreamwidth.org/ <http://kerravonsen.dreamwidth.org/@web> | 2014-12-16 03:02:03 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2014-12-16 03:02:03 -0400 |
commit | d9dd357eb2c62e0ec8f5192ddea678238e43c7f8 (patch) | |
tree | 86c8f4a2f50a98f7a039b12d1a4c9b3e6ab96ce6 /doc | |
parent | 287231f7d29374264c2cd23818d5cb9d607d33e9 (diff) | |
download | ikiwiki-d9dd357eb2c62e0ec8f5192ddea678238e43c7f8.tar ikiwiki-d9dd357eb2c62e0ec8f5192ddea678238e43c7f8.tar.gz |
bug with patch
Diffstat (limited to 'doc')
-rw-r--r-- | doc/bugs/getlibdirs_function_failure.mdwn | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/bugs/getlibdirs_function_failure.mdwn b/doc/bugs/getlibdirs_function_failure.mdwn new file mode 100644 index 000000000..68d432633 --- /dev/null +++ b/doc/bugs/getlibdirs_function_failure.mdwn @@ -0,0 +1,13 @@ +Up-to-date version today (commit 287231f7d29374264c2cd23818d5cb9d607d33e9). Now "make test" fails with the following error: + + Error: Can't use an undefined value as an ARRAY reference at /home/kat/files/repos/ikiwiki_master/blib/lib/IkiWiki.pm line 570. + +Looked up line 570, it's the first line of the "getlibdirs" function. + + my @libdirs = @{$config{libdirs}}; + +This error is triggered when $config{libdirs} is undefined; it didn't happen in the previous version because more checking was done before the value was dereferenced. + +A simple patch would be to alter that line to this: + + my @libdirs = $config{libdirs} ? @{$config{libdirs}} : (); |