All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Revert "package/prosody: use correct bit32 package"
@ 2020-06-03 21:59 Romain Naour
  2020-06-03 22:30 ` James Hilliard
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Romain Naour @ 2020-06-03 21:59 UTC (permalink / raw)
  To: buildroot

This reverts commit fa84c176c2148a60103e850204180f86aa5baa73 that
replace luabitop by lua_bit32 package when lua 5.1 is used.

Since this change the prosody test in gitlab is fail due to
missing lua-bitops [1]:

Starting prosody:
**************************
Prosody was unable to find lua-bitops
This package can be obtained in the following ways:

    Source:           http://bitop.luajit.org/
    Debian/Ubuntu:    sudo apt-get install lua-bitop
    luarocks:         luarocks install luabitop

WebSocket support will not be available
More help can be found on our website, at https://prosody.im/doc/depends
**************************

The upstream documentation [2] is misleading (or not uptodate)
about lua-bit32 dependency.

Since bitop is builtin since lua5.2, we probably need to select
luabitop package only when lua 5.1 is used as lua interpreter.

Tested with run-tests:
./support/testing/run-tests tests.package.test_prosody.TestProsodyLua51

[1] https://gitlab.com/buildroot.org/buildroot/-/jobs/576271975
[2] https://prosody.im/doc/depends#bitop

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: James Hilliard <james.hilliard1@gmail.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
---
 package/prosody/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/prosody/Config.in b/package/prosody/Config.in
index 0b01547103..c32ca20e23 100644
--- a/package/prosody/Config.in
+++ b/package/prosody/Config.in
@@ -4,7 +4,7 @@ config BR2_PACKAGE_PROSODY
 	depends on BR2_PACKAGE_HAS_LUAINTERPRETER
 	depends on !BR2_PACKAGE_LUA_5_3
 	depends on !BR2_STATIC_LIBS # luaexpat, luasec, luasocket, luafilesystem
-	select BR2_PACKAGE_LUA_BIT32 if BR2_PACKAGE_LUA_5_1 # runtime
+	select BR2_PACKAGE_LUABITOP if !BR2_PACKAGE_LUAJIT # runtime
 	select BR2_PACKAGE_LUAEXPAT # runtime
 	select BR2_PACKAGE_LUASEC # runtime
 	select BR2_PACKAGE_LUASOCKET # runtime
-- 
2.25.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH] Revert "package/prosody: use correct bit32 package"
  2020-06-03 21:59 [Buildroot] [PATCH] Revert "package/prosody: use correct bit32 package" Romain Naour
@ 2020-06-03 22:30 ` James Hilliard
  2020-06-03 22:42   ` Romain Naour
  2020-06-04 21:28 ` Thomas Petazzoni
  2020-06-06 21:34 ` Peter Korsgaard
  2 siblings, 1 reply; 9+ messages in thread
From: James Hilliard @ 2020-06-03 22:30 UTC (permalink / raw)
  To: buildroot

On Wed, Jun 3, 2020 at 3:59 PM Romain Naour <romain.naour@gmail.com> wrote:
>
> This reverts commit fa84c176c2148a60103e850204180f86aa5baa73 that
> replace luabitop by lua_bit32 package when lua 5.1 is used.
>
> Since this change the prosody test in gitlab is fail due to
> missing lua-bitops [1]:
>
> Starting prosody:
> **************************
> Prosody was unable to find lua-bitops
> This package can be obtained in the following ways:
>
>     Source:           http://bitop.luajit.org/
>     Debian/Ubuntu:    sudo apt-get install lua-bitop
>     luarocks:         luarocks install luabitop
>
> WebSocket support will not be available
> More help can be found on our website, at https://prosody.im/doc/depends
> **************************
>
> The upstream documentation [2] is misleading (or not uptodate)
> about lua-bit32 dependency.
>
> Since bitop is builtin since lua5.2, we probably need to select
> luabitop package only when lua 5.1 is used as lua interpreter.
>
> Tested with run-tests:
> ./support/testing/run-tests tests.package.test_prosody.TestProsodyLua51
>
> [1] https://gitlab.com/buildroot.org/buildroot/-/jobs/576271975
Isn't this job failure just due to this faulty test?
self.module_test('bit') # luabitop
Which should be replaced with:
self.module_test('bit32') # luabit32
or something along those lines?
> [2] https://prosody.im/doc/depends#bitop
>
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> Cc: James Hilliard <james.hilliard1@gmail.com>
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
> ---
>  package/prosody/Config.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/prosody/Config.in b/package/prosody/Config.in
> index 0b01547103..c32ca20e23 100644
> --- a/package/prosody/Config.in
> +++ b/package/prosody/Config.in
> @@ -4,7 +4,7 @@ config BR2_PACKAGE_PROSODY
>         depends on BR2_PACKAGE_HAS_LUAINTERPRETER
>         depends on !BR2_PACKAGE_LUA_5_3
>         depends on !BR2_STATIC_LIBS # luaexpat, luasec, luasocket, luafilesystem
> -       select BR2_PACKAGE_LUA_BIT32 if BR2_PACKAGE_LUA_5_1 # runtime
> +       select BR2_PACKAGE_LUABITOP if !BR2_PACKAGE_LUAJIT # runtime
>         select BR2_PACKAGE_LUAEXPAT # runtime
>         select BR2_PACKAGE_LUASEC # runtime
>         select BR2_PACKAGE_LUASOCKET # runtime
> --
> 2.25.4
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH] Revert "package/prosody: use correct bit32 package"
  2020-06-03 22:30 ` James Hilliard
