Skip Menu |

This queue is for tickets about the Locale-Object CPAN distribution.

Report information
The Basics
Id: 79793
Status: patched
Priority: 0/
Queue: Locale-Object

People
Owner: cpan [...] desert-island.me.uk
Requestors: jnareb [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.78
Fixed in: (no value)



Subject: Locale-Object fails to build: Couldn't make blib/ directory: File exists at lib/copy-for-test.PL line 17
I cannot install current version of Locale::Object. It fails at the build step with the following error: Building and testing Locale-Object-0.78 Building Locale-Object Couldn't make blib/ directory: File exists at lib/copy-for-test.PL line 17. lib/copy-for-test.PL failed at ~/perl5/lib/perl5/Module/Build/Base.pm line 2963. -> FAIL Installing Locale::Object failed. See ~/.cpanm/build.log for details. perl v5.14.2 built for i686-linux-gnu-thread-multi-64int Linux 3.2.0-31-generic (Ubuntu 11.04)
On Sob 22 Wrz 2012, 15:09:54, http://jnareb.myopenid.com/ wrote: Show quoted text
> I cannot install current version of Locale::Object. It fails at the > build step with the following error: > > Building and testing Locale-Object-0.78 > Building Locale-Object > Couldn't make blib/ directory: File exists at lib/copy-for-test.PL
line 17. The new version didn't work because of non-English locale. The error message was actually Couldn't make blib/ directory: Plik istnieje at lib/copy-for-test.PL line 17. A better solution would be to simply check if directory was created, i.e. '-d $where'
From: Jakub Narębski <jnareb [...] gmail.com>
Attached possible solution.
Subject: Locale-Object.diff.txt
--- copy-for-test.PL~ 2007-10-25 13:17:43.000000000 +0200 +++ copy-for-test.PL 2012-09-22 21:43:52.130909953 +0200 @@ -14,7 +14,7 @@ $where = $where . $dir; mkdir $where; - die "Couldn't make $where directory: $!" unless $! =~ /File exists/; + die "Couldn't make $where directory: $!" unless -d $where; } copy('lib/Locale/Object/locale.db', 'blib/lib/Locale/Object/locale.db')