From patchwork Sat Sep 26 09:55:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dagg Stompler X-Patchwork-Id: 1371725 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.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=fvRQcvcV; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bz4142PKPz9sRf for ; Sat, 26 Sep 2020 19:56:06 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D77A48753B; Sat, 26 Sep 2020 09:56:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id STvgIwhF0OrO; Sat, 26 Sep 2020 09:55:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id BDAD182B51; Sat, 26 Sep 2020 09:55:58 +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 CBDCD1BF36B for ; Sat, 26 Sep 2020 09:55:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BE84820497 for ; Sat, 26 Sep 2020 09:55: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 VXwvXd3Xyv7w for ; Sat, 26 Sep 2020 09:55:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by silver.osuosl.org (Postfix) with ESMTPS id ADD1620453 for ; Sat, 26 Sep 2020 09:55:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601114152; bh=cmVmx5XfPHpCwxePoxlb35CHryooUpA0/8z++xppeac=; h=X-UI-Sender-Class:From:To:Subject:Date; b=fvRQcvcV9YVPmjJAy+QlwSJ7nAph35sBTvSWlwyE4fCFB2JH3wazTrcmoA153P3xz fDN252BFPK3pZa32ZhErt65713afuxok6tP9MZRLQAzkuOVsBY14yF6Yy6HeNYAIKG 54jUTsH6qAWBTqohQGXSzAsIaF5WQkD4WUUz/bpU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([176.231.3.142]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1N6KYl-1kX4Kn1r4r-016d4b for ; Sat, 26 Sep 2020 11:55:52 +0200 From: Dagg Stompler To: buildroot@buildroot.org Date: Sat, 26 Sep 2020 12:55:50 +0300 Message-Id: <20200926095550.27437-1-daggs@gmx.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:eNvDjgjqJYXzAb9krouO+6i0V5YhAUSW4plznUP8/cUfbtbleVL ZC/mOUFQuK48P31oYMVtGf0BQX6iQ1MHmnLsNdTXjlvzJrH9RRFIvotEi5mE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MdXSSv/QpGaqcHsrh30/uTcWPks04S4vnkUr03RqqCqjvfA crOYSKsXaV/r5k/iTC4e/hLtH0u49A/OdAVC0F3T2fvr5NNB0jG7SzwWlSdxhUOySxstMqMcY OPNW6BFkNFq+4QzGJgxvWZmIX6A21ZKcgVqUWrkRI1qwSRvP1Pds0uN30Yt57hSlCK7y6A0rM atEY5TudgLz6senLqdx+mPaP6tGxBLcxH3YdAZ67CKPGRbxgxIXdFS9WlD3+hRGM4x2GFby65 Z7o5QnvnLsHg+qplJuiiXz1cHp9SsZ7A1D8symD6Ajdx9n3MgsxS837sSHlEBICbQcwSXeYQZ 23ZmKnNXiNzzdck7+ Subject: [Buildroot] [PATCH] dvb-apps: fix build failure with glibc 2.31 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" dvb-apps fails to build with glibc 2.31 with the following error: | dvbdate.c: In function set_time: | dvbdate.c:312:6: warning: implicit declaration of function stime; did you mean ctime? [-Wimplicit-function-declaration] | 312 | if (stime(new_time)) { | | ^~~~~ | | ctime this patch takes from the first entry in the reference fixes it. reference: 1. https://gitweb.gentoo.org/repo/gentoo.git/commit/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-glibc-2.31.patch?id=eb705f892eae45b93306c1de1407c1c22ac23956 2. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964223 Signed-off-by: Dagg Stompler --- package/dvb-apps/0006-fix-glibc-2.31.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 package/dvb-apps/0006-fix-glibc-2.31.patch -- 2.28.0 diff --git a/package/dvb-apps/0006-fix-glibc-2.31.patch b/package/dvb-apps/0006-fix-glibc-2.31.patch new file mode 100644 index 0000000000..d404212b5e --- /dev/null +++ b/package/dvb-apps/0006-fix-glibc-2.31.patch @@ -0,0 +1,14 @@ +--- a/util/dvbdate/dvbdate.c ++++ b/util/dvbdate/dvbdate.c +@@ -309,7 +309,10 @@ + */ + int set_time(time_t * new_time) + { +- if (stime(new_time)) { ++ struct timespec s = {0}; ++ s.tv_sec = new_time; ++ ++ if (clock_settime(CLOCK_REALTIME, &s)) { + perror("Unable to set time"); + return -1; + }