Kolab installation problem with perl

Liutauras Adomaitis liutauras.adomaitis at gmail.com
Thu May 14 22:49:43 CEST 2009


Hello,

I would like to report a problem with Kolab 2.2.1 installation.
- I met a problem, then openpkg was building perl package. The error was:

Making DynaLoader (static)
snip
opendir(./../../../../..): Permission denied at
../../lib/File/Spec/Unix.pm line 478
(sorry, full error message already lost in my browsing history, but I
can post it later if somebody is interested).

This error was solved, by applying patch (appended at the end of the
post). I could bypass this particular error by going to lib/Unix.pm
file and changing getcwd to cwd on the line 478, but then building
stops on the other file with the same error.
Is this a bug or something wrong with my installation?

One more thing - Kolab Wiki is referring to obmtool script, to edit it
by changing BUILDUSER variable to root if there is any permissions
problem, but there is no obmtool script. So probably wiki should be
updated.

Regards
Liutauras

--- lib/Cwd.pm  Tue Dec 18 10:47:07 2007
+++ lib/Cwd.pm.cwd      Thu Jan 24 12:33:29 2008
@@ -501,6 +501,11 @@
 sub _perl_abs_path
 {
     my $start = @_ ? shift : '.';
+
+    # this just returns a path down from /, without attempting to
+    # resolve .. or symlinks. It *may* be sufficient to build perl.
+    return $start =~ m!^/! ? $start : cwd() . '/' . $start;
+
     my($dotdots, $cwd, @pst, @cst, $dir, @tst);

     unless (@cst = stat( $start ))




More information about the users mailing list