Bug 1035661 - Review Request: luajit - Just-In-Time Compiler for Lua
Summary: Review Request: luajit - Just-In-Time Compiler for Lua
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Christopher Meng
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 718681 (view as bug list)
Depends On:
Blocks: DebugInfo
TreeView+ depends on / blocked
 
Reported: 2013-11-28 09:27 UTC by Igor Gnatenko
Modified: 2013-12-17 19:07 UTC (History)
6 users (show)

Fixed In Version: luajit-2.0.2-8.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-10 06:06:41 UTC
Type: ---
Embargoed:
i: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)
Don't strip binaries (796 bytes, patch)
2013-12-09 18:57 UTC, Ville Skyttä
no flags Details | Diff

Description Igor Gnatenko 2013-11-28 09:27:46 UTC
Spec URL: http://ignatenkobrain.fedorapeople.org/for-review/luajit.spec
SRPM URL: http://ignatenkobrain.fedorapeople.org/for-review/luajit-2.0.2-2.fc20.src.rpm
Description: LuaJIT implements the full set of language features defined by Lua 5.1.
The virtual machine (VM) is API- and ABI-compatible to the standard
Lua interpreter and can be deployed as a drop-in replacement.
Fedora Account System Username: ignatenkobrain

Comment 1 Igor Gnatenko 2013-11-28 09:30:08 UTC
*** Bug 718681 has been marked as a duplicate of this bug. ***

Comment 2 Christopher Meng 2013-11-28 09:39:31 UTC
Do you mind me to take over this review?

Comment 3 Igor Gnatenko 2013-11-28 09:44:26 UTC
No ;) Do this!

