lua-users home
lua-l archive

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


On 14 September 2015 at 09:12, Stefano <phd.st.p@gmail.com> wrote:
> On 13 September 2015 at 23:56, Daurnimator <quae@daurnimator.com> wrote:
>> I noticed many rocks have been excluded on OSX.
>> I think these are the ones that specify "unix" in the supported_platforms.
>> You should duplicate the config/code at:
>>
>> https://github.com/keplerproject/luarocks/blob/cc90426cad683caade7a24a7129445784152b448/src/luarocks/cfg.lua#L91
>
>
> Thanks for the link, I will definitely check it.
>
> However I am checking for 'unix' in the correct way already, indeed this is
> the complete OSX list regarding unsupported OS:
>
>   unsupported_os = {
>     cqueues = {
>       ["20150119.51-0"] = {
>         "linux",
>         "bsd",
>         "solaris"
>       },
>       ["20150119.51-1"] = {
>         "linux",
>         "bsd",
>         "solaris"
>       },
>       ["20150119.53-1"] = {
>         "linux",
>         "bsd",
>         "solaris"
>       },
>       ["20150907.51-0"] = {
>         "linux",
>         "bsd",
>         "solaris"
>       }
>     },
>     evdev = {
>       ["2.1.0-1"] = {
>         "linux"
>       }
>     },
>     ["lua-ttyrant"] = {
>       ["1.1-1"] = {
>         "linux"
>       }
>     },
>     luacwrap = {
>       ["1.0.4-1"] = {
>         "linux",
>         "windows"
>       },
>       ["1.1.0-1"] = {
>         "linux",
>         "windows"
>       }
>     },
>     ["luaish-windows"] = {
>       ["0.1-2"] = {
>         "windows",
>         "cygwin"
>       }
>     },
>     luawinapi = {
>       ["1.0.1-1"] = {
>         "linux",
>         "windows"
>       }
>     },
>     pdh = {
>       ["0.1.0-1"] = {
>         "windows"
>       },
>       ["0.1.2-1"] = {
>         "windows"
>       }
>     },
>     smartsnmp = {
>       ["0.1-1"] = {
>         "linux",
>         "openwrt",
>         "freebsd"
>       }
>     },
>     turbo = {
>       ["1.1-5"] = {
>         "linux"
>       },
>       ["2.0-1"] = {
>         "linux"
>       }
>     },
>     uinput = {
>       ["1.0.0-1"] = {
>         "linux"
>       }
>     },
>     winapi = {
>       ["1.4.2-1"] = {
>         "win32",
>         "mingw32"
>       }
>     }
>
> Stefano
>

Ah, it wasn't 'unix' that was missing for OSX, but 'bsd' (see
https://github.com/keplerproject/luarocks/blob/cc90426cad683caade7a24a7129445784152b448/src/luarocks/cfg.lua#L106
)

It appears that cqueues (which I maintain) is the only rock that uses this :P