Compiling Celestia puts absolute paths in the exe

General discussion about Celestia that doesn't fit into other forums.
Topic author
Johan
Posts: 19
Joined: 07.10.2008
With us: 16 years 1 month
Location: Toulouse, FRANCE

Compiling Celestia puts absolute paths in the exe

Post #1by Johan » 05.11.2008, 17:25

Hi all,

If I compile Celestia undeer Linux and move its directory, I get this message :

Code: Select all

$ bin/celestia
kbuildsycoca running...
DCOP Cleaning up dead connections.
Cannot chdir to '/data/users/jee/Celestia_SVN_RH4_KDE/share/celestia', probably due to improper installation
DCOP aborting call from 'anonymous-7034' to 'celestia'


It seems that the binary contains absolute paths like /usr/lib or the path where I compiled it. I see it with this command for example:

Code: Select all

$strings bin/celestia | grep share
/usr/local/share/lua/5.1/lua;/data/users/jee/Celestia_SVN_RH4_KDE/share/celestia;/data/users/jee/Celestia_SVN_RH4_KDE/share/locale


What can I do to have a "portable" Celestia under linux ?

Thanks in advance,

Johan (SpaceBel)

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: Compiling Celestia puts absolute paths in the exe

Post #2by John Van Vliet » 05.11.2008, 18:16

--- edit ---
Last edited by John Van Vliet on 25.10.2013, 03:24, edited 1 time in total.

Topic author
Johan
Posts: 19
Joined: 07.10.2008
With us: 16 years 1 month
Location: Toulouse, FRANCE

Re: Compiling Celestia puts absolute paths in the exe

Post #3by Johan » 05.11.2008, 18:40

Hi, thanks for answering.

I want to compile Celestia on a computer and then give it to users who install it wherever they want, without administrator right. Actually it's like puting it on an usb key.

I found the -dir <sharedir> option for Celestia, but the splashscreen image is not found, there is also the -s option to disable splashscreen. Maybe it's my solution.

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: Compiling Celestia puts absolute paths in the exe

Post #4by John Van Vliet » 05.11.2008, 22:53

--- edit ---
Last edited by John Van Vliet on 25.10.2013, 03:24, edited 1 time in total.

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: Compiling Celestia puts absolute paths in the exe

Post #5by selden » 06.11.2008, 00:27

My personal opinion is that there should be no need to invoke administrative privileges to install Celestia. That's just asking for trouble. It's too easy for malware to compromise an installation kit and then compromise whatever system it's installed on. Celestia does not need any special privileges to run and the installation procedure shouldn't either.
Selden

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: Compiling Celestia puts absolute paths in the exe

Post #6by John Van Vliet » 06.11.2008, 01:17

--- edit ---
Last edited by John Van Vliet on 25.10.2013, 03:23, edited 1 time in total.

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: Compiling Celestia puts absolute paths in the exe

Post #7by selden » 06.11.2008, 02:37

john Van Vliet wrote:
My personal opinion is that there should be no need to invoke administrative privileges to install Celestia
for a rpm or deb you DO need to have root access using su -, sodo,visudo, . pick one .
Now if you do build a Generic .zip file ( with all of the prerequisites in the celestia folder [--with glut ] ) then only getting Cell:\\something-something to work will need root access for SELinux or AppGuard/AppArmor

You should only need root if you write to system directories, which I think is what you're saying. Installing random software binaries with privileges enabled is asking for trouble, even if it's a package someone decided to call Celestia. :(

Not too long ago, I found packages with that name on many random Web sites. They were pointing to local copies, not to SourceForge. Who knows what was in them. A novice certainly wouldn't.

I think it would be best if all versions of Celestia for all platforms could avoid needing a privileged install of any kind. At least that way when one shows up claiming to need them, it can immediately be identified as being bogus.

But that's probably too much to ask :(
Selden

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: Compiling Celestia puts absolute paths in the exe

Post #8by John Van Vliet » 06.11.2008, 03:31

--- edit ---
Last edited by John Van Vliet on 25.10.2013, 03:23, edited 1 time in total.

Topic author
Johan
Posts: 19
Joined: 07.10.2008
With us: 16 years 1 month
Location: Toulouse, FRANCE

Re: Compiling Celestia puts absolute paths in the exe

Post #9by Johan » 06.11.2008, 10:13

Well I agree with Selden, and moreover I think it's better to distribute a package needing no administrator rights, because imagine someone who is at work and who wants to install Celestia without asking permission to his boss ;)
There is the problem of prerequisites, in my case all people will have the same OS, so the aim is to have a simple way to install, delivering some missing libraries in a local folder if needed.

Topic author
Johan
Posts: 19
Joined: 07.10.2008
With us: 16 years 1 month
Location: Toulouse, FRANCE

Re: Compiling Celestia puts absolute paths in the exe

Post #10by Johan » 06.11.2008, 14:24

I lose my menu bar in Celestia under kde, what did I do?? 8O

Topic author
Johan
Posts: 19
Joined: 07.10.2008
With us: 16 years 1 month
Location: Toulouse, FRANCE

Re: Compiling Celestia puts absolute paths in the exe

Post #11by Johan » 06.11.2008, 15:29

It would be fine if CONFIG_DATA_DIR was read in a file instead off defined at compilation with -DCONFIG_DATA_DIR='"$(PKGDATADIR)"'

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: Compiling Celestia puts absolute paths in the exe

Post #12by John Van Vliet » 06.11.2008, 17:31

--- edit ---


Return to “Celestia Users”