[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnustep-make experiment

From: Nicola Pero
Subject: Re: gnustep-make experiment
Date: Mon, 12 Feb 2007 18:05:00 +0100 (CET)

Thanks ... good points.  I like the idea of doing it automatically
only if the user wants it, but I'm (personally) not too keen on having scripts 
that try to talk to the user and that require attention.

Maybe we could just print a warning at the end of compilation, saying

"Important: you may need to run ldconfig for your installed libraries to work.
Tip: If you want gnustep-make to do it automatically for you, please use the 
'make install ldconfig=yes'."

Then if you want gnustep-make to always do it for you (I will be one of those
when I'm not testing crazy setups) you can just add ldconfig=yes to your 
environment ...


-----Original Message-----
From: Richard Frith-Macdonald <address@hidden>
Sent: Mon, February 12, 2007 5:32 pm
To: address@hidden
Cc: Adam Fedor <address@hidden>, Developer GNUstep <address@hidden>
Subject: Re: gnustep-make experiment

On 12 Feb 2007, at 15:51, Nicola Pero wrote:

>>>  * How we decide if we have to run ldconfig or not ?  Do we need to
>>> run it only on GNU/Linux ?  Are there similar tools on other
>>> unixes ? (I imagine so, so we'll have a general-purpose post-
>>> library-install target-dependent command that we run automatically)
>> I'm pretty sure even libtool doesn't do that.  It prints out a big
>> warning about having to add the paths to your ld.conf yourself.
> Yes
>> I'd feel uncomfortable having something automatically mess with a  
>> system
>> file that could potential make the system unusable (however  
>> remotely).
> That's a good point - yes, ldconfig might generate issues. ;-)
> I suppose the right thing to do is printing a warning too then! ;-)
> Do we print it only on Linux ?

I agree that the point about not messing with system files is  
good ... but I never meant that we should do that without asking.
What I really had in mind was something like this ...

1. determine what system we are installing on and do something  
specific to the system type as below.

2. check to see if we need to add a path to /etc/,  If we  
do, print out a message explaining and ask the user if they want us  
to add the path for them.
If they say yes, explain that we will try using sudo/su and they will  
need to enter a password ...

3. Check to see if we need to rerun /sbin/ldconfig, If we do, print  
out a message to explain and ask the user if they want us to do it.
If they say yes, run it if it's s-bit set, otherwise go through the  
su/sudo thing again ...

Obviously stages 2 and 3 would vary from system to system and we  
don't have to implement everything at once ... on a system where we  
don't know what to do, we could just print out a message explaining  
the issue and telling the user they need to sort things out and we  
would appreciate contribution of code to do it automatically.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]