Comment 4 Peter Lemenkov 2013-11-28 17:17:34 UTC
(In reply to Christopher Meng from comment #2)
> Do you mind me to take over this review?

(In reply to Igor Gnatenko from comment #3)
> No ;) Do this!

Just to make things really clear - Igor would like you, Christopher, to review this.

Comment 6 Christopher Meng 2013-11-30 12:59:47 UTC
1. INSTALL_X= install -m 0755
INSTALL_F= install -m 0644

-------

-p option should be inserted also.

2. Package is fine.

Only 1 question:

Why do this?

mv doc/ html/

Comment 7 Igor Gnatenko 2013-11-30 14:42:10 UTC
(In reply to Christopher Meng from comment #6)
> 1. INSTALL_X= install -m 0755
> INSTALL_F= install -m 0644
> 
> -------
> 
> -p option should be inserted also.
Fixed. One minute for new spec/srpm
> 2. Package is fine.
> 
> Only 1 question:
> 
> Why do this?
> 
> mv doc/ html/
because this folder contains html docs. I think html folder instead of doc would be good

Comment 8 Igor Gnatenko 2013-11-30 14:47:59 UTC
new SPEC: http://ignatenkobrain.fedorapeople.org/for-review/luajit.spec
new SRPM: http://ignatenkobrain.fedorapeople.org/for-review/luajit-2.0.2-4.fc20.src.rpm

Don't forget set fedora-review flag ;)

Comment 9 Michael Schwendt 2013-11-30 19:08:35 UTC
> mv doc/ html/

Please don't do that. It modifies the build dir contents and breaks short-circuit builds. Here repeated calls of "rpmbuild --short-circuit -bi luajit.spec". Even if you don't use any short-circuit builds, other packages do, so please don't break them.

Solution: Create a temporary copy of the dir.

  …

  rm -rf _tmp_html ; mkdir _tmp_html
  cp -a doc _tmp_html/html

  …

  %files devel
  %doc _tmp_html/html/

  …

Comment 10 Michael Schwendt 2013-11-30 19:10:16 UTC
s/other packages/other packagers/

Comment 11 Igor Gnatenko 2013-11-30 20:04:39 UTC
(In reply to Michael Schwendt from comment #9)
> > mv doc/ html/
> 
> Please don't do that. It modifies the build dir contents and breaks
> short-circuit builds. Here repeated calls of "rpmbuild --short-circuit -bi
> luajit.spec". Even if you don't use any short-circuit builds, other packages
> do, so please don't break them.
> 
> Solution: Create a temporary copy of the dir.
> 
>   …
> 
>   rm -rf _tmp_html ; mkdir _tmp_html
>   cp -a doc _tmp_html/html
> 
>   …
> 
>   %files devel
>   %doc _tmp_html/html/
> 
>   …

Thank you! Fixed.

New SPEC: http://ignatenkobrain.fedorapeople.org/for-review/luajit.spec
New SRPM: http://ignatenkobrain.fedorapeople.org/for-review/luajit-2.0.2-5.fc20.src.rpm

Comment 12 Christopher Meng 2013-12-02 09:14:22 UTC
Scratch build http://koji.fedoraproject.org/koji/taskinfo?taskID=6246247

Hmm..

.pc on x86_64 RPM attached:

-------------------------

# Package information for LuaJIT to be used by pkg-config.
majver=2
minver=0
relver=2
version=${majver}.${minver}.${relver}
abiver=5.1

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
libname=luajit-${abiver}
includedir=${prefix}/include/luajit-${majver}.${minver}

INSTALL_LMOD=${prefix}/share/lua/${abiver}
INSTALL_CMOD=/usr/lib64/lua/${abiver}

Name: LuaJIT
Description: Just-in-time compiler for Lua
URL: http://luajit.org
Version: ${version}
Requires:
Libs: -L${libdir} -l${libname}
Libs.private: -Wl,-E -lm -ldl
Cflags: -I${includedir}
-------------------------

So I can't approve it now. Problem found!

libdir=${exec_prefix}/lib should be libdir=${exec_prefix}/lib64 on x86_64.

But, you can look at VCS repo of luajit, it now has supported lib64 by $(MULTILIB) define.

http://repo.or.cz/w/luajit-2.0.git/blob/HEAD:/Makefile
http://repo.or.cz/w/luajit-2.0.git/blob/HEAD:/etc/luajit.pc

Please package 2.1(You should obey the snapshot package guideline), or add patch to fix that.

Comment 13 Igor Gnatenko 2013-12-02 09:34:32 UTC
Have you watched .spec ?

# fix .pc (besser82)
sed -i -e 's!${prefix}/lib!%{_libdir}!g' etc/luajit.pc

Comment 14 Christopher Meng 2013-12-02 09:40:13 UTC
Yes, I watched it. But the pasted content were got from the koji build 6246247 for x86_64 -devel package.

Your sed command changed this on lib64 system from:
INSTALL_CMOD=${prefix}/lib/lua/${abiver}
to
INSTALL_CMOD=/usr/lib64/lua/${abiver}

But I still see:
libdir=${exec_prefix}/lib

Don't you think it should be libdir=${exec_prefix}/lib64?

Comment 16 Christopher Meng 2013-12-02 10:02:22 UTC
PACKAGE APPROVED


-------------------

sed -i -e 's!${prefix}/lib!%{_libdir}!g' etc/luajit.pc
sed -i -e 's!${exec_prefix}/lib!%{_libdir}!g' etc/luajit.pc

Can just be:

sed -i -e 's!${.*prefix}/lib!%{_libdir}!g' etc/luajit.pc

;)

Comment 17 Igor Gnatenko 2013-12-02 13:43:46 UTC
Christopher, thank you for review ! ;)

New Package SCM Request
=======================
Package Name: luajit
Short Description: Just-In-Time Compiler for Lua
Owners: ignatenkobrain
Branches: f19 f20

Comment 18 Gwyn Ciesla 2013-12-02 14:09:43 UTC
Git done (by process-git-requests).

Comment 19 Fedora Update System 2013-12-03 20:52:15 UTC
luajit-2.0.2-6.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/luajit-2.0.2-6.fc20

Comment 20 Fedora Update System 2013-12-03 20:53:34 UTC
luajit-2.0.2-6.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/luajit-2.0.2-6.fc19

Comment 21 Fedora Update System 2013-12-04 06:56:13 UTC
luajit-2.0.2-6.fc19 has been pushed to the Fedora 19 testing repository.

Comment 22 Christopher Meng 2013-12-06 03:01:34 UTC
Please read the bodhi comments at

https://admin.fedoraproject.org/updates/FEDORA-2013-22732/luajit-2.0.2-6.fc20 ,

I just tested, this package doesn't work.

/usr/bin/luajit -> luajit which the latter one doesn't exist.

Comment 23 Ville Skyttä 2013-12-09 18:57:02 UTC
Created attachment 834456 [details]
Don't strip binaries

The sed line that tries to disable stripping doesn't actually work, here's a more robust alternative that does.

Comment 25 Fedora Update System 2013-12-10 06:06:41 UTC
luajit-2.0.2-8.fc19 has been pushed to the Fedora 19 stable repository.

Comment 26 Fedora Update System 2013-12-17 19:07:18 UTC
luajit-2.0.2-8.fc20 has been pushed to the Fedora 20 stable repository.


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