From patchwork Thu Feb 1 01:44:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 126418 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1266394ljc; Wed, 31 Jan 2018 17:44:35 -0800 (PST) X-Google-Smtp-Source: AH8x227aulLTwXn9Rhn3MAMx0FaWSAu5HVLeIq6BFX5ijXAdCYn4bumsU6yKbHTcu4yFM1m4aZoU X-Received: by 2002:a17:902:d90a:: with SMTP id c10-v6mr30942870plz.200.1517449475056; Wed, 31 Jan 2018 17:44:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517449475; cv=none; d=google.com; s=arc-20160816; b=U8WEcuO3JGkwlPVRelbok/L/5yja7EsWWWZ+PLZ7jFsvbWERFmNhAhbVM+o0cB9g7a EFCjANSL9UxuUQtOA8MLLYOML1UYln88agqPM2gZ4yH8VA3m7Z6QHcOSZ6ir/kte1++J Eutj1IbK3C0+IoxVwyTuK8RtNGrFeNHVyOoX+K6iPgX4n2SVGB6FpmOHdGkt9s/9ZKaO v6cwB97Ef4hCIs2mnWdcTpGQo4q9PZ10EUEwt0rVYZTTh58izNNnBBUtgPiqLvcCD1O7 Gq0CxvHOeBYHc3xgbPlakAbnAmCTxg5J3TNbUsdZey9WaCI0logHvJh1EATkZleW0Fp3 VQTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=s6EpMAoecT3ZWf+t58NlbNXbVETO9p3SZb9yMOFjoEo=; b=ITAmsF3uQwgvSWjWuxvC4hBAoOyCdiPlx3yoZtZooHmC2G34z4h+45oJRfP+bAQk3J LEgaIc8ywZWnp4Q7XuyhiKc3/WLvB8heBzq64+d48tyi/SLdah6dvz+rthu8KpsB04YV r+6wkqc3WMDGz6zB/LSPE0bHGLXn2O57d4pcJ1EJh0T3D73FUoApdzUR/L8l08sJBgOW 7GyjKzaGv/9RsoZ4dXYLKWDtloi8PbHR9iJCBKw+J9O3yNBLxrsejZ4ltsujmaes08Rv 4v7sInPDYMniWqv1hMa6ZzDgQdLGZDHaKrxLvVTkWA9sGWqgNMii+/1TQa5vnl/DiUkZ TzGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=bA+vS7Ta; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id b2-v6si438156plr.656.2018.01.31.17.44.34; Wed, 31 Jan 2018 17:44:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=bA+vS7Ta; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id AE1DF7883C; Thu, 1 Feb 2018 01:44:28 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl0-f68.google.com (mail-pl0-f68.google.com [209.85.160.68]) by mail.openembedded.org (Postfix) with ESMTP id 2F47477D16 for ; Thu, 1 Feb 2018 01:44:26 +0000 (UTC) Received: by mail-pl0-f68.google.com with SMTP id o13so2259486pli.6 for ; Wed, 31 Jan 2018 17:44:28 -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; bh=IAhm0AcgYUrlodoMbWeQspYXApIhrtll30cKb+aoKKA=; b=bA+vS7TaH9eV0qMHSAQqCjA6y5hRU3qNmKTpUAwwlRNt2hdcjhD1RfTqdkXWAP4onb 5cfmAGMAkQU+qtFsfQ6Dc8Nh9b58lV4YPTzX2LZM9/tsebCESfLZVDwDyPpd6/RO556Y fTXSoYtzUlu9fskNhZ2sV1As/dcZ/GAgZlUhIOIfQlPBoiZvEICxByL3AKOBcA8pIEL1 6A30wfQ+zEA2C843DRjETUFZ4EyZ1IpYeqXeUONnnFlyMqK/ogVIZdhJnW+6wrwNfGFS 7F4qTIVmO1NxMJBZsJKm+d4coLrHe1P8jqgtGjNI/H/d5TITe7vhpHtNfOPz6p3wYGph FN4g== 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; bh=IAhm0AcgYUrlodoMbWeQspYXApIhrtll30cKb+aoKKA=; b=Scniiopz/ZjBPo1uFD+b7LRLn6EfvufuSqHF2Ld+lyj4udRKSoaWaRrq5+wjNYi9w5 lCoKdR6OJ8m9Z8hbZtDrmAkiKj3yilNC5j1fRqpt1R3s9IFavjpyIhQXpqy286JoOMzb kcLPLIW+ZyeqZLjJWGxfNW4CuGhZ/nOFNaIkXonb/3Gn1lR6IMCUNBhM0CuMF8N4eToH kpyfIbIsBCPFs8Ak0A1sy2I529Iw6K+RSgwBPjmnCxLzdC0/VLVmdI2SLSO0R4n/Ix0E ApKqLAIn34e+o7VzFYXamMO/UhdP8ZWZWL+LMLRdsI5Lnts/5rtUuVAUyCln2uvYdpp/ dm+Q== X-Gm-Message-State: AKwxyteT7ZNyiMPd9AYYlzZhxtNC6FUdx08VGBlSHcwLIMyJhu0LafPp MesbFsQRqgt8cDIxDp2dnl4foQ== X-Received: by 2002:a17:902:12f:: with SMTP id 44-v6mr28880855plb.403.1517449467993; Wed, 31 Jan 2018 17:44:27 -0800 (PST) Received: from localhost.localdomain ([2601:646:8880:466c::a8d6]) by smtp.gmail.com with ESMTPSA id b63sm48160246pfl.78.2018.01.31.17.44.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jan 2018 17:44:27 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 31 Jan 2018 17:44:13 -0800 Message-Id: <20180201014414.12948-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.16.1 Subject: [oe] [meta-networking][PATCH 1/2] net-snmp: Fix compiler options with paths in net-snmp-config X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org options which involve paths into workspace are usually filtered out with the sed command, however currently it does half the job and the resulting config file gets partial replacements leaving the compiler options with bad syntax e.g. -fdebug-prefix-map option is left with -fdebug-prefix-map= which is not correct syntax, the effect of this is seen in other recipes which then invoke net-snmp-config script and add the flags obtained from this script into its own configure scripts and then tries to execute tests, these tests fail because of bad compiler options e.g. keepalived where configure tests fails like | configure: error: *** incorrect CFLAGS from net-snmp-config this is because of wrong compiler options that it got from recipe-sysroot/usr/bin/crossscripts/net-snmp-config This patch tries to be specific about which options should be skimmed and removes the options completely Signed-off-by: Khem Raj --- meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.16.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb index 29cd6b3bf..584593b17 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb @@ -118,10 +118,10 @@ do_install_append() { sed -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g" \ -i ${D}${bindir}/net-snmp-create-v3-user sed -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g" \ - -e "s@${STAGING_DIR_NATIVE}[=]*@@g" \ - -e "s@${STAGING_DIR_HOST}[=]*@@g" \ - -e "s@${WORKDIR}[=]*@@g" \ - -e "s@${D}@@g" \ + -e "s@\([^ ]*-fdebug-prefix-map=[^ ]*\)\1*@@g" \ + -e "s@\([^ ]*--sysroot=[^ ]*\)\1*@@g" \ + -e "s@\([^ ]*--with-libtool-sysroot=[^ ]*\)\1*@@g" \ + -e "s@\([^ ]*--with-install-prefix=[^ ]*\)\1*@@g" \ -i ${D}${bindir}/net-snmp-config if [ "${HAS_PERL}" = "1" ]; then