From patchwork Sun Feb 16 20:02:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1238844 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.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.a=rsa-sha256 header.s=20161025 header.b=Lbyy9ncj; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48LJ180Chbz9sPK for ; Mon, 17 Feb 2020 07:02:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 14A4520490; Sun, 16 Feb 2020 20:02:01 +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 fFUIasaHsr8U; Sun, 16 Feb 2020 20:01:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 3FF6320468; Sun, 16 Feb 2020 20:01:59 +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 767571BF3BC for ; Sun, 16 Feb 2020 20:01:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 72A8020468 for ; Sun, 16 Feb 2020 20:01:57 +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 JcEe90cbnJ1a for ; Sun, 16 Feb 2020 20:01:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by silver.osuosl.org (Postfix) with ESMTPS id E3F4720460 for ; Sun, 16 Feb 2020 20:01:53 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id b17so16236037wmb.0 for ; Sun, 16 Feb 2020 12:01:53 -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:mime-version :content-transfer-encoding; bh=RJ7XH7m652JIVSeJUUk7ayDSXIeqnKXJgc/V4nsCWqg=; b=Lbyy9ncjvDAJ3hUcr4m7hj6FLQJLsJlKpzYVr0ki4JSSaUOCBwQPxJUCO3LUfnMWQe XyKAZ/6VtRCF0YeJHVQ0KjYmZmK+mDj9NMHyuUeBpjCrbrwAaD8e0GZm5UqN55Oq2976 /h6QNuKR972MMEQZfuZiBr3A2gP94V5SG8+jqpnxsiVeYzdpDs7WzwuopbXt34RQ4WLQ VCw+Q7xKV7Szd/F7IM3P/QGliSWysoi6RNccU2BjCVfVlHE4XEx6gq8TXYW49HMTVRBs 1fomD58qpxw9LzoSXVP+Yx/RmmMRrXQhrTUB/wakagWf+ndO4lAE8J642NiaNHZBSroW mJ/w== 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:mime-version :content-transfer-encoding; bh=RJ7XH7m652JIVSeJUUk7ayDSXIeqnKXJgc/V4nsCWqg=; b=tDSgblhdWVWYWc0yIePML74RRpfi90wwE9oCXZ08HL2MIcL2EYlNzrgwDAIC3eAx0g n1+Fd/MiwfYPVaFHMxoFsIjA1wkpzOqMVi8b4N+rBZiNywsX/B1i5W4PNu3oJ2yFMh1e oFGbZjSEcj9RoEHF7k4Y4OUEdi0yiZqJwmBamXefEpvJQKjOpSLv4OdOrsaaIeW+xZPC z/fxQx950+goWgRsA2eIVRtoUty+rG2WppH6wK3gb9C7dXaHdArmFzyQRXpbc1pHWLDz yubvw8JbsKSHZt1iD/xXGdi50+LNJEwN+2qvEdb7xRghAvh+FdHMCRfZ8co8FC2w8ozv WOpg== X-Gm-Message-State: APjAAAWOztuu4WFp9JvubLj3Hhe87o/ve7vYgwX04GHU6k7wANnR1UMH EZnSAE/EnyQk8sJoQuioFAuhLyXhdik= X-Google-Smtp-Source: APXvYqyxioW7O21GBHLKwJzMxBO8YOpZuG7UHInpZb7o9PVf3lBECUhLO9HoI+OSKrnc+E6fokOSVg== X-Received: by 2002:a1c:6a16:: with SMTP id f22mr17204963wmc.53.1581883312049; Sun, 16 Feb 2020 12:01:52 -0800 (PST) Received: from kali.home (lfbn-ren-1-602-70.w81-53.abo.wanadoo.fr. [81.53.179.70]) by smtp.gmail.com with ESMTPSA id y8sm16796101wma.10.2020.02.16.12.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Feb 2020 12:01:51 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sun, 16 Feb 2020 21:02:41 +0100 Message-Id: <20200216200242.1414766-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/2] package/gensio: add libgensio.pc 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: , Cc: James Hilliard , Fabrice Fontaine , Francisco Gonzalez Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Fabrice Fontaine --- package/gensio/0002-Add-libgensio.pc.patch | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 package/gensio/0002-Add-libgensio.pc.patch diff --git a/package/gensio/0002-Add-libgensio.pc.patch b/package/gensio/0002-Add-libgensio.pc.patch new file mode 100644 index 0000000000..61bba89580 --- /dev/null +++ b/package/gensio/0002-Add-libgensio.pc.patch @@ -0,0 +1,73 @@ +From 4ac29c3d2c33b084214b05c568c68cfe4980939b Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Wed, 12 Feb 2020 08:49:34 +0100 +Subject: [PATCH] Add libgensio.pc + +gensio can optionally depends on openssl so add libgensio.pc to allow +packages (such as ser2net) that link statically with gensio to use +pkg-config to retrieve those static dependencies + +For example, this will avoid the following build failure on ser2net: + +checking gensio/gensio.h usability... yes +checking gensio/gensio.h presence... yes +checking for gensio/gensio.h... yes +checking for str_to_gensio in -lgensio... no +configure: error: libgensio won't link, please install gensio dev package + +Fixes: + - http://autobuild.buildroot.org/results/f15cf961ddaf849987afce01ede0e3d1e77a0fc0 + +Signed-off-by: Fabrice Fontaine +[Upstream status: https://github.com/cminyard/gensio/pull/12] +--- + configure.ac | 1 + + lib/Makefile.am | 5 +++++ + lib/libgensio.pc.in | 10 ++++++++++ + 3 files changed, 16 insertions(+) + create mode 100644 lib/libgensio.pc.in + +diff --git a/configure.ac b/configure.ac +index 2f0221e..8cc8eff 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -267,6 +267,7 @@ if test "x$enable_internal_trace" != xno; then + fi + + AC_OUTPUT([Makefile ++ lib/libgensio.pc + lib/Makefile + include/Makefile + include/gensio/Makefile +diff --git a/lib/Makefile.am b/lib/Makefile.am +index aacc618..d39b889 100644 +--- a/lib/Makefile.am ++++ b/lib/Makefile.am +@@ -25,3 +25,8 @@ libgensio_la_SOURCES = \ + libgensio_la_LDFLAGS = $(OPENSSL_LIBS) + + EXTRA_DIST = README.rst ++ ++# This variable must have 'exec' in its name, in order to be installed ++# by 'install-exec' target (instead of default 'install-data') ++pkgconfigexecdir = $(libdir)/pkgconfig ++pkgconfigexec_DATA = libgensio.pc +diff --git a/lib/libgensio.pc.in b/lib/libgensio.pc.in +new file mode 100644 +index 0000000..23451a3 +--- /dev/null ++++ b/lib/libgensio.pc.in +@@ -0,0 +1,10 @@ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++ ++Name: libgensio ++Description: A library to abstract stream I/O like serial port, TCP, telnet, UDP, SSL, IPMI SOL, etc. ++Version: @VERSION@ ++Libs: -L${libdir} -lgensio ++Libs.private: @OPENSSL_LIBS@ +-- +2.24.1 +