valide does not respect LD_LIBRARY_PATH?

Bug #687928 reported by Christian González
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
valide
Fix Released
Medium
Nicolas Joseph

Bug Description

Operating system: Ubuntu 10.04 with vala-team ppa
Vala version: 0.9.7
Valide version (or svn revision): svn HEAD (0.8)

What steps will reproduce the problem?
1. configure and compile, and install valide to /usr/local
export the LD_LIBRARY_PATH '/usr/local/lib' to your session and start valide, it works normal.

2.load valide as project, compile it INSIDE valide and start it, the executed program uses the system (in this case /usr/local/lib) libvalide.so lib, and NOT the _INSTALL_/lib/ library

3. now change some small code in libvalide (e.g. in libvalide/vapi/plugin-manager.vala) and run it from within the IDE.

What is the expected output? What do you see instead?
I expect that the executed program uses the library that is set in the project options.
Instead the executed valide uses the system library path.

Revision history for this message
Christian González (droetker) wrote :

Don't know how valide sets the LD_LIBRARY_PATH in the execution environment.
But could it be a solution to set './_install_/lib:$LD_LIBRARY_PATH' instead of '$LD_LIBRARY_PATH:./_install_/lib'
then the first lib found is the local.

Revision history for this message
Christian González (droetker) wrote :

changing the positions doesn't help either.
if I patch valide to print the environment, it prints out two LD_LIBRARY_PATHs, one after another:

LD_LIBRARY_PATH=:/usr/local/lib
LD_LIBRARY_PATH=./_install_/lib

so the second one is the right, and should be used - it is overwriting the original one. But it has no effect.

Revision history for this message
Nicolas Joseph (gege2061) wrote :

Now you can use shell replacement:

  ./_install_/lib:$LD_LIBRARY_PATH

;)

Revision history for this message
Christian González (droetker) wrote :

sorry, not working here.
The code looks better (hashtable), but if I set *any* environment variable in *any* project - the program does not execute:

(Valatest:1571): Gtk-WARNING **: cannot open display: :0.0

But valaide now uses the right library code.

Changed in valide:
status: Triaged → Fix Committed
milestone: none → 0.7.1
Changed in valide:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.