Bug 1019770 - Review Request: lua-term - lua module for manipulating terminal
Summary: Review Request: lua-term - lua module for manipulating terminal
Keywords:
Status: CLOSED DUPLICATE of bug 1093503
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-16 11:29 UTC by Jiri Machala
Modified: 2020-01-30 10:21 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-01 22:52:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jiri Machala 2013-10-16 11:29:27 UTC
Spec URL: http://www.fi.muni.cz/~xmachal4/fedorapackages/lua-term.spec
SRPM URL: http://www.fi.muni.cz/~xmachal4/fedorapackages/lua-term-0.02-1.fc19.src.rpm
Description: lua-term is a Lua module for manipulating a terminal
Fedora Account System Username: jmachala

koji build: https://koji.fedoraproject.org/koji/taskinfo?taskID=6064842

Hello,
this is my first fedora package (I'm trying to put into practice what I learned week ago on fedora packaging workshop :) ), so I'll need a sponsor for it. It's really simple lua module so I suppose there shouldn't be any problems with it.
I need it as a dependency for a software(Lmod), I'd like to package next.

Comment 1 Johan Swensson 2013-10-19 09:22:22 UTC
A few comments.

drop %clean

You have duplicate file listings.
https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#DuplicateFiles

Comment 2 Michael Schwendt 2013-10-21 15:04:26 UTC
Right.

[...]

The file at "Spec URL" and the spec file in the src.rpm are not the same. The diff is:

-%{lualibdir}/term/core.so
+%attr(644, -, -) %{lualibdir}/term/core.so

The %changelog ought to have mentioned that. ;)

So far, we keep shared libs executable, since that's a requirement for the automatic -debuginfo generation and stripping done by rpmbuild. We must not turn them -x in %install. Setting them to -x via %attr works _currently_, because apparently it sets the file attribute at a sufficiently later point.  Though, it's widely accepted practise to restrict usage of %attr to setting really special/unusual permissions (e.g. setuid, setgid, g-rx) and owner/group changes, so special attributes set with %attr really stick out (especially when using syntax highlighting). 
There's nothing in the packaging guidelines about it yet. Better not get used to 
using %attr for ordinary permissions that could be set in %install. In packages with many more files, if you needed to "fix" permissions, overusing %attr would reduce readability of the spec file a lot.

Comment 3 Orion Poplawski 2014-04-02 04:48:36 UTC
Jiri - Are you still interested in packaging this?  I can sponsor you if so, but you should address the above concerns fist.

Comment 4 Orion Poplawski 2014-04-02 05:14:22 UTC
Package doesn't work on Fedora 20:

# lua
Lua 5.2.2  Copyright (C) 1994-2013 Lua.org, PUC-Rio
> local term = require 'term'
error loading module 'term.cursor' from file '/usr/share/lua/5.2/term/cursor.lua':
        /usr/share/lua/5.2/term/cursor.lua:24: unexpected symbol near 'goto'
stack traceback:
        [C]: in ?
        [C]: in function 'require'
        /usr/share/lua/5.2/term/init.lua:43: in main chunk
        [C]: in function 'require'
        stdin:1: in main chunk
        [C]: in ?

I've filed https://github.com/hoelzro/lua-term/issues/7

Comment 5 Orion Poplawski 2014-04-03 02:56:45 UTC
Upstream has now released 0.3 that fixes this.

Comment 6 Orion Poplawski 2014-04-14 22:45:27 UTC
Jiri - Are you still interested in this?  I need this ASAP for Lmod, and will submit my own review soon if I don't here back from you.  Thanks.

Comment 7 Orion Poplawski 2014-05-01 22:52:26 UTC

*** This bug has been marked as a duplicate of bug 1093503 ***

Comment 8 Jiri Machala 2020-01-30 10:21:22 UTC
I'm sorry for not responding, I lost interest in this long time ago due to circumstances and also lost track of this (I stumbled now upon reminding email).


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