From patchwork Fri Jun 26 03:58:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 488595 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 74EF91402A8 for ; Fri, 26 Jun 2015 13:59:11 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=c1rHgw2i; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7BCCB92168; Fri, 26 Jun 2015 03:59:10 +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 S1iHhH+Bb4ZG; Fri, 26 Jun 2015 03:59:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 6C1498AAC1; Fri, 26 Jun 2015 03:59:08 +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 0D9611C1E5F for ; Fri, 26 Jun 2015 03:59:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0ABB38A8FA for ; Fri, 26 Jun 2015 03:59:04 +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 CNAjEDaINpQ7 for ; Fri, 26 Jun 2015 03:59:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id 90CE989C62 for ; Fri, 26 Jun 2015 03:59:00 +0000 (UTC) Received: by wguu7 with SMTP id u7so77846953wgu.3 for ; Thu, 25 Jun 2015 20:58:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8bA2Ssndq2/T4lA+AC0KI9/sgmoZYcUtEBGRx78pbZM=; b=c1rHgw2isN9qcI2c9ODC+YPgDDTKO/u2dSbX691Pi3uyskUpuN1u3n5p7yE/GjhNLf yfq025nbWbWOafLEgdPXTjlEgNnu0nrz0WTC6XQlozBIWkjvWa3qL7pQ+/bK7y22qqpH +j6BeQ73tNZesQpDBjS+XInXCyk72uSEVorDeUW+6DYNZtIgV5S+g9HysCBNsCjNSviA QDrXtdafCnXUBedVDEM/G/DsQKu6O7sjRUh6C5TKuwDneXY/2PBeOuaZ+T+K03RdkniO jm4uEL6ocE39ctTUSq8ftK7uHXsJVVkCjDzXblwM4c0YaEUhu+HenaL8GdQe457h9AMQ A9KQ== X-Received: by 10.194.5.4 with SMTP id o4mr76979174wjo.51.1435291139167; Thu, 25 Jun 2015 20:58:59 -0700 (PDT) Received: from beast.localdomain (dynamic-adsl-78-15-122-146.clienti.tiscali.it. [78.15.122.146]) by mx.google.com with ESMTPSA id lz10sm812505wjb.48.2015.06.25.20.58.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2015 20:58:58 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Fri, 26 Jun 2015 05:58:54 +0200 Message-Id: <1435291134-6780-3-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1435291134-6780-1-git-send-email-fabio.porcedda@gmail.com> References: <1435291134-6780-1-git-send-email-fabio.porcedda@gmail.com> Subject: [Buildroot] [PATCH v4 2/2] pkg-luarocks: fix top-level parallel makefile support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" In the *-install-target phase the manifest file is being updated, if multiply packages try to update it they fail. To avoid multiple access to the manifest file use flock to sync multiple luarocks packages. e.g. installing three luarocks packages: make lua-cjson-build lua-coat-build lua-coatpersistent-build make lua-cjson lua-coat lua-coatpersistent -j Fix error: Updating manifest for /home/tetsuya/buildroot/br2/output/target/usr/lib/luarocks/rocks No existing manifest. Attempting to rebuild... Error: rock_manifest file not found for lua-coat 0.9.1-1 - not a LuaRocks 2 tree? Signed-off-by: Fabio Porcedda --- package/luarocks/luarocks.mk | 6 ++++-- package/pkg-luarocks.mk | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package/luarocks/luarocks.mk b/package/luarocks/luarocks.mk index 2b6c975..413e23d 100644 --- a/package/luarocks/luarocks.mk +++ b/package/luarocks/luarocks.mk @@ -53,8 +53,10 @@ endef $(eval $(host-generic-package)) -LUAROCKS_RUN = LUA_PATH="$(HOST_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)/?.lua" \ - $(LUA_RUN) $(HOST_DIR)/usr/bin/luarocks +LUAROCKS_RUN_ENV = LUA_PATH="$(HOST_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)/?.lua" +LUAROCKS_RUN_CMD = $(LUA_RUN) $(HOST_DIR)/usr/bin/luarocks + +LUAROCKS_RUN = $(LUAROCKS_RUN_ENV) $(LUAROCKS_RUN_CMD) define LUAROCKS_FINALIZE_TARGET rm -rf $(TARGET_DIR)/usr/lib/luarocks diff --git a/package/pkg-luarocks.mk b/package/pkg-luarocks.mk index 83f338e..0a7ba47 100644 --- a/package/pkg-luarocks.mk +++ b/package/pkg-luarocks.mk @@ -58,8 +58,8 @@ endif # ifndef $(2)_INSTALL_TARGET_CMDS define $(2)_INSTALL_TARGET_CMDS - cd $$($(2)_SRCDIR) && \ - $$(LUAROCKS_RUN) make --keep $$($(2)_ROCKSPEC) $$($(2)_BUILD_OPTS) + cd $$($(2)_SRCDIR) && $$(LUAROCKS_RUN_ENV) flock $$(TARGET_DIR) \ + $$(LUAROCKS_RUN_CMD) make --keep $$($(2)_ROCKSPEC) $$($(2)_BUILD_OPTS) endef endif