I've noticed that there are a few patches out there that disable fink's need to be root, but they all have drawbacks, like dpkg needs to be root. I've noticed that many of the developers have repeatedly dismissed it and have not even looked into if it would be easy to do. I went through the fink source... err, the perl stuff and I've made a patch that sets fink up to run as the current user, and also sets dpkg up to run as root when needed. I use the $method (from Engine.pm) variable so that its not dependant on sudo, but I wasn't sure if I should make it global or make it local in all the functions that need it. I made it local to the functions that need it.

I hope that this can be looked at without the prejudice against it that I have seen from many developers towards pervious non-root patches. Also, my fink is set up to build in /tmp/fink instead of /sw/src and this is prob necessary for my non-root patch because the current user needs write privs and /sw/src isn't a good place to give world write privs. I'll look into seeing how to modify that dependancy. Perhaps a new default build dir?

One last thing, this is diff'd against rangerRick's 0.14.0-rsync special version, although it uses none of his modifications. I can diff it against current cvs if this is too complex for some of you out there. :-)

JP


Attachment: noRoot.patch
Description: Binary data




P.S. Feedback please?! :-D



--
Every time you share on a P2P network, God kills a kitten.
Please think of the kittens.



Reply via email to