Lua SIG feelers

Tim Niemueller tim at niemueller.de
Thu Apr 10 11:20:22 UTC 2008


Michel Salim schrieb:
>>  Is there anything specific involved in creating a SIG besides having
>>  interested people and setting up a Wiki page?
>>
> That's probably it. I've put up the Wiki page at
> http://fedoraproject.org/wiki/SIGs/Lua

Cool.

> This might need to be added to the guideline: Lua seems to search for
> libraries only in the current directory and in %{_libdir}. This means
> that even packages that are actually noarch cannot be declared as
> such, to make sure that they are built separately on each platform.

That is wrong. Lua searches:
> print(package.path)
./?.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib64/lua/5.1/?.lua;/usr/lib64/lua/5.1/?/init.lua
> print(package.cpath)
./?.so;/usr/lib64/lua/5.1/?.so;/usr/lib64/lua/5.1/loadall.so

That means that noarch packages that only have lua files are possible,
these files are packaged to /usr/share/lua/5.1/ (which I define as
luapkgdir in my specs). Hans and I have adapted the Lua package to own
these package directories such that they always exist when Lua is
installed and are properly removed if you remove Lua.

So having noarch Lua addon packages is possible (and done so with
currently in review lua-logging and luadoc).

	Tim

-- 
    Tim Niemueller <tim at niemueller.de>      www.niemueller.de
=================================================================
 Imagination is more important than knowledge. (Albert Einstein)




More information about the fedora-devel-list mailing list