From patchwork Thu Oct 12 07:45:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rg_Krause?= X-Patchwork-Id: 824713 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=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yCNDp6pBnz9sRq for ; Thu, 12 Oct 2017 18:45:30 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 510C088590; Thu, 12 Oct 2017 07:45: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 KyPcXUuOcP4P; Thu, 12 Oct 2017 07:45:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 22D508850C; Thu, 12 Oct 2017 07:45:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 443E61C16C1 for ; Thu, 12 Oct 2017 07:45:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3B26C30861 for ; Thu, 12 Oct 2017 07:45:26 +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 6b4YoccPW4IH for ; Thu, 12 Oct 2017 07:45:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.142]) by silver.osuosl.org (Postfix) with ESMTPS id 3BDB030848 for ; Thu, 12 Oct 2017 07:45:25 +0000 (UTC) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3yCNDd5XR6z10Hp for ; Thu, 12 Oct 2017 09:45:21 +0200 (CEST) Received: from mail.embedded.rocks ([127.0.0.1]) by localhost (mail.embedded.rocks [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 68n0cJbsa23Y; Thu, 12 Oct 2017 09:45:20 +0200 (CEST) Received: from nzxt.fritz.box (port-92-195-92-98.dynamic.qsc.de [92.195.92.98]) (Authenticated sender: joerg.krause@embedded.rocks) by mail.embedded.rocks (Postfix) with ESMTPSA; Thu, 12 Oct 2017 09:45:20 +0200 (CEST) From: =?utf-8?q?J=C3=B6rg_Krause?= To: buildroot@buildroot.org Date: Thu, 12 Oct 2017 09:45:18 +0200 Message-Id: <20171012074518.14902-1-joerg.krause@embedded.rocks> X-Mailer: git-send-email 2.14.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] lua: add patch to fix pkg-config file for version 5.1.x 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch applies the fix added in commit 8d845683e37640d33c186c0091ccce6ae3ef0777 to Lua version 5.1.x. When Lua is linked with additional libraries, these libraries should go into the pkg-config file as well. Otherwise, linking swupdate with the lua library (version 5.1.x) fails: ``` /home/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/liblua.so: undefined reference to `dlopen' /home/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/liblua.so: undefined reference to `dlclose' /home/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/liblua.so: undefined reference to `dlerror' /home/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/liblua.so: undefined reference to `dlsym' ``` The build error was detected when building the package swupdate from upstream with Lua 5.1 compatibility support [1] enabled. [1] https://groups.google.com/forum/#!topic/swupdate/cBvq27-zuvs Signed-off-by: Jörg Krause Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
--- package/lua/5.1.5/0003-add-MYLIBS-to-Libs-in-lua-pc.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/lua/5.1.5/0003-add-MYLIBS-to-Libs-in-lua-pc.patch diff --git a/package/lua/5.1.5/0003-add-MYLIBS-to-Libs-in-lua-pc.patch b/package/lua/5.1.5/0003-add-MYLIBS-to-Libs-in-lua-pc.patch new file mode 100644 index 0000000000..8a5a0d85be --- /dev/null +++ b/package/lua/5.1.5/0003-add-MYLIBS-to-Libs-in-lua-pc.patch @@ -0,0 +1,12 @@ +diff -purN lua-5.1.5.orig/etc/lua.pc lua-5.1.5/etc/lua.pc +--- lua-5.1.5.orig/etc/lua.pc 2017-10-12 09:25:20.339277165 +0200 ++++ lua-5.1.5/etc/lua.pc 2017-10-12 09:26:37.272796305 +0200 +@@ -25,7 +25,7 @@ Name: Lua + Description: An Extensible Extension Language + Version: ${R} + Requires: +-Libs: -L${libdir} -llua -lm ++Libs: -L${libdir} -llua -lm @MYLIBS@ + Cflags: -I${includedir} + + # (end of lua.pc)