From patchwork Sat Nov 24 09:07:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 1002645 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="e14puHfE"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4326mG64Fpz9s8F for ; Sat, 24 Nov 2018 20:08:30 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F419688725; Sat, 24 Nov 2018 09:08:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XwvLFgol6iDQ; Sat, 24 Nov 2018 09:08:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 5E86688688; Sat, 24 Nov 2018 09:08:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B0DCE1BF31F for ; Sat, 24 Nov 2018 09:08:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AD70888652 for ; Sat, 24 Nov 2018 09:08:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ruKWINzseFpL for ; Sat, 24 Nov 2018 09:08:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id DB4CB87A72 for ; Sat, 24 Nov 2018 09:08:22 +0000 (UTC) Received: by mail-wm1-f43.google.com with SMTP id y1so10455138wmi.3 for ; Sat, 24 Nov 2018 01:08:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=p0P/0ovOjTuTy7dYkqHVMio/Zn061HBtB+dk2CR6s44=; b=e14puHfEzfpHlGscsUaNZHmXOwEYjmQF7aLhL2a/oScGFZZN04QzKoThig74k/yGBn mPSdsmLwblaugYRkt+3r3NWCUohWQ+kno15mlhJEPS6Tuk7ihlJmVRNKoBohHXliO2Ii ZrOtDm3bcuOpUKSsQADJH8+x+N+Lk+dIf7pF6Plwyk8cBUcQ7AEgdKwQC13c5l00UczT F75t9w2pqOl3DR2FrysAIkxvqTAPk4rdHVSXJHUoU9RE4OQzPtiUWOR6A3CmrM41Z5ck LmUKmXvSf6HlPk1Gae+cUUujop+jOiOSFVXOyg8suEJyfr7YP7pTuKLWcsC7SiChe+8n 3DEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=p0P/0ovOjTuTy7dYkqHVMio/Zn061HBtB+dk2CR6s44=; b=HcxC3myuHfB0UyDRJWto1r1kXr56OhNbXD9RvrkJpY3H53Iahf9znAgEfNo7Zm+eJO mLj9UogvQmZN7R4U//UzMXAsGk2i0/t12U6unFaX9qir9xMoFnMVLg0vt8mOhaVvap11 1SfPPTbZEr91RWT4zy4I+RZHaJHhfyV5ioHUrWriGsKhJQDCs5JMC8J0NLrhzs8voLOU 7hk9IFOFWsL1cpxI/8KNsrmgDrymWjBsdOelGRDjtVoPrGL9h87NPYKlpD8yzGmGZc/G IKiuaR+EZo8XPs5TfOZUgpYnuBwpMeX76a0R+ywY5yQHDKUV1QZXzZgLe61XVWMJnfFY 3frw== X-Gm-Message-State: AA+aEWaD1rbWvybAF7BQsTQ4uZhyfHz6Q+eB1x+ST8HzdZWF7efiWO2F Vioht2fo/gnVday+bw+fC0WvrCXP X-Google-Smtp-Source: AFSGD/UqFqoJ15p5x2JJwgbj7C2Ih1BsS3yj/G5ZWtgHwD7qv/+bj1KfPQxzjYMY3vn5C2Brg+zYlg== X-Received: by 2002:a1c:c7cd:: with SMTP id x196mr8412608wmf.12.1543050501211; Sat, 24 Nov 2018 01:08:21 -0800 (PST) Received: from vb-18.04 (254.7.19.109.rev.sfr.net. [109.19.7.254]) by smtp.gmail.com with ESMTPSA id i9sm25612221wrs.34.2018.11.24.01.08.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Nov 2018 01:08:20 -0800 (PST) From: Francois Perrad X-Google-Original-From: Francois Perrad To: buildroot@busybox.net Date: Sat, 24 Nov 2018 10:07:52 +0100 Message-Id: <20181124090754.14775-2-francois.perrad@gadz.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181124090754.14775-1-francois.perrad@gadz.org> References: <20181124090754.14775-1-francois.perrad@gadz.org> Subject: [Buildroot] [PATCH/next 1/3] support/testing: add lua test X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Francois Perrad Reviewed-by: Ricardo Martincoski Tested-by: Ricardo Martincoski --- .gitlab-ci.yml | 2 + support/testing/tests/package/test_lua.py | 59 +++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 support/testing/tests/package/test_lua.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b7114f5dc..bc5970f1d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -312,6 +312,8 @@ tests.init.test_systemd.TestInitSystemSystemdRwNetworkd: *runtime_test tests.package.test_dropbear.TestDropbear: *runtime_test tests.package.test_ipython.TestIPythonPy2: *runtime_test tests.package.test_ipython.TestIPythonPy3: *runtime_test +tests.package.test_lua.TestLua: *runtime_test +tests.package.test_lua.TestLuajit: *runtime_test tests.package.test_perl.TestPerl: *runtime_test tests.package.test_perl_class_load.TestPerlClassLoad: *runtime_test tests.package.test_perl_gdgraph.TestPerlGDGraph: *runtime_test diff --git a/support/testing/tests/package/test_lua.py b/support/testing/tests/package/test_lua.py new file mode 100644 index 000000000..77358ba13 --- /dev/null +++ b/support/testing/tests/package/test_lua.py @@ -0,0 +1,59 @@ +import os + +import infra.basetest + + +class TestLuaBase(infra.basetest.BRTest): + config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ + """ + BR2_TARGET_ROOTFS_CPIO=y + # BR2_TARGET_ROOTFS_TAR is not set + """ + + def login(self): + cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio") + self.emulator.boot(arch="armv7", + kernel="builtin", + options=["-initrd", cpio_file]) + self.emulator.login() + + def version_test(self, version): + cmd = "lua -v" + output, exit_code = self.emulator.run(cmd) + self.assertEqual(exit_code, 0) + self.assertIn(version, output[0]) + + def g_version_test(self, expected): + cmd = "lua -e 'print(_G._VERSION)'" + output, exit_code = self.emulator.run(cmd) + self.assertEqual(exit_code, 0) + self.assertEqual(output[0], expected) + + def module_test(self, module, script="a=1"): + cmd = "lua -l {} -e '{}'".format(module, script) + _, exit_code = self.emulator.run(cmd) + self.assertEqual(exit_code, 0) + + +class TestLua(TestLuaBase): + config = TestLuaBase.config + \ + """ + BR2_PACKAGE_LUA=y + """ + + def test_run(self): + self.login() + self.version_test('Lua 5.3') + self.g_version_test('Lua 5.3') + + +class TestLuajit(TestLuaBase): + config = TestLuaBase.config + \ + """ + BR2_PACKAGE_LUAJIT=y + """ + + def test_run(self): + self.login() + self.version_test('LuaJIT 2') + self.g_version_test('Lua 5.1') From patchwork Sat Nov 24 09:07:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 1002644 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="OYN2YV5S"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4326mG2pZLz9s1c for ; Sat, 24 Nov 2018 20:08:30 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id BE3D5876B0; Sat, 24 Nov 2018 09:08:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VjRmUm-VrLZ3; Sat, 24 Nov 2018 09:08:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2B880876DA; Sat, 24 Nov 2018 09:08:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id EA70E1BF31F for ; Sat, 24 Nov 2018 09:08:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E6AF488652 for ; Sat, 24 Nov 2018 09:08:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 38m0GhEaIP1z for ; Sat, 24 Nov 2018 09:08:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id E3C3087A72 for ; Sat, 24 Nov 2018 09:08:23 +0000 (UTC) Received: by mail-wm1-f53.google.com with SMTP id j207so6610258wmj.1 for ; Sat, 24 Nov 2018 01:08:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TSLcXL0pu+cHwpHf9v0oAU753Fx2802l9GH1By+exxs=; b=OYN2YV5SqM723/2GWGeBLusg82nyKKsaF67UYSXxFwlytDoYdDj7c2m3218Z12jGGo cg612DyZALAuhKzFUWgO+5iqcGW3M26qp+kF6TBRQWCAK06m29EbSYBfueQC6GLqFadN h2rTHd6bUAPxER9HoC7ByHDWE+HSY79K/FkKG8sN2hL/sQ5ve/tl3xRW30w0sypdlD9/ sXsjZAns7bqhcJwJ5wQA4inZX/djSM2gM3LUP8OdZ9lbzYbeiir5Gsy1ESclcFWKym/n aVL5gXh/CAEzvJrsPhXVrsQ+KCv6e+GLP1bPBzHYyTf6z5x8XigWUEalfAviB44WmzyM IcGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TSLcXL0pu+cHwpHf9v0oAU753Fx2802l9GH1By+exxs=; b=ljIR/y/zUNTpIVXbf7aciXMCtuLMKJQ+Lhh62b/t3ZQDOm/O2BPTGJgff/eFR8lBtU Dbfcqklf4UUYXrlESZs1NTTBlZZug4nIpUUrf/Ru69OlQpHfAm60akaf33k7JYns7YYh +6cIfNVSZ09ztkY2bLITJgLyF9/czCwaWxoNlK2irhBGxqM/d/bwW29wTDJq4iPE67g+ 6TjWnw/iUKDZiOy6BrC728s0N3WbqgeFCbfnNnY+wJTiuvf2egsuuVtAA0seZMfSKw6g WRC8pdvgS35y5189DWBYCHN+8Y3ZJEI9/HbB08MQBixtYliQmnHtNfxhExqjcwfu3TCd o8Rg== X-Gm-Message-State: AGRZ1gLGh6BD7jW2PUnnSvPNcPeNwv7uKV7G/2/SE9pAnCeRLv1phwGs EXpcyFEW4z20PbnW3TFlXY9cdEG8 X-Google-Smtp-Source: AJdET5d0ODIuPnQ0L0ZojdqMtoM6elgOLNPR7QdlDbjson18XJ83z6rZ8XxK2Hs8/5a+rHX35XUgaw== X-Received: by 2002:a1c:4406:: with SMTP id r6mr16914604wma.151.1543050502320; Sat, 24 Nov 2018 01:08:22 -0800 (PST) Received: from vb-18.04 (254.7.19.109.rev.sfr.net. [109.19.7.254]) by smtp.gmail.com with ESMTPSA id i9sm25612221wrs.34.2018.11.24.01.08.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Nov 2018 01:08:21 -0800 (PST) From: Francois Perrad X-Google-Original-From: Francois Perrad To: buildroot@busybox.net Date: Sat, 24 Nov 2018 10:07:53 +0100 Message-Id: <20181124090754.14775-3-francois.perrad@gadz.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181124090754.14775-1-francois.perrad@gadz.org> References: <20181124090754.14775-1-francois.perrad@gadz.org> Subject: [Buildroot] [PATCH/next 2/3] support/testing; add prosody test X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Francois Perrad --- .gitlab-ci.yml | 2 + support/testing/tests/package/test_prosody.py | 48 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 support/testing/tests/package/test_prosody.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bc5970f1d..944f4b226 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -321,6 +321,8 @@ tests.package.test_perl_libwww_perl.TestPerllibwwwperl: *runtime_test tests.package.test_perl_mail_dkim.TestPerlMailDKIM: *runtime_test tests.package.test_perl_x10.TestPerlX10: *runtime_test tests.package.test_perl_xml_libxml.TestPerlXMLLibXML: *runtime_test +tests.package.test_prosody.TestLua51Prosody: *runtime_test +tests.package.test_prosody.TestLuajitProsody: *runtime_test tests.package.test_python.TestPython2: *runtime_test tests.package.test_python.TestPython3: *runtime_test tests.package.test_python_argh.TestPythonPy2Argh: *runtime_test diff --git a/support/testing/tests/package/test_prosody.py b/support/testing/tests/package/test_prosody.py new file mode 100644 index 000000000..8ef8ff95f --- /dev/null +++ b/support/testing/tests/package/test_prosody.py @@ -0,0 +1,48 @@ +from tests.package.test_lua import TestLuaBase + + +class TestProsody(TestLuaBase): + def lua_dependencies_test(self): + self.module_test('bit') # luabitop + self.module_test('lfs') # luafilesystem + self.module_test('lxp') # luaexpat + self.module_test('socket') # luasocket + self.module_test('ssl') # luasec + + def prosody_test(self): + # prosody was launched as service + cmd = "prosodyctl status" + output, exit_code = self.emulator.run(cmd) + self.assertEqual(exit_code, 0) + self.assertIn("Prosody is running", output[0]) + + +class TestProsodyLua51(TestProsody): + config = TestLuaBase.config + \ + """ + BR2_PACKAGE_LUA=y + BR2_PACKAGE_LUA_5_1=y + BR2_PACKAGE_PROSODY=y + """ + + def test_run(self): + self.login() + self.version_test('Lua 5.1') + self.g_version_test('Lua 5.1') + self.lua_dependencies_test() + self.prosody_test() + + +class TestProsodyLuajit(TestProsody): + config = TestLuaBase.config + \ + """ + BR2_PACKAGE_LUAJIT=y + BR2_PACKAGE_PROSODY=y + """ + + def test_run(self): + self.login() + self.version_test('LuaJIT 2') + self.g_version_test('Lua 5.1') + self.lua_dependencies_test() + self.prosody_test() From patchwork Sat Nov 24 09:07:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 1002646 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ggzOB3u+"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4326mL0cX6z9s1c for ; Sat, 24 Nov 2018 20:08:33 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 4A2BC88CFF; Sat, 24 Nov 2018 09:08:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ayRFLHObgtog; Sat, 24 Nov 2018 09:08:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id EAF0F88C4B; Sat, 24 Nov 2018 09:08:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E984A1BF31F for ; Sat, 24 Nov 2018 09:08:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E5E3588652 for ; Sat, 24 Nov 2018 09:08:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gxTyiASXsoD4 for ; Sat, 24 Nov 2018 09:08:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by whitealder.osuosl.org (Postfix) with ESMTPS id 1B8C087A72 for ; Sat, 24 Nov 2018 09:08:25 +0000 (UTC) Received: by mail-wm1-f50.google.com with SMTP id u13-v6so13847822wmc.4 for ; Sat, 24 Nov 2018 01:08:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xV6KpKFzgcSdzTDa62IddnjO8g4GpB653UpQqQBQYBA=; b=ggzOB3u+CZa8VxSdyD5yrDJ3Dsq0+59KfdJpBpFoEXHpO6zwiuKygWY5fVW8U12nE2 FyXeqGAN87douTgS3IY50ngT4o6fS9TZBNdiDTIW/4N9C732ZM7d3grnBzRQwkCVe0QX 4tvHQgLQB6JHIDNcq2mH1WATON4f4jx132w5KSk0pFxFrgwZkYDo/Jt4qZGCtOxZbIsf BxDhgoxnyHMhq8rkux/RUvXoksAYPY8DzAi7GX7QLniOa4jVKxa5Ssu8w8/YlJ72MGT1 K/qmiEh91P5GEgtB8wLOK8eQBsqPqR7hgKnZC/DLvQ9PirS5tZ/eaAhSBt+vxrhbZUOa agvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xV6KpKFzgcSdzTDa62IddnjO8g4GpB653UpQqQBQYBA=; b=mhMBPtmIo6Ly1pfjYcjKFdKjibIbPXvSMpMKqikODjORZpoZbtHwHAkH8LEtyPnHDs 3k1DFjpR96dQo/U8uq1gos0MMxCQLAiz32EXIssO2QzGwBZkGjhra/W78d10iyaoBI7Z Sm7nB15+BTEcLdDZLiUogVbDugg7hGi2hpo8SYEe3gzsF88iPBN/kqteEk0yHbMcFzAQ PgJrOHq3Wm77m2dcbsn2jdIfiEFLGwn2sg4rsMbQrn34Wly7XuzbvXgu2OZwET7iLy7J sK0iG1/ZKJsIo3UEUw2Hrkxm+56XyL4Yy7wwRn1NYqty6CZMxeq37q7wegcMN32rvcQZ Sudw== X-Gm-Message-State: AGRZ1gKdBVXQ2jhxAcR8cP9yL/XENFIiZTG6QACx+sZiWO2FjbsZYHMq w8n0h3PXCiIgNAdGFdmFkoOAfvjJ X-Google-Smtp-Source: AJdET5fggecTE4NNFNNs6qc1v0WucmhdkTdUlK0StxKJVBF01CFRLUn5aVb1Ebw9q/JJmrx8YZid3Q== X-Received: by 2002:a1c:f916:: with SMTP id x22mr17498518wmh.87.1543050503437; Sat, 24 Nov 2018 01:08:23 -0800 (PST) Received: from vb-18.04 (254.7.19.109.rev.sfr.net. [109.19.7.254]) by smtp.gmail.com with ESMTPSA id i9sm25612221wrs.34.2018.11.24.01.08.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Nov 2018 01:08:23 -0800 (PST) From: Francois Perrad X-Google-Original-From: Francois Perrad To: buildroot@busybox.net Date: Sat, 24 Nov 2018 10:07:54 +0100 Message-Id: <20181124090754.14775-4-francois.perrad@gadz.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181124090754.14775-1-francois.perrad@gadz.org> References: <20181124090754.14775-1-francois.perrad@gadz.org> Subject: [Buildroot] [PATCH/next 3/3] prosody: fix runtime dependencies X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" prosody is not available for Lua 5.3, but only 5.1 & 5.2. prosody needs the module BitOp which is included in LuaJIT note: the actual config is working only LuaJIT Signed-off-by: Francois Perrad --- package/prosody/Config.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/prosody/Config.in b/package/prosody/Config.in index 133b0b134..c32ca20e2 100644 --- a/package/prosody/Config.in +++ b/package/prosody/Config.in @@ -2,7 +2,9 @@ config BR2_PACKAGE_PROSODY bool "prosody" depends on BR2_USE_MMU # fork 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_LUABITOP if !BR2_PACKAGE_LUAJIT # runtime select BR2_PACKAGE_LUAEXPAT # runtime select BR2_PACKAGE_LUASEC # runtime select BR2_PACKAGE_LUASOCKET # runtime @@ -19,3 +21,6 @@ config BR2_PACKAGE_PROSODY comment "prosody needs the lua interpreter, dynamic library" depends on !BR2_PACKAGE_HAS_LUAINTERPRETER || BR2_STATIC_LIBS depends on BR2_USE_MMU + +comment "prosody needs a Lua 5.1/5.2 interpreter" + depends on BR2_PACKAGE_LUA_5_3