@ 2020-06-03 22:42   ` Romain Naour
  2020-06-04  0:18     ` James Hilliard
  2020-06-04  5:00     ` François Perrad
  0 siblings, 2 replies; 9+ messages in thread
From: Romain Naour @ 2020-06-03 22:42 UTC (permalink / raw)
  To: buildroot

Hi James,

Le 04/06/2020 ? 00:30, James Hilliard a ?crit?:
> On Wed, Jun 3, 2020 at 3:59 PM Romain Naour <romain.naour@gmail.com> wrote:
>>
>> This reverts commit fa84c176c2148a60103e850204180f86aa5baa73 that
>> replace luabitop by lua_bit32 package when lua 5.1 is used.
>>
>> Since this change the prosody test in gitlab is fail due to
>> missing lua-bitops [1]:
>>
>> Starting prosody:
>> **************************
>> Prosody was unable to find lua-bitops
>> This package can be obtained in the following ways:
>>
>>     Source:           http://bitop.luajit.org/
>>     Debian/Ubuntu:    sudo apt-get install lua-bitop
>>     luarocks:         luarocks install luabitop
>>
>> WebSocket support will not be available
>> More help can be found on our website, at https://prosody.im/doc/depends
>> **************************
>>
>> The upstream documentation [2] is misleading (or not uptodate)
>> about lua-bit32 dependency.
>>
>> Since bitop is builtin since lua5.2, we probably need to select
>> luabitop package only when lua 5.1 is used as lua interpreter.
>>
>> Tested with run-tests:
>> ./support/testing/run-tests tests.package.test_prosody.TestProsodyLua51
>>
>> [1] https://gitlab.com/buildroot.org/buildroot/-/jobs/576271975
> Isn't this job failure just due to this faulty test?
> self.module_test('bit') # luabitop
> Which should be replaced with:
> self.module_test('bit32') # luabit32
> or something along those lines?

I'm not speaking about the test itself but the prosody log when it's started
"Prosody was unable to find lua-bitops"

Also the test is shared with luajit and the TestProsodyLuajit test is fine.

Best regards,
Romain

>> [2] https://prosody.im/doc/depends#bitop
>>
>> Signed-off-by: Romain Naour <romain.naour@gmail.com>
>> Cc: James Hilliard <james.hilliard1@gmail.com>
>> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
>> ---
>>  package/prosody/Config.in | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/package/prosody/Config.in b/package/prosody/Config.in
>> index 0b01547103..c32ca20e23 100644
>> --- a/package/prosody/Config.in
>> +++ b/package/prosody/Config.in
>> @@ -4,7 +4,7 @@ config BR2_PACKAGE_PROSODY
>>         depends on BR2_PACKAGE_HAS_LUAINTERPRETER
>>         depends on !BR2_PACKAGE_LUA_5_3
>>         depends on !BR2_STATIC_LIBS # luaexpat, luasec, luasocket, luafilesystem
>> -       select BR2_PACKAGE_LUA_BIT32 if BR2_PACKAGE_LUA_5_1 # runtime
>> +       select BR2_PACKAGE_LUABITOP if !BR2_PACKAGE_LUAJIT # runtime
>>         select BR2_PACKAGE_LUAEXPAT # runtime
>>         select BR2_PACKAGE_LUASEC # runtime
>>         select BR2_PACKAGE_LUASOCKET # runtime
>> --
>> 2.25.4
>>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH] Revert "package/prosody: use correct bit32 package"
  2020-06-03 22:42   ` Romain Naour
@ 2020-06-04  0:18     ` James Hilliard
  2020-06-04 21:02       ` Romain Naour
  2020-06-04  5:00     ` François Perrad
  1 sibling, 1 reply; 9+ messages in thread
From: James Hilliard @ 2020-06-04  0:18 UTC (permalink / raw)
  To: buildroot

On Wed, Jun 3, 2020 at 4:42 PM Romain Naour <romain.naour@gmail.com> wrote:
>
> Hi James,
>
> Le 04/06/2020 ? 00:30, James Hilliard a ?crit :
> > On Wed, Jun 3, 2020 at 3:59 PM Romain Naour <romain.naour@gmail.com> wrote:
> >>
> >> This reverts commit fa84c176c2148a60103e850204180f86aa5baa73 that
> >> replace luabitop by lua_bit32 package when lua 5.1 is used.
> >>
> >> Since this change the prosody test in gitlab is fail due to
> >> missing lua-bitops [1]:
> >>
> >> Starting prosody:
> >> **************************
> >> Prosody was unable to find lua-bitops
> >> This package can be obtained in the following ways:
> >>
> >>     Source:           http://bitop.luajit.org/
> >>     Debian/Ubuntu:    sudo apt-get install lua-bitop
> >>     luarocks:         luarocks install luabitop
> >>
> >> WebSocket support will not be available
> >> More help can be found on our website, at https://prosody.im/doc/depends
> >> **************************
> >>
> >> The upstream documentation [2] is misleading (or not uptodate)
> >> about lua-bit32 dependency.
> >>
> >> Since bitop is builtin since lua5.2, we probably need to select
> >> luabitop package only when lua 5.1 is used as lua interpreter.
> >>
> >> Tested with run-tests:
> >> ./support/testing/run-tests tests.package.test_prosody.TestProsodyLua51
> >>
> >> [1] https://gitlab.com/buildroot.org/buildroot/-/jobs/576271975
> > Isn't this job failure just due to this faulty test?
> > self.module_test('bit') # luabitop
> > Which should be replaced with:
> > self.module_test('bit32') # luabit32
> > or something along those lines?
>
> I'm not speaking about the test itself but the prosody log when it's started
> "Prosody was unable to find lua-bitops"
Oh, might need to backport https://hg.prosody.im/trunk/rev/48f7cda4174d
git version:
https://github.com/bjc/prosody/commit/aedca363c093007542941749578caf1badf1674e
>
> Also the test is shared with luajit and the TestProsodyLuajit test is fine.
>
> Best regards,
> Romain
>
> >> [2] https://prosody.im/doc/depends#bitop
> >>
> >> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> >> Cc: James Hilliard <james.hilliard1@gmail.com>
> >> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
> >> ---
> >>  package/prosody/Config.in | 2 +-
> >>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/package/prosody/Config.in b/package/prosody/Config.in
> >> index 0b01547103..c32ca20e23 100644
> >> --- a/package/prosody/Config.in
> >> +++ b/package/prosody/Config.in
> >> @@ -4,7 +4,7 @@ config BR2_PACKAGE_PROSODY
> >>         depends on BR2_PACKAGE_HAS_LUAINTERPRETER
> >>         depends on !BR2_PACKAGE_LUA_5_3
> >>         depends on !BR2_STATIC_LIBS # luaexpat, luasec, luasocket, luafilesystem
> >> -       select BR2_PACKAGE_LUA_BIT32 if BR2_PACKAGE_LUA_5_1 # runtime
> >> +       select BR2_PACKAGE_LUABITOP if !BR2_PACKAGE_LUAJIT # runtime
> >>         select BR2_PACKAGE_LUAEXPAT # runtime
> >>         select BR2_PACKAGE_LUASEC # runtime
> >>         select BR2_PACKAGE_LUASOCKET # runtime
> >> --
> >> 2.25.4
> >>
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH] Revert "package/prosody: use correct bit32 package"
  2020-06-03 22:42   ` Romain Naour
  2020-06-04  0:18     ` James Hilliard
@ 2020-06-04  5:00     ` François Perrad
  2020-06-04  9:21       ` Thomas Petazzoni
  1 sibling, 1 reply; 9+ messages in thread
From: François Perrad @ 2020-06-04  5:00 UTC (permalink / raw)
  To: buildroot

1) don't trust documentation, trust tests (by running them)

2) with BR, it's easy to run a test (even locally, before a commit), but it
isn't easy to know that a test exists.
In my point of view, the right place of test_prosody.py is in the directory
package/prosody, not in support/testing/tests/package,
support/testing is the right place only for testing infrastructure.

Fran?ois

Le jeu. 4 juin 2020 ? 00:42, Romain Naour <romain.naour@gmail.com> a ?crit :

> Hi James,
>
> Le 04/06/2020 ? 00:30, James Hilliard a ?crit :
> > On Wed, Jun 3, 2020 at 3:59 PM Romain Naour <romain.naour@gmail.com>
> wrote:
> >>
> >> This reverts commit fa84c176c2148a60103e850204180f86aa5baa73 that
> >> replace luabitop by lua_bit32 package when lua 5.1 is used.
> >>
> >> Since this change the prosody test in gitlab is fail due to
> >> missing lua-bitops [1]:
> >>
> >> Starting prosody:
> >> **************************
> >> Prosody was unable to find lua-bitops
> >> This package can be obtained in the following ways:
> >>
> >>     Source:           http://bitop.luajit.org/
> >>     Debian/Ubuntu:    sudo apt-get install lua-bitop
> >>     luarocks:         luarocks install luabitop
> >>
> >> WebSocket support will not be available
> >> More help can be found on our website, at
> https://prosody.im/doc/depends
> >> **************************
> >>
> >> The upstream documentation [2] is misleading (or not uptodate)
> >> about lua-bit32 dependency.
> >>
> >> Since bitop is builtin since lua5.2, we probably need to select
> >> luabitop package only when lua 5.1 is used as lua interpreter.
> >>
> >> Tested with run-tests:
> >> ./support/testing/run-tests tests.package.test_prosody.TestProsodyLua51
> >>
> >> [1] https://gitlab.com/buildroot.org/buildroot/-/jobs/576271975
> > Isn't this job failure just due to this faulty test?
> > self.module_test('bit') # luabitop
> > Which should be replaced with:
> > self.module_test('bit32') # luabit32
> > or something along those lines?
>
> I'm not speaking about the test itself but the prosody log when it's
> started
> "Prosody was unable to find lua-bitops"
>
> Also the test is shared with luajit and the TestProsodyLuajit test is fine.
>
> Best regards,
> Romain
>
> >> [2] https://prosody.im/doc/depends#bitop
> >>
> >> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> >> Cc: James Hilliard <james.hilliard1@gmail.com>
> >> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
> >> ---
> >>  package/prosody/Config.in | 2 +-
> >>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/package/prosody/Config.in b/package/prosody/Config.in
> >> index 0b01547103..c32ca20e23 100644
> >> --- a/package/prosody/Config.in
> >> +++ b/package/prosody/Config.in
> >> @@ -4,7 +4,7 @@ config BR2_PACKAGE_PROSODY
> >>         depends on BR2_PACKAGE_HAS_LUAINTERPRETER
> >>         depends on !BR2_PACKAGE_LUA_5_3
> >>         depends on !BR2_STATIC_LIBS # luaexpat, luasec, luasocket,
> luafilesystem
> >> -       select BR2_PACKAGE_LUA_BIT32 if BR2_PACKAGE_LUA_5_1 # runtime
> >> +       select BR2_PACKAGE_LUABITOP if !BR2_PACKAGE_LUAJIT # runtime
> >>         select BR2_PACKAGE_LUAEXPAT # runtime
> >>         select BR2_PACKAGE_LUASEC # runtime
> >>         select BR2_PACKAGE_LUASOCKET # runtime
> >> --
> >> 2.25.4
> >>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200604/147c256f/attachment.html>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH] Revert "package/prosody: use correct bit32 package"
  2020-06-04  5:00     ` François Perrad
