From patchwork Sat Apr 5 17:46:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yegor Yefremov X-Patchwork-Id: 337217 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 0430114007B for ; Sun, 6 Apr 2014 03:46:49 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3AC53270CB; Sat, 5 Apr 2014 17:46:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H3UD+EqKhbq9; Sat, 5 Apr 2014 17:46:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C047F26CE5; Sat, 5 Apr 2014 17:46:47 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 3AC2E1BF97E for ; Sat, 5 Apr 2014 17:46:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 35E838BB97 for ; Sat, 5 Apr 2014 17:46:46 +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 FA6rcHFelid1 for ; Sat, 5 Apr 2014 17:46:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bk0-f42.google.com (mail-bk0-f42.google.com [209.85.214.42]) by whitealder.osuosl.org (Postfix) with ESMTPS id D00BE8B88F for ; Sat, 5 Apr 2014 17:46:44 +0000 (UTC) Received: by mail-bk0-f42.google.com with SMTP id mx12so440385bkb.1 for ; Sat, 05 Apr 2014 10:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=6uTmerGI4WcxlaqSozyM580CukppfH0TYLByE6BI9x4=; b=c5jtqvjm1LWNFQaw4yo5vwGUoV08nRDzUK1aQgAO4/XjmQdpuo2pPAZnBlCmUaCF4k rBk7BYxMb41zSSBeBM1+1q896NvMEZG10ASyeeVY7w/HNlLHS9pqkz9f382HFf42Ir67 +yX32/q22+2zRYqbMmlpFR+rWUAOieHrhqGESmq2swuALnkkkmfEd0Yz/nWlev5SjGLB sHa7QBEL0kc1rkRTk6AxwCf9Izn21ELKpCn5ytsQUe0lVW4CXcLpUSWSUr+TdpaFEGN6 TyLxCpvts/aS3p77FsyxY/FtVDu+JmbWkNALHw6DTpmvsB2u5bBF5RLjPkDBdhJJLdwl 6uMg== X-Received: by 10.204.54.74 with SMTP id p10mr32791bkg.169.1396720003171; Sat, 05 Apr 2014 10:46:43 -0700 (PDT) Received: from user-Lenovo-IdeaPad-Z500.localdomain (x2f0ba61.dyn.telefonica.de. [2.240.186.97]) by mx.google.com with ESMTPSA id t9sm5277735bkh.16.2014.04.05.10.46.41 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 05 Apr 2014 10:46:42 -0700 (PDT) From: Yegor Yefremov To: buildroot@busybox.net Date: Sat, 5 Apr 2014 19:46:28 +0200 Message-Id: <1396719988-2275-1-git-send-email-yegorslists@googlemail.com> X-Mailer: git-send-email 1.8.3.2 Subject: [Buildroot] [PATCH] libuci: fix Lua finding X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net This patch fixes Lua path comparison, if Lua is not provided. Signed-off-by: Yegor Yefremov --- package/libuci/libuci-01-uci-fix-Lua-finding.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 package/libuci/libuci-01-uci-fix-Lua-finding.patch diff --git a/package/libuci/libuci-01-uci-fix-Lua-finding.patch b/package/libuci/libuci-01-uci-fix-Lua-finding.patch new file mode 100644 index 0000000..f37e136 --- /dev/null +++ b/package/libuci/libuci-01-uci-fix-Lua-finding.patch @@ -0,0 +1,31 @@ +From 980432ce260020ed8a907b3bbc1334845ba4c4a9 Mon Sep 17 00:00:00 2001 +From: Yegor Yefremov +Date: Sat, 5 Apr 2014 19:18:10 +0200 +Subject: [PATCH] uci: fix Lua finding + +If ${LUAPATH} is not quoted and Lua is not provided, then following +error occurs: + +"NOT" "No such file or directory" "EQUAL" "0" "OR" "EQUAL" "" + +Signed-off-by: Yegor Yefremov +--- + lua/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lua/CMakeLists.txt b/lua/CMakeLists.txt +index e4295d7..4ba8e37 100644 +--- a/lua/CMakeLists.txt ++++ b/lua/CMakeLists.txt +@@ -36,7 +36,7 @@ IF(NOT LUAPATH) + ) + + IF(BUILD_LUA) +- IF(NOT ${LUA_CHECK_RES} EQUAL 0 OR ${LUAPATH} EQUAL "") ++ IF(NOT ${LUA_CHECK_RES} EQUAL 0 OR "${LUAPATH}" EQUAL "") + MESSAGE(SEND_ERROR "Lua was not found on your system") + ENDIF() + ENDIF() +-- +1.8.3.2 +