lua 5.1 package installs libraries with wrong name

Bug #377239 reported by Marc Plano-Lesay
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Lua
Fix Released
Unknown
lua5.1 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The lua 5.1 package installs this libraries :
lrwxrwxrwx 1 root root 18 2009-05-09 22:41 liblua5.1.so -> liblua5.1.so.0.0.0
lrwxrwxrwx 1 root root 18 2009-05-02 09:45 liblua5.1.so.0 -> liblua5.1.so.0.0.0
-rw-r--r-- 1 root root 155K 2009-03-30 12:21 liblua5.1.so.0.0.0

The names are breaking portability of some applications using it, on most of any others distros, it's :
liblua.so -> liblua.so.5.1.4
liblua.so.5 -> liblua.so.5.1.4
liblua.so.5.1.4

I don't know in which pakage are theses files, probably in one of this two :
liblua5.1-0-dev (5.1.4-2)
lua5.1 (5.1.4-2)

I'm using Kubuntu 9.04

Revision history for this message
Caamas (francois-niedercorn2) wrote :

Using kubuntu 9.04 too.

lua5.1 do not install by default these libs.

They are in liblua5.1-0-dev

On debian lenny 5.0 it's exactly the same as in kubuntu 9.04.
liblua5.1.so.0 -> liblua5.1.so.0.0.0
liblua5.1.so.0.0.0

But for archlinux for example it's
liblua.so -> liblua.so.5.1
liblua.so.5.1

Could you be more specific on the list of applications with breaking portability ?

Thanks,

Revision history for this message
Marc Plano-Lesay (kernald) wrote :

Sorry, the only exemple I can remember is an application I'm developping myself, which was running fine on Gentoo and Arch, but when I tried to run it on my Kubuntu, the compiler didn't found the libraries (liblua.so). The only thing which make me tell that's the Ubuntu/Debian package which is "malformed", si that normally, the so name don't contain the version.

Revision history for this message
Caamas (francois-niedercorn2) wrote :

I've asked the BugSquad on #ubuntu-bugs, I'm waiting on an answer.

By the way, since it's an "home made" application is it just not possible to change the dependancy to run on Kubuntu ?

Cheers,

Revision history for this message
Marc Plano-Lesay (kernald) wrote :

Thank you. It's possible to change the dependancy, sure, but then it's not building anymore on Gentoo and others distros where the lib is called liblua.so, and I think libXX.so.version is better than libXXversion.so. Maybe I'm wrong, but... ;)

affects: ubuntu → lua5.1 (Ubuntu)
Revision history for this message
gares (gares) wrote :

You should change your makefiles to use pkg-config

gcc foo.c `pkg-config --libs --cflags lua5.1`

Cheers

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lua5.1 (Ubuntu):
status: New → Confirmed
Revision history for this message
Joe Alam (yothsoggoth) wrote :

It's understandable that using something like pkg-config can avoid this causing problems, but it's still a bit of an issue.

It's not only the libraries that are named in such a way, the headers are located in /usr/include/lua5.1/* rather than /usr/include/* (which they are in all other distributions I've checked on).

Is there any particular reason for naming them differently? If not, then surely it would make sense to follow the same pattern as other distributions, to help ease compatibility.

Revision history for this message
Miguel Rubio-Roy (mrubioroy) wrote :

Please use the standard behavior (also in Debian for other packages!) of

/usr/include/lua.h -> /usr/include/lua-DEFAULTVERSION/lua.h
and
/usr/lib/liblua.so -> /usr/lib/liblua-DEFAULTVERSION.so

Changed in lua:
status: Unknown → New
Changed in lua:
status: New → Fix Released
Revision history for this message
Miguel Rubio-Roy (mrubioroy) wrote :

Where is the fix going to be applied ? Is it an Ubuntu path ? Debian doesn't seem to want to patch it, according to the discussion in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781762

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.