On Mon, Jul 23, 2012 at 11:58 AM, eric koorn <[email protected]> wrote:
> L.S.
>
> With below patch I get luarocks (version 2.0.10) working for the lua
> packages I use on the NetBSD platform. Probably more needs to be done but
> with this first step packages get installed instead of failing on an
> unspecified stat option.
>
> ==BEGIN PATCH
> --- ./org/lua/share/lua/5.1/luarocks/cfg.lua    2012-07-23
> 03:35:07.000000000 +0200
> +++ ./new/lua/share/lua/5.1/luarocks/cfg.lua    2012-07-23
> 02:46:03.000000000 +0200
> @@ -69,6 +69,10 @@
>     detected.unix = true
>     detected.openbsd = true
>     detected.bsd = true
> +elseif system == "NetBSD" then
> +   detected.unix = true
> +   detected.netbsd = true
> +   detected.bsd = true
>  elseif system == "Darwin" then
>     detected.unix = true
>     detected.macosx = true
> @@ -380,6 +384,16 @@
>     defaults.platforms = {"unix", "bsd", "openbsd"}
>  end
>
> +if detected.netbsd then
> +   defaults.arch = "netbsd-"..proc
> +   defaults.make = "gmake"
> +   defaults.platforms = {"unix", "bsd", "netbsd"}
> +   defaults.variables.CC = "gcc"
> +   defaults.variables.LD = "gcc"
> +   defaults.variables.LIBFLAG = "-shared"
> +   defaults.variables.STATFLAG = "-f '%OLp'"
> +end
> +
>  if detected.solaris then
>     defaults.arch = "solaris-"..proc
>     defaults.platforms = {"unix", "solaris"}
> ==END PATCH

Thank you! A question, though: does the STATFLAG really have to be
different from the other BSDs?

-- Hisham
http://hisham.hm/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to