From patchwork Tue Dec 17 12:50:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1211385 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.138; helo=whitealder.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.b="njaQ/YOU"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47cdLB3mwpz9sRl for ; Tue, 17 Dec 2019 23:51:13 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 240FB8646F; Tue, 17 Dec 2019 12:51:11 +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 2iUdF7M+ecH0; Tue, 17 Dec 2019 12:51:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 8F56D863F1; Tue, 17 Dec 2019 12:51:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 06BCB1BF2F1 for ; Tue, 17 Dec 2019 12:51:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 038C9855D7 for ; Tue, 17 Dec 2019 12:51:07 +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 ey0X8-iCSfHY for ; Tue, 17 Dec 2019 12:51:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 2B1D985A57 for ; Tue, 17 Dec 2019 12:51:05 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id x185so7501754pfc.5 for ; Tue, 17 Dec 2019 04:51:05 -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=f2KUG5Ea0hNplfu3iOd42+OaIbd85yvODdT0KzA7gTs=; b=njaQ/YOUM0O+ADYP8sUHyK6aGZReP9yNFDNqhJzBgMIe87GsTN8RNVWy6Qhwlnj/Zb Mn8KtiRcD3N5514e7z2Sq9AHsvSwNLkPtdj1pq7xckFG7yuh93kJ0e8qCzzEpuyQ4coh 3E69astDU/j7qD4ixpdJG//9gMUrMTzSicMgjGFciLzLfyi+NF2Q58XvTeVKxVidvbA2 wGV54JBMtZUgaDex148TKMhSVKNgkTNr7V3Iqid79GgWzMar9YKBDpKiiwakSr1JfbK8 l8aSVjiKa5iPmb5ex12vUrDXcNnLhIb9XQY0Y9ZBcDnVHdwffAdElUjABGMFt1yX9Wav W3Tw== 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=f2KUG5Ea0hNplfu3iOd42+OaIbd85yvODdT0KzA7gTs=; b=Izqq6hmLZZ5RT0VfNjV04F204OEAGD/Gf75NYaw65qMssqgDh04+I9ZGhlLXAk9DzF 0aaQ4arQCwDi37usFj7V5txbCT77q3oJ2CO1RMZkKriCrHdEiDjtrs+PRf62oOPEQuq5 8dgc3VEpxv59/hSSbucmiwFPbxRyfEpsLWXqbxeM1XCWN8mSPt9nz/V8JkqCDEZECJiv uMBiihk36tgXjDonkqAHMZoO5AqrBXsT6mc/bXsku3KZvQf/lk8HNNQ/Q0nOmRgKeRk+ 6I30TQYYFhQyqDoqJcQDfgRB8aoH6gBtj852a3xvmlx4QCOBw71qYL++byF3t2JcCoU0 VN5A== X-Gm-Message-State: APjAAAV7R8B/y6lASIjikItEpaZSGur0P/zLNxsDleXVenC5v6hi/phD TvPgR5MYH5e0zlWoHMCtolSKvYBW X-Google-Smtp-Source: APXvYqwpmroTPHgEBjuDTqrve+FuQJFnkQVzzJUy7+8G2wmRfFTVPT44WkqqoWUTcuXnDPRBu5/85Q== X-Received: by 2002:a63:1447:: with SMTP id 7mr24697248pgu.22.1576587064116; Tue, 17 Dec 2019 04:51:04 -0800 (PST) Received: from casantos.remote.csb ([201.86.229.176]) by smtp.gmail.com with ESMTPSA id y199sm27412961pfb.137.2019.12.17.04.51.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2019 04:51:03 -0800 (PST) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Tue, 17 Dec 2019 09:50:54 -0300 Message-Id: <20191217125054.9956-1-unixmania@gmail.com> X-Mailer: git-send-email 2.18.1 Subject: [Buildroot] [PATCH] package/tpm2-tss: fix build without C++ 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: Carlos Santos MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Carlos Santos C++ is required because of a test that we don't build, so simply drop the requirement while we work on a definitive solution upstream. Fixes: http://autobuild.buildroot.net/results/13f5e37b47b255da4158bec34e5459136f7e60d4 http://autobuild.buildroot.net/results/1c26db2509c79e00c0de1165945277eaa57b149f http://autobuild.buildroot.net/results/b7b6b7b7aca79e847b442cbd2305427d91fe5d70 http://autobuild.buildroot.net/results/1cd5a82a0e799aa5027e2e2c03b246332cc3a15d http://autobuild.buildroot.net/results/d7ec878907f714377c83e9a496e97cbf9382d787 http://autobuild.buildroot.net/results/1c7f0c1b3ce4871cd87bd6059b1f0a6dc4e74a9c http://autobuild.buildroot.net/results/196b81d580325607c8da90beeb79e1f6b8ab8b47 http://autobuild.buildroot.net/results/f90f7b4ac710b56686635f8ae27059c11b963e47 Signed-off-by: Carlos Santos --- package/tpm2-tss/tpm2-tss.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/tpm2-tss/tpm2-tss.mk b/package/tpm2-tss/tpm2-tss.mk index 425a6703af..80bd18995b 100644 --- a/package/tpm2-tss/tpm2-tss.mk +++ b/package/tpm2-tss/tpm2-tss.mk @@ -11,6 +11,12 @@ TPM2_TSS_LICENSE_FILES = LICENSE TPM2_TSS_INSTALL_STAGING = YES TPM2_TSS_DEPENDENCIES = liburiparser openssl host-pkgconf TPM2_TSS_CONF_OPTS = --with-crypto=ossl --disable-doxygen-doc --disable-defaultflags +TPM2_TSS_AUTORECONF = YES + +define TPM2_TSS_NO_CXX + $(SED) /^AC_PROG_CXX$$/d $(@D)/configure.ac +endef +TPM2_TSS_POST_PATCH_HOOKS += TPM2_TSS_NO_CXX # uses C99 code but forgets to pass -std=c99 when --disable-defaultflags is used TPM2_TSS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99"