> Douglas Kline <[EMAIL PROTECTED]> said:
> >
> > I am attempting to install fink without using root privilege.
> [...]
> > I tried running that with the "selfupdate" argument. That failed for lack
of
> > .pm files that it looks for in the list of directories in @INC. So I copie
d in
> > the files from the directory tree fink-0.8.0-full-XCode-2.1/perlmod/Fink to
the
> > one directory in the list that fink has in @INC that isn't a system directo
ry.
> > It also ran sudo and and requested a password. I haven't so far been able
to
> > figure out where that call to sudo is.
>
> The logic of deciding root is needed (for example, when nonroot does
> "fink install somepkg") and the implementation of becoming root are
> handled in Engine.pm. Comment-out the call to restart_as_root, and
> fink will never try to become root. Selfupdate drops root privs when
> doing cvs manipulations (in SelfUpdate.pm, there are places where su
> is prepended to $cmdd) but I don't think rsync messes with user
> switching...might be a better thing to try.
Thanks, Dan. Commenting out the call to restart_as_root in Engine.pm seems to
have worked so far.
Now I'm getting a different error: The variable basepath is being defined to
its own name as a value in Engine.pm. When Engine.pm starts, the variable is
undefined. In the initialize sub-routine in Engine.pm it's defined in the
command
$self->{basepath} = $basepath = $config->param("basepath")
to its own name which, of course, leads to an error.
Earlier tests before I ran into this problem showed that fink was able to
locate the pathnames correctly in at least some cases. Any ideas as to what's
going wrong here? Should that sub-routine in Engine.pm be getting the correct
value from somewhere or should it be set elsewhere?
> If dselect is the stumbling block, just hack the apt package to avoid
> building it.
So far as I can tell, dselect isn't the stumbling block since it's not
mentioned in the error messages and the routines to which I've traced errors
aren't building dselect. I mentioned it because the documentation says that
it's one of the tools that this installation creates and it wasn't created.
Douglas
========
Douglas Kline
[EMAIL PROTECTED]
_______________________________________________
Fink-beginners mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-beginners