Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment setup issues #13

Open
nfroggy opened this issue Apr 2, 2024 · 3 comments
Open

Environment setup issues #13

nfroggy opened this issue Apr 2, 2024 · 3 comments

Comments

@nfroggy
Copy link

nfroggy commented Apr 2, 2024

Hi,
When I tried using the scripts to install GNUstep on a Debian machine (I ran install-dependencies-linux and then update-gnustep), the compilation went successfully but when update-gnustep tried to run make-services, it failed because the environment wasn't set up (so /usr/GNUstep/System/Tools) wasn't in the PATH, etc). I think that if you're targeting users who are new to GNUstep, these scripts should either add the . /usr/GNUstep/System/Library/Makefiles/GNUstep.sh line to the user's ~/.profile file or inform the user that they have to do this.

@nfroggy
Copy link
Author

nfroggy commented Apr 2, 2024

Added complications- I found that some display managers ignore ~/.profile in favor of ~/.xsessionrc, and I'm not sure how to set up the environment in root's account such that sudo make install works.

@pkgdemon
Copy link
Contributor

pkgdemon commented Apr 3, 2024

I've found that /usr/GNUstep/System/Library/Makefiles/GNUstep.sh is symlinked to /etc/profiled.d/GNUstep.sh. It works for me if I log out, log back in before running other commands.

@nfroggy
Copy link
Author

nfroggy commented Apr 3, 2024

Thanks, I didn't notice that the script tries to set up the environment. Unfortunately some display managers also ignore /etc/profile.d/ and /etc/profiles (which is lame because I agree that /etc/profile.d/ is the cleanest place for a script to put the environment setup). I think that ~/.xsessionrc should be supported by all display managers, but I just found out that it's a Debian specific thing isn't supported by other distros. What a complicated state of affairs...

BTW, I found that sudo -E make install is a workaround for root not having his environment set up, but I'm sure you all already knew that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants