Yeah, I am using this for libobjc2 living in a custom directory:

echo "/path/to/library/directory" | sudo tee /etc/ld.so.conf.d/GNUstep.conf
sudo ldconfig -n "/path/to/library/directory" -v

But here is a question: why is gopen setuid root?

On Thu, Dec 3, 2015, 09:38 Luis Garcia Alanis <[email protected]> wrote:

> So it seems:
>
> On Linux, when a *setuid* (or *setgid*) program is ran, it does not
> receive certain environment variables (including LD_LIBRARY_PATH, several
> other LD_* variables, and HOSTALIASES), in order to reduce the possible
> attack points: Otherwise you could write a small library and trick su or
> sudo into calling your "improved" functions that way
>
> So, an entry in /etc/ld.so.conf.d is needed....
>
>
> On Wed, Dec 2, 2015 at 10:26 PM, Luis Garcia Alanis <[email protected]>
> wrote:
>
>> Ups, ctrl+enter sent the mail :P
>>
>> I am using ubuntu 15.10, I am setting GNUstep.sh to be sourced
>> on /etc/profile.d/gnustep.sh
>>
>> When I open a terminal on X and try to gopen I get an error:
>>
>> gopen: error while loading shared libraries: libgnustep-gui.so.0.24:
>> cannot open shared object file: No such file or directory
>>
>> Upon more investigation I see, the GNUstep enviroment is set but not the
>> LD_LIBRARY_PATH.
>>
>> $ env | grep gnustep
>>
>> DEFAULTS_PATH=/usr/share/gconf/gnustep.default.path
>> XDG_CONFIG_DIRS=/etc/xdg/xdg-gnustep:/etc/xdg
>> DESKTOP_SESSION=gnustep
>> MANDATORY_PATH=/usr/share/gconf/gnustep.mandatory.path
>> GDMSESSION=gnustep
>> XDG_SESSION_DESKTOP=gnustep
>>
>> XDG_DATA_DIRS=/usr/share/gnustep:/usr/share/gnome:/usr/local/share/:/usr/share/
>>
>> $ env | grep GNUSTEP
>> GNUSTEP_IS_FLATTENED=yes
>> GNUSTEP_LOCAL_ROOT=/Local
>> GNUSTEP_HOST=x86_64-unknown-linux-gnu
>> GNUSTEP_MAKEFILES=/System/Library/Makefiles
>> GNUSTEP_NETWORK_ROOT=/Network
>> GNUSTEP_FLATTENED=yes
>> GNUSTEP_HOST_OS=linux-gnu
>> GNUSTEP_HOST_VENDOR=unknown
>> GNUSTEP_HOST_CPU=x86_64
>> GNUSTEP_USER_ROOT=/home/luis/GNUstep
>> GNUSTEP_SYSTEM_ROOT=/System
>> GNUSTEP_PATHLIST=/System:/Network:/Local:/home/luis/GNUstep
>>
>>
>> I think this is a bug, any ideas?
>> if I run . /System/Library/Makefiles/GNUstep.sh from the command line
>> then is set correctly.
>>
>> is there a difference on the profile enviroment that would prevent
>> LD_LIBRARY_PATH to be set?
>>
>>
>> On Wed, Dec 2, 2015 at 10:21 PM, Luis Garcia Alanis <[email protected]>
>> wrote:
>>
>>> Hello,
>>>
>>> I am using ubuntu 15.10, I am setting GNUstep.sh to be sourced
>>> on /etc/profile.d/gnustep.sh
>>>
>>> When I open a terminal on X and try to gopen I get an error:
>>>
>>>
>>
> _______________________________________________
> Discuss-gnustep mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep
>
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to