Hi all,

I don't have root on the macos box here, and despite begging the sysadmin
have been unable to convince her to install fink: "If you want linux
tools, ssh to a linux box".

Anyway, I've successfully got fink working with my ordinary user account,
and am sending you the steps in the hope they will be useful to others.
The patches could pretty easily be tidied up to go into the standard
distribution by adding a new rootmethod (ignore => fink must only install
software in your home directory).

Only five files needed changing:

Fink: bootstrap.pl:126
    $cmd = "$cmd | su";
  } else {
    print "ERROR: Can't continue as non-root.\n";
  }
  print "\n";
#  exit &execute($cmd, 1);

Fink: perlmod/Fink/Engine.pm:146
  # check if we need to be root
  #if ($rootflag and $> != 0) {
  #  &restart_as_root($cmd, @_);
  #}

fink: perlmod/Fink/SelfUpdate.pm:203
 warn "Can't set ownership of temporary directory '$tempdir'\n";

fink: perlmod/Fink/SelfUpdate.pm:225, and 238
    #if ($username ne "root") {
    #  $cmd = "su $username -c '$cmd'";
    #}

fink:Packages.pm:400

etc.

apt:<missing the file I patched here>

There was a sanity check 'if !root exit, else attempt to open
/var/cache/apt/'.
By deleting the sanity check it works correctly.

Presumably a better way would be to add an option if ($method ne "ignore")

Corrin



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to