@ 2020-06-04  9:21       ` Thomas Petazzoni
  0 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2020-06-04  9:21 UTC (permalink / raw)
  To: buildroot

On Thu, 4 Jun 2020 07:00:47 +0200
Fran?ois Perrad <francois.perrad@gadz.org> wrote:

> 2) with BR, it's easy to run a test (even locally, before a commit), but it
> isn't easy to know that a test exists.
> In my point of view, the right place of test_prosody.py is in the directory
> package/prosody, not in support/testing/tests/package,
> support/testing is the right place only for testing infrastructure.

We indeed though about putting tests near packages. However, one issue
is that not all tests are related to packages: some are related to the
core infrastructure, and we wouldn't know where to put those tests. And
it would be even more confusing to have some tests in support/testing/
and some tests in package/. So for now, we have simply kept all tests
in support/testing/, until someone comes up with a better idea :-)

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH] Revert "package/prosody: use correct bit32 package"
  2020-06-04  0:18     ` James Hilliard
@ 2020-06-04 21:02       ` Romain Naour
  0 siblings, 0 replies; 9+ messages in thread
From: Romain Naour @ 2020-06-04 21:02 UTC (permalink / raw)
  To: buildroot

Hi James,

Le 04/06/2020 ? 02:18, James Hilliard a ?crit?:
> On Wed, Jun 3, 2020 at 4:42 PM Romain Naour <romain.naour@gmail.com> wrote:
>>
>> Hi James,
>>
>> Le 04/06/2020 ? 00:30, James Hilliard a ?crit :
>>> On Wed, Jun 3, 2020 at 3:59 PM Romain Naour <romain.naour@gmail.com> wrote:
>>>>
>>>> This reverts commit fa84c176c2148a60103e850204180f86aa5baa73 that
>>>> replace luabitop by lua_bit32 package when lua 5.1 is used.
>>>>
>>>> Since this change the prosody test in gitlab is fail due to
>>>> missing lua-bitops [1]:
>>>>
>>>> Starting prosody:
>>>> **************************
>>>> Prosody was unable to find lua-bitops
>>>> This package can be obtained in the following ways:
>>>>
>>>>     Source:           http://bitop.luajit.org/
>>>>     Debian/Ubuntu:    sudo apt-get install lua-bitop
>>>>     luarocks:         luarocks install luabitop
>>>>
>>>> WebSocket support will not be available
>>>> More help can be found on our website, at https://prosody.im/doc/depends
>>>> **************************
>>>>
>>>> The upstream documentation [2] is misleading (or not uptodate)
>>>> about lua-bit32 dependency.
>>>>
>>>> Since bitop is builtin since lua5.2, we probably need to select
>>>> luabitop package only when lua 5.1 is used as lua interpreter.
>>>>
>>>> Tested with run-tests:
>>>> ./support/testing/run-tests tests.package.test_prosody.TestProsodyLua51
>>>>
>>>> [1] https://gitlab.com/buildroot.org/buildroot/-/jobs/576271975
>>> Isn't this job failure just due to this faulty test?
>>> self.module_test('bit') # luabitop
>>> Which should be replaced with:
>>> self.module_test('bit32') # luabit32
>>> or something along those lines?
>>
>> I'm not speaking about the test itself but the prosody log when it's started
>> "Prosody was unable to find lua-bitops"
> Oh, might need to backport https://hg.prosody.im/trunk/rev/48f7cda4174d
> git version:
> https://github.com/bjc/prosody/commit/aedca363c093007542941749578caf1badf1674e

Prosody 0.11.5 really test LUABITOP dependency [1] but indeed the upstream
commit you suggest introduce a compatibility layer for bitwise operations.

The compat layer allow to use bit32 instead of bit module:

Lua 5.3  bit32  (with compat enabled)
Lua 5.2  bit32  (built-in)
Lua 5.1  bit32  (standalone module LUA_BIT32)

Lua 5.3  util.bit53
Lua 5.4  util.bit53

LuaJIT   bit  (bitop library)
Lua 5.1  bit  (luabitop)

It seems your change should be done with the next version of prosody and the
Buildroot test updated to check bit32 module instead of bit module.
But for now luatop should be used and the current lua tests in prosody.py are ok.

[1] https://github.com/bjc/prosody/blob/0.11.5/util/dependencies.lua#L93

Best regards,
Romain

>>
>> Also the test is shared with luajit and the TestProsodyLuajit test is fine.
>>
>> Best regards,
>> Romain
>>
>>>> [2] https://prosody.im/doc/depends#bitop
>>>>
>>>> Signed-off-by: Romain Naour <romain.naour@gmail.com>
>>>> Cc: James Hilliard <james.hilliard1@gmail.com>
>>>> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
>>>> ---
>>>>  package/prosody/Config.in | 2 +-
>>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/package/prosody/Config.in b/package/prosody/Config.in
>>>> index 0b01547103..c32ca20e23 100644
>>>> --- a/package/prosody/Config.in
>>>> +++ b/package/prosody/Config.in
>>>> @@ -4,7 +4,7 @@ config BR2_PACKAGE_PROSODY
>>>>         depends on BR2_PACKAGE_HAS_LUAINTERPRETER
>>>>         depends on !BR2_PACKAGE_LUA_5_3
>>>>         depends on !BR2_STATIC_LIBS # luaexpat, luasec, luasocket, luafilesystem
>>>> -       select BR2_PACKAGE_LUA_BIT32 if BR2_PACKAGE_LUA_5_1 # runtime
>>>> +       select BR2_PACKAGE_LUABITOP if !BR2_PACKAGE_LUAJIT # runtime
>>>>         select BR2_PACKAGE_LUAEXPAT # runtime
>>>>         select BR2_PACKAGE_LUASEC # runtime
>>>>         select BR2_PACKAGE_LUASOCKET # runtime
>>>> --
>>>> 2.25.4
>>>>
>>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH] Revert "package/prosody: use correct bit32 package"
  2020-06-03 21:59 [Buildroot] [PATCH] Revert "package/prosody: use correct bit32 package" Romain Naour
  2020-06-03 22:30 ` James Hilliard
@ 2020-06-04 21:28 ` Thomas Petazzoni
  2020-06-06 21:34 ` Peter Korsgaard
  2 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2020-06-04 21:28 UTC (permalink / raw)
  To: buildroot

On Wed,  3 Jun 2020 23:59:04 +0200
Romain Naour <romain.naour@gmail.com> wrote:

> This reverts commit fa84c176c2148a60103e850204180f86aa5baa73 that
> replace luabitop by lua_bit32 package when lua 5.1 is used.
> 
> Since this change the prosody test in gitlab is fail due to
> missing lua-bitops [1]:
> 
> Starting prosody:
> **************************
> Prosody was unable to find lua-bitops
> This package can be obtained in the following ways:
> 
>     Source:           http://bitop.luajit.org/
>     Debian/Ubuntu:    sudo apt-get install lua-bitop
>     luarocks:         luarocks install luabitop
> 
> WebSocket support will not be available
> More help can be found on our website, at https://prosody.im/doc/depends
> **************************
> 
> The upstream documentation [2] is misleading (or not uptodate)
> about lua-bit32 dependency.
> 
> Since bitop is builtin since lua5.2, we probably need to select
> luabitop package only when lua 5.1 is used as lua interpreter.
> 
> Tested with run-tests:
> ./support/testing/run-tests tests.package.test_prosody.TestProsodyLua51
> 
> [1] https://gitlab.com/buildroot.org/buildroot/-/jobs/576271975
> [2] https://prosody.im/doc/depends#bitop
> 
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> Cc: James Hilliard <james.hilliard1@gmail.com>
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
> ---
>  package/prosody/Config.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH] Revert "package/prosody: use correct bit32 package"
  2020-06-03 21:59 [Buildroot] [PATCH] Revert "package/prosody: use correct bit32 package" Romain Naour
  2020-06-03 22:30 ` James Hilliard
  2020-06-04 21:28 ` Thomas Petazzoni
@ 2020-06-06 21:34 ` Peter Korsgaard
  2 siblings, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2020-06-06 21:34 UTC (permalink / raw)
  To: buildroot

>>>>> "Romain" == Romain Naour <romain.naour@gmail.com> writes:

 > This reverts commit fa84c176c2148a60103e850204180f86aa5baa73 that
 > replace luabitop by lua_bit32 package when lua 5.1 is used.

 > Since this change the prosody test in gitlab is fail due to
 > missing lua-bitops [1]:

 > Starting prosody:
 > **************************
 > Prosody was unable to find lua-bitops
 > This package can be obtained in the following ways:

 >     Source:           http://bitop.luajit.org/
 >     Debian/Ubuntu:    sudo apt-get install lua-bitop
 >     luarocks:         luarocks install luabitop

 > WebSocket support will not be available
 > More help can be found on our website, at https://prosody.im/doc/depends
 > **************************

 > The upstream documentation [2] is misleading (or not uptodate)
 > about lua-bit32 dependency.

 > Since bitop is builtin since lua5.2, we probably need to select
 > luabitop package only when lua 5.1 is used as lua interpreter.

 > Tested with run-tests:
 > ./support/testing/run-tests tests.package.test_prosody.TestProsodyLua51

 > [1] https://gitlab.com/buildroot.org/buildroot/-/jobs/576271975
 > [2] https://prosody.im/doc/depends#bitop

 > Signed-off-by: Romain Naour <romain.naour@gmail.com>
 > Cc: James Hilliard <james.hilliard1@gmail.com>
 > Cc: Yann E. MORIN <yann.morin.1998@free.fr>

Committed to 2020.02.x and 2020.05.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-06-06 21:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-03 21:59 [Buildroot] [PATCH] Revert "package/prosody: use correct bit32 package" Romain Naour
2020-06-03 22:30 ` James Hilliard
2020-06-03 22:42   ` Romain Naour
2020-06-04  0:18     ` James Hilliard
2020-06-04 21:02       ` Romain Naour
2020-06-04  5:00     ` François Perrad
2020-06-04  9:21       ` Thomas Petazzoni
2020-06-04 21:28 ` Thomas Petazzoni
2020-06-06 21:34 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.