From patchwork Sun Jul 8 09:36:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 940928 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:400c:c09::23f; helo=mail-wm0-x23f.google.com; envelope-from=swupdate+bncbcxploxj6ikrbrfwq7nakgqeugyb62q@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="I0oqoAoO"; dkim-atps=neutral Received: from mail-wm0-x23f.google.com (mail-wm0-x23f.google.com [IPv6:2a00:1450:400c:c09::23f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41NjzW4QZ0z9s70 for ; Sun, 8 Jul 2018 19:37:11 +1000 (AEST) Received: by mail-wm0-x23f.google.com with SMTP id v25-v6sf8748662wmc.8 for ; Sun, 08 Jul 2018 02:37:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1531042628; cv=pass; d=google.com; s=arc-20160816; b=fSKAFwy8WMOBG4ltnPRWuZQtKvbgF4etvSMFSmhKItBG2UBX55PlHv8Ltgcl+Iq3ZD Y940ro4cZMtLt8iJIkDJvZze4GbnuFP89Xdv6jsrbJesjM+eyXeTFIHdbIave1DUnKXV YP5XfzHR4bSgDYp3eE8d/kiQtoEHI0Rf0gV4mBKfqGOZ0BaQ1ejM/9Kp01Gn+LMI76lj jxVaQBfgVINay2xTyCD8qrFKPawbzMlxgWvSXY25r8jXyy+ym/U3dH06cUnlRa6EEdA/ DiOcfNyStoua1xzn/TDuQJO58c3gCLXEZcBYArlgjyRFW0WXB+BMdcaRNTmPYuBMNRrc Lbrw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:arc-authentication-results :arc-message-signature:mime-version:sender:dkim-signature :arc-authentication-results; bh=CjyN2XSzwjrtULDlu9WI+BNUT4jJTARLlmYZY9BUPH8=; b=Dv/dQbXntMkEy6PO/+Co2r4yQPteMc0gDDoNo2PMKrrw9QX0nb1If3cqHwVhWpaTF8 iuCnGM9pZBQYLVp6rou6+1U5l+Rmx+SBfP+3k8BJbk7wuQiSBOEohtCI2/oQ0YEbsZZ3 4FwLO+3HH503xD5DFmz90bGpCO7RRK57f7Bmph18u0UYf+wGkx+zEcxkMGbjcbACMmeh ArmjSJtrJFF2crTuK1akddcwklj4mviIrjznjD/wS/aeYjdRk2Zq8Zmpu3dlZJOhYlvQ m2ht76hPPxYmYT4eGZXyoIdzHR+sfKkImoWAJDyErK8z1UbOYvvUUEYVx63EXlH80eq7 lggQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=CjyN2XSzwjrtULDlu9WI+BNUT4jJTARLlmYZY9BUPH8=; b=I0oqoAoOGl/DwWJRVtAoZohOwMghQ+lAcZoYJkGTBCWZdBLvSav3BC/5siNMffZArI V9F4xEaS2pnXC2JquIrcIgKF7g/VxESQ1GvO3v6FxGJ4uBPxPACBtuu5K5XZVVMm4RLg V9Gi0pFEz1oJgboabBuH8fkqlNb5Jv1HSRZwbjJ71pwghlH+bzIGPgNcd4hsXkjehcw4 I01PGn0rGKaz09UcY/jQAYOxG7rF3KGd7iPy5+kaEh2colRfbBDWsWLqwXK+e93MVgMl EPFLo6neEUNKgApUFJx5IgvCWcf+GiJ3Awy9SCeXkfKe9EIyJI8lUeYZs0s88ATrgQDW Y3WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=CjyN2XSzwjrtULDlu9WI+BNUT4jJTARLlmYZY9BUPH8=; b=D/k1fV/nrjH0wIPtFTVGuDDUoJcQKQKfmarrQaTTzimJsGWYCsdsugfTaDwkxwOpNF eymY7d9ARzITYh//Sx+8j0dSQktZ2y6iuNZlDGE9vZI93hV1WJMi9TAkGnby6l7beCBG S+B6fQ/tEK0SvKCxOdVUUK0W/QA/JlmLBiTXLlOAF350Hj9Nm6ygVJ5zArvscBZI3Ct7 c4SPoky6rJQc50dbNXTTMCDAOYFBBEsvNyY0DluE7snyFu0G3AX8fGPmgpDdDg3EKIUj ilS/wAukpyAfXz+WYE8PrdnGIuYWyAnmpZKjb3p3n1nFBajhfmWs3sm7iwVI+ylQK2b7 6j2g== Sender: swupdate@googlegroups.com X-Gm-Message-State: APt69E2DrKHtaRqI0/Nk0M4s05y0THAqMJAsQ7EP8KxqnU811vpy+ZI3 +/nDGpK/8f9tSanxttIzQhU= X-Google-Smtp-Source: AAOMgpeDln3Opc0BKLhGb92K/pNWuHWNCltQ1U4w7QbSTO7lxhIbQAeYaQAWH/+pkB8W5SZE4CayDw== X-Received: by 2002:a1c:9e97:: with SMTP id h145-v6mr113384wme.3.1531042628841; Sun, 08 Jul 2018 02:37:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:a1c:e91a:: with SMTP id q26-v6ls2357480wmc.7.canary-gmail; Sun, 08 Jul 2018 02:37:08 -0700 (PDT) X-Received: by 2002:a1c:3391:: with SMTP id z139-v6mr1273803wmz.16.1531042628377; Sun, 08 Jul 2018 02:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531042628; cv=none; d=google.com; s=arc-20160816; b=ywFAP4cp+hqxxL5IcjjqsW/sDmrFP1trFRRNrcCcCs9XyPfXe/rQKylUygCbNpGklM 8E1ddfzXYv+xJ7wz1GVGO8Nf9thCXlSga6GhYjDRkM0UofL0AL4H2hM2enlooQ460i2B seFUc1BRU4RzSuXxIU4fP74lUc+4qG4s+N2vvoFvhR/5818wpvUhyXVUKwys+stVJvk+ d0dSwewGg95V1NHCrD+TICsSk/2FSsNvIlhGz5VOMvVqn3Au1TdEHgjvlm83DiszYmHN KPiehbYy/ulUjvogHE75x96LZ6lge34nyd6yy5qxLyLjmc4JNkgs9pThQD8Trv2KsuGl JSLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=JbpD5uRDs+hd30FftBiS03+3QL1xZHd3pwTBea80QtQ=; b=y/3qGtqpC3I/rMWCd1Mj2hOShU0JFgYJMipNhzGNt6I8A9vV9NwoAM735QUGgRkxmO ssVKQBAc5YLEsGSHMT6JveX5rtDWFqm2fwj5TtK9acyMG/sm3Smf2TTtT2zsGMl7O8SX c1ztOYx1wKTS/2uXShInMaeD6j7lZ0vhx3zbT2KffTbptMb11M+1wkO54P6UyOOnZERR cr/xS7R6ZcbP97WK2trVoYowhoHhHBXYWpHUap6x2RrrNFBVfO2B2EGTMTECPDBa3Rqw aIKIWOYKjjcIDuJ+hWKl3HS+3G0Z7QFi2hw9D6yx/4yNE51B48MqDMaol7C6RLDs7D1m bwhQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.10]) by gmr-mx.google.com with ESMTPS id x21-v6si413886wmh.3.2018.07.08.02.37.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jul 2018 02:37:08 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.10; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 41NjzS1B2Xz1qtPS; Sun, 8 Jul 2018 11:37:08 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 41NjzS12KFz1qqkC; Sun, 8 Jul 2018 11:37:08 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id P5yGBu6Gu15d; Sun, 8 Jul 2018 11:37:07 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Sun, 8 Jul 2018 11:37:07 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id EB155454038F; Sun, 8 Jul 2018 11:37:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06T0r7RjlTzC; Sun, 8 Jul 2018 11:37:04 +0200 (CEST) Received: from papero.fritz.box (papero.fritz.box [192.168.178.132]) by babic.homelinux.org (Postfix) with ESMTP id E9DAB4540640; Sun, 8 Jul 2018 11:37:01 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [[meta-swupdate] [PATCH] 4/7] lua: add lua-socket Date: Sun, 8 Jul 2018 11:36:54 +0200 Message-Id: <1531042617-6503-4-git-send-email-sbabic@denx.de> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531042617-6503-1-git-send-email-sbabic@denx.de> References: <1531042617-6503-1-git-send-email-sbabic@denx.de> X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , LuaSocket is a Lua extension library to add network functionality to LUA. Signed-off-by: Stefano Babic --- recipes-lua/luasocket/files/0001-fix-for-OE.patch | 29 ++++++++++++++++++ recipes-lua/luasocket/luasocket_git.bb | 36 +++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 recipes-lua/luasocket/files/0001-fix-for-OE.patch create mode 100644 recipes-lua/luasocket/luasocket_git.bb diff --git a/recipes-lua/luasocket/files/0001-fix-for-OE.patch b/recipes-lua/luasocket/files/0001-fix-for-OE.patch new file mode 100644 index 0000000..051b503 --- /dev/null +++ b/recipes-lua/luasocket/files/0001-fix-for-OE.patch @@ -0,0 +1,29 @@ +From 2e6cbd39bb99c890bcbc513dcd643c239d34f7c6 Mon Sep 17 00:00:00 2001 +From: Kas User +Date: Tue, 22 May 2018 19:20:04 +0200 +Subject: [PATCH] fix for OE + +Signed-off-by: Kas User +--- + makefile | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/makefile b/makefile +index cc15b4e..632fb73 100644 +--- a/makefile ++++ b/makefile +@@ -14,8 +14,10 @@ PLATS= macosx linux win32 mingw freebsd solaris + + all: $(PLAT) + ++LUAV = `pkg-config --modversion lua | cut -d'.' -f1,2` ++ + $(PLATS) none install install-unix local clean: +- $(MAKE) -C src $@ ++ $(MAKE) -C src $@ LUAV=${LUAV} + + print: + $(MAKE) -C src $@ +-- +2.7.4 + diff --git a/recipes-lua/luasocket/luasocket_git.bb b/recipes-lua/luasocket/luasocket_git.bb new file mode 100644 index 0000000..ad8d5eb --- /dev/null +++ b/recipes-lua/luasocket/luasocket_git.bb @@ -0,0 +1,36 @@ +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ab6706baf6d39a6b0fa2613a3b0831e7" + +DEPENDS = "lua" + +RDEPENDS_${PN} += "lua" + +SRC_URI = "git://github.com/diegonehab/luasocket;protocol=https \ + file://0001-fix-for-OE.patch \ +" + +# Modify these as desired +PV = "0.0+git${SRCPV}" +SRCREV = "652959890943c34d7180cae372339b91e62f0d7b" + +S = "${WORKDIR}/git" + +FILES_${PN} = "${libdir} ${datadir}/lua" + +EXTRA_OEMAKE = 'DESTDIR=${D} PREFIX=/usr CC="${CC}" LD="${CC}" MYLDFLAGS="${LDFLAGS}"' + +inherit pkgconfig + +do_configure () { +} + +do_compile () { + # You will almost certainly need to add additional arguments here + oe_runmake +} + +do_install () { + # This is a guess; additional arguments may be required + oe_runmake install +} +