Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 239540

Summary: dev-libs/luasocket-2.0.2 (new package)
Product: Gentoo Linux Reporter: Pierre Guinoiseau <geekounet>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED FIXED    
Severity: enhancement CC: hans, tommy, whuwxl
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: luasocket-2.0.2.ebuild

Description Pierre Guinoiseau 2008-10-04 14:36:06 UTC
Hi, here is an ebuild for luasocket 2.0.2.
The original makefile is very bad, so some sed is needed on it, and it requires the deprecated USEflag on lua to link fine.
Comment 1 Pierre Guinoiseau 2008-10-04 14:36:36 UTC
Created attachment 167171 [details]
luasocket-2.0.2.ebuild
Comment 2 Thomas Sachau gentoo-dev 2008-10-04 22:31:07 UTC
Are you sure the app has no runtime dependency on lua?
Comment 3 Pierre Guinoiseau 2008-10-04 23:23:44 UTC
Hm... you need lua for using it, but the .so files seems not to be linked to lua. (strange that it's complaining on missing lua functions when compiling if it's not linked to, btw...). So I'm not sure about runtime dependency...
Comment 4 Pierre Guinoiseau 2008-10-05 09:01:08 UTC
But if you see the luafilesystem ebuild for example, it doesn't have any runtime dependency.
Comment 5 Thomas Sachau gentoo-dev 2008-10-05 11:15:44 UTC
If you need lua for using it, it is a runtime dependency. If you dont place it in RDEPEND, the package manager would be allowed to remove it after compilation and you would not be able to use it. ;-)

So in this case, you can just remove the RDEPEND line. If there is no RDEPEND, the package manager assumes that RDEPEND="${DEPEND}"
Comment 6 Pierre Guinoiseau 2008-10-05 11:27:45 UTC
Ha ok, I thought that RDEPEND would be empty if not present.
/me should re-read ebuild(5)...
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-09-28 10:55:01 UTC
I've imported this into portage because I needed it as dependency of another package, thanks!