Re: [packages/rpm/rpm.org] - drop lua hacks and look for default lua version - don't obsolete rpm-getdeps, this rpm does not su

2020-11-06 Thread Jakub Bogusz
On Fri, Nov 06, 2020 at 03:38:16PM +0100, Jakub Bogusz wrote:
> On Fri, Nov 06, 2020 at 02:38:34PM +0200, Elan Ruusamäe wrote:
> > On 24.10.2020 19:30, Jan Rękorajski via pld-devel-en wrote:
> > 
> > >TBH lua packaging in PLD is a mess. I'm going to drasticly simplify it
> > >by gradually getting rid of all versioned luaXX packages.
> > 
> > 
> > another sign of the mess:
> > 
> > ??? rpm -q --what-provides lua-devel
> > 
> > lua50-devel-5.0.3-5.x86_64
> > lua51-devel-5.1.5-6.x86_64
> > lua54-devel-5.4.1-2.x86_64
> 
> Uh, my fault with missing %if ... %endif clauses in recent changes in
> lua40.spec and lua51.spec (in which I wanted to drop lua-devel
> provides).

Fixed in lua40-4.0.1-13.
lua51.spec was already OK (since lua51-5.1.5-7).

lua50.spec also provides lua-devel only when built with default_lua, but
this package was not present in Th.


-- 
Jakub Boguszhttp://qboosh.pl/
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: [packages/rpm/rpm.org] - drop lua hacks and look for default lua version - don't obsolete rpm-getdeps, this rpm does not su

2020-11-06 Thread Jakub Bogusz
On Fri, Nov 06, 2020 at 02:38:34PM +0200, Elan Ruusamäe wrote:
> On 24.10.2020 19:30, Jan Rękorajski via pld-devel-en wrote:
> 
> >TBH lua packaging in PLD is a mess. I'm going to drasticly simplify it
> >by gradually getting rid of all versioned luaXX packages.
> 
> 
> another sign of the mess:
> 
> ??? rpm -q --what-provides lua-devel
> 
> lua50-devel-5.0.3-5.x86_64
> lua51-devel-5.1.5-6.x86_64
> lua54-devel-5.4.1-2.x86_64

Uh, my fault with missing %if ... %endif clauses in recent changes in
lua40.spec and lua51.spec (in which I wanted to drop lua-devel
provides).


-- 
Jakub Boguszhttp://qboosh.pl/
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: [packages/rpm/rpm.org] - drop lua hacks and look for default lua version - don't obsolete rpm-getdeps, this rpm does not su

2020-11-06 Thread Elan Ruusamäe


On 24.10.2020 19:30, Jan Rękorajski via pld-devel-en wrote:

TBH lua packaging in PLD is a mess. I'm going to drasticly simplify it
by gradually getting rid of all versioned luaXX packages.


also packaging should add lua-x.y.pc pkgconfig path, so would not need 
to maintain patches in projects like this:




