[jira] [Commented] (TS-4762) Improve the Lua package import paths.

2016-08-17 Thread Kit Chan (JIRA)

[ 
https://issues.apache.org/jira/browse/TS-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15425962#comment-15425962
 ] 

Kit Chan commented on TS-4762:
--

In the ts_lua plugin, we have functions to let the script to set the import 
paths.

Also let's remember that we should consider both "path" and "cpath" in this 
jira. 

> Improve the Lua package import paths.
> -
>
> Key: TS-4762
> URL: https://issues.apache.org/jira/browse/TS-4762
> Project: Traffic Server
>  Issue Type: Improvement
>  Components: Lua
>Reporter: James Peach
>Assignee: James Peach
> Fix For: sometime
>
>
> I noticed that when you build ATS with a non-default prefix, you end up with 
> unexpected Lua package paths.
> For example, this is what I had for {{package.path}}:
> {noformat}
> ./?.lua;/n/trafficserver/share/luajit-2.0.4/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/n/trafficserver/share/lua/5.1/?.lua;/n/trafficserver/share/lua/5.1/?/init.lua
> {noformat}
> Maybe we can think of a way to automatically get the right paths for the 
> platform.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (TS-4762) Improve the Lua package import paths.

2016-08-17 Thread Leif Hedstrom (JIRA)

[ 
https://issues.apache.org/jira/browse/TS-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15425681#comment-15425681
 ] 

Leif Hedstrom commented on TS-4762:
---

I have no idea, maybe also drag in [~humbedooh] ?

> Improve the Lua package import paths.
> -
>
> Key: TS-4762
> URL: https://issues.apache.org/jira/browse/TS-4762
> Project: Traffic Server
>  Issue Type: Improvement
>  Components: Lua
>Reporter: James Peach
>Assignee: James Peach
> Fix For: sometime
>
>
> I noticed that when you build ATS with a non-default prefix, you end up with 
> unexpected Lua package paths.
> For example, this is what I had for {{package.path}}:
> {noformat}
> ./?.lua;/n/trafficserver/share/luajit-2.0.4/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/n/trafficserver/share/lua/5.1/?.lua;/n/trafficserver/share/lua/5.1/?/init.lua
> {noformat}
> Maybe we can think of a way to automatically get the right paths for the 
> platform.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (TS-4762) Improve the Lua package import paths.

2016-08-17 Thread James Peach (JIRA)

[ 
https://issues.apache.org/jira/browse/TS-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15425524#comment-15425524
 ] 

James Peach commented on TS-4762:
-

[~zwoop] [~kichan] [~jesus] any ideas?

> Improve the Lua package import paths.
> -
>
> Key: TS-4762
> URL: https://issues.apache.org/jira/browse/TS-4762
> Project: Traffic Server
>  Issue Type: Improvement
>  Components: Lua
>Reporter: James Peach
>
> I noticed that when you build ATS with a non-default prefix, you end up with 
> unexpected Lua package paths.
> For example, this is what I had for {{package.path}}:
> {noformat}
> ./?.lua;/n/trafficserver/share/luajit-2.0.4/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/n/trafficserver/share/lua/5.1/?.lua;/n/trafficserver/share/lua/5.1/?/init.lua
> {noformat}
> Maybe we can think of a way to automatically get the right paths for the 
> platform.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)