Am 05.10.2005 um 09:25 schrieb Martin Costabel:

Max Horn wrote:
[]

He then got an error message by the installer, telling him about a problem setting up his .profile. Luckily I was around and he knew that I was somehow affiliated with this "Fink thingy". And indeed I managed to "fix" the broken installation by changing his .profile to .bashrc (no idea why this was necessary; interestingly, on my PowerBook, also running 10.4, the exact opposite is the case: .profile works fine, .bashrc apparently is being ignore). Well I already filed a bug report for this (may not be our fault, but we still have to deal with it, I am afraid).


There has been a bug report on this for a long time (#1020637). The problem is that the pathsetup script, when run automatically by the installer, sometimes suffers from a split personality syndrome: In the middle of its execution, it seems to forget that it runs as $USER and starts thinking it is root. Therefore it creates ~/.profile with root as owner (but in the correct home directory of $USER) and worse, when it tests whether the new setting works, it does the test as root and concludes that it doesn't work.

The only thing usually necessary to repair this is to run

  sudo chown $USER ~/.profile

Actually we did that, but it didn't help. Odd...


after the installation. Putting the "source /sw/bin/init.sh" into ~/.bashrc is not considered good practice, because .bashrc is executed in every subshell, but not in a login shell.
Yeah I know, but in this case it was the only way we got it to work :-/


Bye,
Max



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to