FS#20382 - [lua-zlib] Wrong installation path

Attached to Project: Community Packages
Opened by Thomas Jost (Schnouki) - Thursday, 05 August 2010, 16:14 GMT
Last edited by Laurent Carlier (lordheavy) - Wednesday, 11 August 2010, 08:53 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Dan Griffiths (Ghost1227)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The lua-zlib packages installs its zlib.so file in /usr/share/lua/5.1. The correct path for a .so would be /usr/lib/lua/5.1, because lua only looks for .lua files in /usr/share/lua and .so files in /usr/lib/lua.

(The upstream source tree has the correct path in Makefile, but not in CMakeLists.txt...)

At the moment, lua can't even use this package:

$ lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> require('zlib')
stdin:1: module 'zlib' not found:
no field package.preload['zlib']
no file './zlib.lua'
no file '/usr/share/lua/5.1/zlib.lua'
no file '/usr/share/lua/5.1/zlib/init.lua'
no file '/usr/lib/lua/5.1/zlib.lua'
no file '/usr/lib/lua/5.1/zlib/init.lua'
no file './zlib.so'
no file '/usr/lib/lua/5.1/zlib.so'
no file '/usr/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
stdin:1: in main chunk
[C]: ?
>

(This also breaks the compression module of Prosody, which is how I found this bug in the first place).

Changing the path in the PKGBUILD fixes the problem.
This task depends upon

Closed by  Laurent Carlier (lordheavy)
Wednesday, 11 August 2010, 08:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in lua-zlib-0-2

Loading...