Bug 440680 - Review Request: lua-logging - A simple API to use logging features in Lua
Summary: Review Request: lua-logging - A simple API to use logging features in Lua
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Michel Lind
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 440678 440679
Blocks: 440681
TreeView+ depends on / blocked
 
Reported: 2008-04-04 13:55 UTC by Tim Niemueller
Modified: 2010-11-07 15:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-13 21:38:37 UTC
Type: ---
Embargoed:
michel: fedora-review+
j: fedora-cvs+


Attachments (Terms of Use)

Description Tim Niemueller 2008-04-04 13:55:28 UTC
Spec URL: http://fedorapeople.org/~timn/luastuff/lua-logging.spec
SRPM URL: http://fedorapeople.org/~timn/luastuff/lua-logging-1.1.4-1.fc8.src.rpm
Description:
LuaLogging provides a simple API to use logging features in Lua. Its design was
based on log4j. LuaLogging currently supports, through the use of appenders,
console, file, email, socket and sql outputs.

Website: http://www.keplerproject.org/lualogging/

Comment 1 Tim Niemueller 2008-04-08 21:32:35 UTC
Hi Michel. The dependencies have just been approved and you can start reviewing
this package and #440681 now.

Comment 2 Michel Lind 2008-04-10 00:45:49 UTC
Thanks for the heads-up!

Same problem as luadoc:
- rpmlint: strange permission for tarball: 0600
- package is noarch but installs files in %{_libdir}
- does not seem to work on x86_64:

> require "logging.console"
> local logger = logging.console()
> =logger
nil


Comment 3 Tim Niemueller 2008-04-10 08:49:30 UTC
Same as luadoc, re-uploaded the very same SRPM with fixed source tarball
permissions. For this package there is nothing in %{_libdir} as well, tricked by
lualibdir define? Please otherwise attach "rpm -qpl" output of resulting package.

For the test you did: it cannot work the way you did it! The Lua shell compiles
every line as its own chunk. If you use "local logger" then it's only defined
for that very line and cannot be used in the next line. You can use either:
> local logger = logging.console(); logger:info("Test")
(have it both on one line such that logger is defined) or just don't have the
local such that the logger is global and thus available in the following lines.
This has nothing to do with x86_64 (I'm testing on this platform myself) - after
all this package is true noarch.

Comment 4 Michel Lind 2008-04-10 18:16:12 UTC
Aha! So that's the scope of local. I was expecting the context to be the entire
top-level, not just the single compilation unit. Thanks.

• rpmlint: OK
• package name: OK
• spec file name: OK
• package guideline-compliant: OK
• license complies with guidelines: OK
• license field accurate: OK
• license file not deleted: OK
• spec in US English: OK
• spec legible: OK
• source matches upstream: OK
• builds under >= 1 archs, others excluded: noarch
• build dependencies complete: OK
• locales handled using %find_lang, no %{_datadir}/locale: N/A
• library -> ldconfig: N/A
• relocatable: give reason: N/A
• own all directories: OK
• no dupes in %files: OK
• permission: OK
• %clean RPM_BUILD_ROOT: OK
• macros used consistently: OK
• Package contains code: OK
• large docs => -doc: N/A
• doc not runtime dependent: N/A
• headers in -devel: N/A
• static in -static: N/A
• if contains *.pc, req pkgconfig: N/A
• if libfiles are suffixed, the non-suffixed goes to devel: N/A
• devel requires versioned base package: N/A
• desktop file uses desktop-file-install: N/A
• clean buildroot before install: OK
• filenames UTF-8: OK

SHOULD
• if license text missing, ask upstream to include it: N/A
• desc and summary contain translations if available: No
• package build in mock on all architectures: OK
• package functioned as described: OK
• scriplets are sane: OK
• other subpackages should require versioned base: N/A
• if main pkg is development-wise, pkgconfig can go in main package: N/A
• require package not files: OK

APPROVED

Comment 5 Tim Niemueller 2008-04-10 21:33:22 UTC
New Package CVS Request
=======================
Package Name: lua-logging
Short Description: A simple API to use logging features in Lua
Owners: timn
Branches: F-7 F-8
InitialCC: 
Cvsextras Commits: yes

Comment 6 Kevin Fenzi 2008-04-12 22:00:01 UTC
cvs done.

Comment 7 Tim Niemueller 2010-11-07 00:19:23 UTC
Package Change Request
======================
Package Name: lua-logging
New Branches: el5 el6
Owners: timn

Comment 8 Jason Tibbitts 2010-11-07 15:39:57 UTC
Git done (by process-git-requests).


Note You need to log in before you can comment on or make changes to this bug.