Bug 412510 - Mihini's bin/ should be added at the beginning of the PATH, instead of the end
Summary: Mihini's bin/ should be added at the beginning of the PATH, instead of the end
Status: RESOLVED FIXED
Alias: None
Product: Mihini
Classification: IoT
Component: Agent (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.9 M1   Edit
Assignee: Romain Perier CLA
QA Contact: Robert Jacolin CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-08 10:40 EDT by Guilhem Saurel CLA
Modified: 2013-08-02 04:50 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guilhem Saurel CLA 2013-07-08 10:40:17 EDT
if we install mihini on a platform which already has lua installed in somewhere in the PATH (like /usr/bin), and then add <~mihini>/bin/ at the end of the path, as it's done in http://git.eclipse.org/c/mihini/org.eclipse.mihini.git/tree/agent/agent/appcon.lua#n91, the generated run files of the applications, which runs "lua main.lua", will use /usr/bin/lua instead of Mihini's one.

I suggest this way https://github.com/nim65s/mihini-repo/commit/5228b0db99917875c468831f3a8ff078a14e6179 for fixing this, because when appcon.lua runs, we may assume that Mihini's binaries comes first.
Comment 1 Romain Perier CLA 2013-07-09 05:45:08 EDT
cherry-picked into master

http://git.eclipse.org/c/mihini/org.eclipse.mihini.git/commit/?id=110654838ddd4fb79eb0f145340927054ef3c7d4 


Thanks for your patch !