From patchwork Fri Dec 30 03:25:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christian Stewart X-Patchwork-Id: 1720293 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NjrHk0hHMz23db for ; Fri, 30 Dec 2022 14:25:37 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 651CD60AE1; Fri, 30 Dec 2022 03:25:31 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 651CD60AE1 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eWhNNefJB7Gr; Fri, 30 Dec 2022 03:25:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 9EC9460808; Fri, 30 Dec 2022 03:25:29 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 9EC9460808 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id C39BB1BF59C for ; Fri, 30 Dec 2022 03:25:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 977B340872 for ; Fri, 30 Dec 2022 03:25:27 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 977B340872 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5LUjOjxmk7xV for ; Fri, 30 Dec 2022 03:25:23 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org D44D64081F Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by smtp4.osuosl.org (Postfix) with ESMTPS id D44D64081F for ; Fri, 30 Dec 2022 03:25:23 +0000 (UTC) Received: by mail-pl1-f174.google.com with SMTP id 17so20754906pll.0 for ; Thu, 29 Dec 2022 19:25:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mwOH4VSJaV7erUtOYhoeWitB1QPH6nQFhQpYuyN6VtY=; b=77tLSKjgQLTEAI8W5x6bLXv2CQ9e/xy9hhTEgq5CsE37y3J/h4iiEbMmLTkeDn63BW TvbIt8s+AqL9vtX+ar2s5YLmbfLXOjB90YRu3B3rZa8qBCzYVfx7IlzvMdbvafZuuuLZ nsCzvNv9YZYI8mjWhTc9fl8cZ6brzR2pDBzHeQ5j3lwru0adLCHf9FIsXGNtlYUGs4N5 ODEu+Rej6bF5RHasBmVknb0Wnz/6YfNdbqsWTMa795pHYcl2noJCRn+0lkLfsK2RZRMi 5ZWYB4/Hj4WMER7JJyHje8n2jyuVHLD8r3Cn6Jxq9Dzm5WBk5tDbqFLrfKb9bmdlHPWS ByLQ== X-Gm-Message-State: AFqh2kpr5L33xg1Wel2jxmfnZsxyGqA0sNZWQF3Ucf0VhRKwc3Baz3r9 5mOKzguVIxl6R2Q8Y+LvllwFBxkOTIE= X-Google-Smtp-Source: AMrXdXvrNTjM/yTA9OMGQHhaFVDKpOK/lL+BdfzIIdag67EUYNw1pEZl6RWXtbm1gV9q4m3w1YGI+w== X-Received: by 2002:a17:902:e9c2:b0:192:ad61:d179 with SMTP id 2-20020a170902e9c200b00192ad61d179mr768802plk.11.1672370722956; Thu, 29 Dec 2022 19:25:22 -0800 (PST) Received: from localhost.localdomain (ip184-189-231-225.sb.sd.cox.net. [184.189.231.225]) by smtp.gmail.com with ESMTPSA id p4-20020a170902e74400b00176dc67df44sm13683780plf.132.2022.12.29.19.25.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 19:25:22 -0800 (PST) To: buildroot@buildroot.org Date: Thu, 29 Dec 2022 19:25:20 -0800 Message-Id: <20221230032520.1066282-1-christian@paral.in> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/rng-tools: fix build failure: undefined jent_notime_ctx X-BeenThere: buildroot@buildroot.org 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: , X-Patchwork-Original-From: Christian Stewart via buildroot From: Christian Stewart Reply-To: Christian Stewart Cc: Christian Stewart , "Yann E . MORIN" , Thomas Petazzoni , Matt Weber Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Since commit a8807d updated jitterentropy-library to version 3.4.1: The update requires setting the macro JENT_CONF_ENABLE_INTERNAL_TIMER, otherwise the build can fail with the following type of error: jitterentropy-library requires setting the macro JENT_CONF_ENABLE_INTERNAL_TIMER to define jent_notime_ctx. If not set, the build fails with the following error: rngd_jitter.c: In function ‘rngd_notime_stop’: rngd_jitter.c:97:32: error: invalid use of undefined type ‘struct jent_notime_ctx’ 97 | pthread_join(thread_ctx->notime_thread_id, NULL); Reference: https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg160531.html Signed-off-by: Christian Stewart --- ...able-JENT_CONF_ENABLE_INTERNAL_TIMER.patch | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/rng-tools/0004-jitterentropy-enable-JENT_CONF_ENABLE_INTERNAL_TIMER.patch diff --git a/package/rng-tools/0004-jitterentropy-enable-JENT_CONF_ENABLE_INTERNAL_TIMER.patch b/package/rng-tools/0004-jitterentropy-enable-JENT_CONF_ENABLE_INTERNAL_TIMER.patch new file mode 100644 index 0000000000..08f93b03fa --- /dev/null +++ b/package/rng-tools/0004-jitterentropy-enable-JENT_CONF_ENABLE_INTERNAL_TIMER.patch @@ -0,0 +1,39 @@ +From 49f270baf7fff2855e39b2084121d765d2a9990c Mon Sep 17 00:00:00 2001 +From: Christian Stewart +Date: Thu, 29 Dec 2022 19:21:04 -0800 +Subject: [PATCH] jitterentropy: enable JENT_CONF_ENABLE_INTERNAL_TIMER + definition +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +jitterentropy-library requires setting the macro JENT_CONF_ENABLE_INTERNAL_TIMER +to define jent_notime_ctx. If not set, the build fails with the following error: + +rngd_jitter.c: In function ‘rngd_notime_stop’: +rngd_jitter.c:97:32: error: invalid use of undefined type ‘struct jent_notime_ctx’ + 97 | pthread_join(thread_ctx->notime_thread_id, NULL); + +Define JENT_CONF_ENABLE_INTERNAL_TIMER if jitterentropy is enabled. + +Signed-off-by: Christian Stewart +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 6ec3c3a..25136f2 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -87,7 +87,7 @@ AC_ARG_ENABLE(jitterentropy, + [Disable jitterentropy source, or specify its location]), + [if [ test -d $enable_jitterentropy ]; then + export LDFLAGS+=-L$enable_jitterentropy; +- export CFLAGS+=" -I$enable_jitterentropy"; ++ export CFLAGS+=" -I$enable_jitterentropy -DJENT_CONF_ENABLE_INTERNAL_TIMER"; + fi],[]) + + AS_IF( +-- +2.39.0 +