-LUA_INCLUDE := $(shell $(PKG_CONFIG) --cflags 
lua-$(LUA_VERSION_MAJ_MIN) 2>/dev/null || echo "-I/usr/include/lua$(LUA_VER
-LUA_LIB := $(shell $(PKG_CONFIG) --libs lua-$(LUA_VERSION_MAJ_MIN) 
2>/dev/null || echo "-llua$(LUA_VERSION_MAJ_MIN)")
+LUA_INCLUDE := $(shell $(PKG_CONFIG) --cflags lua$(LUA_VERSION_MAJ_MIN) 
2>/dev/null || echo "-I/usr/include/lua$(LUA_VERS
+LUA_LIB := $(shell $(PKG_CONFIG) --libs lua$(LUA_VERSION_MAJ_MIN) 
2>/dev/null || echo "-llua$(LUA_VERSION_MAJ_MIN)")

 INCLUDES = $(LUA_INCLUDE)

___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: [packages/rpm/rpm.org] - drop lua hacks and look for default lua version - don't obsolete rpm-getdeps, this rpm does not su

2020-11-06 Thread Elan Ruusamäe


On 24.10.2020 19:30, Jan Rękorajski via pld-devel-en wrote:

TBH lua packaging in PLD is a mess. I'm going to drasticly simplify it
by gradually getting rid of all versioned luaXX packages.


this makes litle sense what is now, seems only 5.1 is present and it's 
assumed as a default version:


$ rpm -qpl lua-lpeg-0.12.2-1.x86_64.rpm
/usr/lib64/lua/5.1/lpeg.so
/usr/lib64/lua/5.1/lpeg.so.0.12.2
/usr/share/doc/lua-lpeg-0.12.2
/usr/share/doc/lua-lpeg-0.12.2/HISTORY.gz
/usr/share/doc/lua-lpeg-0.12.2/lpeg-128.gif
/usr/share/doc/lua-lpeg-0.12.2/lpeg.html
/usr/share/doc/lua-lpeg-0.12.2/re.html
/usr/share/doc/lua-lpeg-0.12.2/test.lua.gz
/usr/share/lua/5.1/re.lua


the packages should be versioned with lua version, or only one version 
be included in distro.


also, there's luajit, which is (i think) same language level as lua 5.3.


___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: [packages/rpm/rpm.org] - drop lua hacks and look for default lua version - don't obsolete rpm-getdeps, this rpm does not su

2020-11-06 Thread Elan Ruusamäe

On 24.10.2020 19:30, Jan Rękorajski via pld-devel-en wrote:


TBH lua packaging in PLD is a mess. I'm going to drasticly simplify it
by gradually getting rid of all versioned luaXX packages.



another sign of the mess:

➔ rpm -q --what-provides lua-devel

lua50-devel-5.0.3-5.x86_64
lua51-devel-5.1.5-6.x86_64
lua54-devel-5.4.1-2.x86_64

➔


could we have template-specs/lua.spec which documents current style lua 
packages be written?


1. lua-devel >= 5.1

2. lua51-devel

3. pkgconfig(lua) >= 5.1

4. ... ?


___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: [packages/rpm/rpm.org] - drop lua hacks and look for default lua version - don't obsolete rpm-getdeps, this rpm does not su

2020-10-24 Thread Jan Rękorajski via pld-devel-en
On Sat, 24 Oct 2020, Jan Palus wrote:

> On 24.10.2020 16:12, baggins wrote:
> > commit be07e71c8acd92e61d42ccb1c92200f92ed152c9
> > Author: Jan Rękorajski 
> > Date:   Sat Oct 24 15:50:57 2020 +0200
> > 
> > - drop lua hacks and look for default lua version
> > -BuildRequires: lua53-devel >= 5.3.5
> > +BuildRequires: lua-devel >= 5.1
> 
> lua51-devel provides lua-devel however it does not have lua.pc expected
> by rpm. Perhaps replace with?
> 
> BuildRequires:pkgconfig(lua) >= 5.1

Done. Thanks.

TBH lua packaging in PLD is a mess. I'm going to drasticly simplify it
by gradually getting rid of all versioned luaXX packages.

-- 
Jan Rękorajski| PLD/Linux
SysAdm | bagginspld-linux.org | http://www.pld-linux.org/
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: [packages/rpm/rpm.org] - drop lua hacks and look for default lua version - don't obsolete rpm-getdeps, this rpm does not su

2020-10-24 Thread Jan Palus
On 24.10.2020 16:12, baggins wrote:
> commit be07e71c8acd92e61d42ccb1c92200f92ed152c9
> Author: Jan Rękorajski 
> Date:   Sat Oct 24 15:50:57 2020 +0200
> 
> - drop lua hacks and look for default lua version
> -BuildRequires:   lua53-devel >= 5.3.5
> +BuildRequires:   lua-devel >= 5.1

lua51-devel provides lua-devel however it does not have lua.pc expected
by rpm. Perhaps replace with?

BuildRequires:  pkgconfig(lua) >= 5.1
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en