From patchwork Sat Sep 26 17:09:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dagg Stompler X-Patchwork-Id: 1371799 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=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=MbAHdaGE; 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 4BzFdG535Bz9sR4 for ; Sun, 27 Sep 2020 03:09:35 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 839728689A; Sat, 26 Sep 2020 17:09:33 +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 UOOG7jPX2Tsl; Sat, 26 Sep 2020 17:09:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 9E03C86891; Sat, 26 Sep 2020 17:09:31 +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 650131BF363 for ; Sat, 26 Sep 2020 17:09:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5105F203C2 for ; Sat, 26 Sep 2020 17:09:29 +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 weI4DHd-nRto for ; Sat, 26 Sep 2020 17:09:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by silver.osuosl.org (Postfix) with ESMTPS id A2264203B2 for ; Sat, 26 Sep 2020 17:09:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601140163; bh=ZCXaEqkNPCUJnR4J5TbepTJIGQZbz+6ONb5B/2jjGPQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=MbAHdaGEk42ngvdLheirwdQXfuAEvMjlKMxgElcbvq/6wXZvVJhzqmruQya+kTYZq axm0U+bWN+5HLjDlfEdc/yofO3xqqhqvq2OJR6A2qeZIbJVPcXMzl/9Lk/iWWhuQvm Ievi6ggs97mcnfdd21gOYPdilYgdasvwq7cwrtmU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([176.231.3.142]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1Mk0JM-1kkWuA2mSm-00kQQi; Sat, 26 Sep 2020 19:09:22 +0200 From: Dagg Stompler To: buildroot@buildroot.org Date: Sat, 26 Sep 2020 20:09:20 +0300 Message-Id: <20200926170920.716-1-daggs@gmx.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:sHSnCLN+n1xJqZojo6JF5xwvU14lNKDabT/mIHVo/WzLK6aYTzD iTkZI0paNYuylJ1HbChYLFLsonxp1604uZFuLP5CmhH4cyQ2jOZ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1by6znngXSkLo/s/QKLaUbWvEYT6KgsRkHxsUwOKFeWe1BL9Rd3c2 cknIF+Wxv/F5Qgo4+7H9t7jLtI1zamlaPLocBL2KQlpUOxcdlC8HsvuhJ6cKG1/n6qyY507hx u4MrfbTo5tqvgFgjFVET3PsrO6dJHv+xJJdUwB21R82o6RB9KOSMp59OEjU2rGbbh2SW1gXSo r4DrN0uiX5G4mRPUzqlcoE0OTN6duw4RK5t0dL1q48WfM2s0lgn94br62f9nPm2JiHsBTIe0A EypeIoN8ogaP/dDd+jwt8cz63zvpszG+aFndz/iIYc8+QBhsgADtK8d4KfxTHpTAyFz5o7QCT xt3vSZKtUGK8EZHqt Subject: [Buildroot] [PATCH v2] package/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: , Cc: "Yann E . MORIN" 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 Fixes: http://autobuild.buildroot.net/results/95f30c5e6af2274418bb44a20da7caac69f1dd68/ references: 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 --- Changes v1 -> v2: 1. fix coomit header (Thomas Petazzoni) 2. add reference to autobuilder failure (Thomas Petazzoni) 3. rework patch (Thomas Petazzoni) 4. added maintainer to CC package/dvb-apps/0006-fix-glibc-2.31.patch | 21 +++++++++++++++++++++ 1 file changed, 21 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..079a24f149 --- /dev/null +++ b/package/dvb-apps/0006-fix-glibc-2.31.patch @@ -0,0 +1,21 @@ +dvbdate: fix compilation error with glibc 2.31 + +as stime func doesn't exists anymore in newer versions of glibc >= 2.31 due +to obseletion, a replacment with clock_settime is inorder to fix the issue. + +Signed-off-by: Dagg Stompler + +--- 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; + }