From patchwork Mon Dec 23 22:58:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182418 Delivered-To: patch@linaro.org Received: by 2002:a92:a146:0:0:0:0:0 with SMTP id v67csp983553ili; Mon, 23 Dec 2019 14:59:19 -0800 (PST) X-Google-Smtp-Source: APXvYqwo0GFGWe0/Xj77vHUzA/ti9Iq5UF3S0tdfTYSdQNFlJVeWXr6dHtAMcFfv6lLNQKaaeA1o X-Received: by 2002:a17:90a:da01:: with SMTP id e1mr1869083pjv.29.1577141959283; Mon, 23 Dec 2019 14:59:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577141959; cv=none; d=google.com; s=arc-20160816; b=Nr075QNf8pMYW7/JEqYwXMK1IXwcoXMTkvTDEKNr+ESBEK6Hqqhv4S2YCovabQ1TfV gGwiZjoeJgikPes2L+wPaLyiPAAVdX0VvAgexN2BHSvmwIVp/9hqApoU0Fu/A5AMP5hK KoqpU6VtDyLdxFugJyeDt3WBUsQX58I3tif6ksVg/zmONZ9/FV+IE0UYW4Wr7oHnABeB rsE2n3KRbUOnRmpLcRDK6lglVl2/pBF1CejGwXk0vWrp4UnvC2y1jiU4Ge5divZOMfGi lWmSN/2om5kbdS8F9LcvMc1n1yQ0A/0KNjvXtsU+Qm7obJFxBq2yqVx8QPtwcwAKR+0s 1dfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=Qe5xNyOWKn07DaNA+WUXLrClaEF77RNOsPWBG0JcTj4=; b=R9Hy2/Ve/tUHzO7tnrsXjSllunpa7/KFgo3XB4RIrtM8F8hfe+NaB3PiumAXmzK+vZ bV1YQKwf/oaxWjOU7PJHjV8LhM12Ncnilh+wA9goeLJcM5j7TJFT2E3GFbYRobS5iKcD mJXIOKTqgRsdZACXFCBYj5RAu1TbWw0/+ZaIcQwuuzlLBzJu5gn1wzKYKq3+cDuiIwgs d1zdB6ICUPnyCs0Rhm8ZeX4/83PWBXwwpilZrJzAlqIKyw6+/64+4Uz7PIN9RGVMb5SL 6ksZwQNj9yp3qVAekt28FBOs6Sx5q0Nm2C0Wa56bO6t9bBCTJiF6z7+3VVla6sCDj064 Ctxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=GwQ8y5LT; 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=QUARANTINE 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 f1si19142948pln.104.2019.12.23.14.59.19; Mon, 23 Dec 2019 14:59:19 -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=GwQ8y5LT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 4299B7FC3E; Mon, 23 Dec 2019 22:59:16 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by mail.openembedded.org (Postfix) with ESMTP id ABCE86C108 for ; Mon, 23 Dec 2019 22:58:56 +0000 (UTC) Received: by mail-pl1-f196.google.com with SMTP id c13so7737643pls.0 for ; Mon, 23 Dec 2019 14:58:58 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=2+IfnCWtFu1LYWjDSrfY6V9dGwCnRlEswPr4Fzxd/f8=; b=GwQ8y5LTjyESiA5+jPbMsuxpUUQCijC3FZS4ohGdYrN2LkTdSXMtckDezlgOvRw2lN F7wFE2pQ/+/+5TrUWHK1BB0OA1B+W0aXn/WAAyD4BEzu4KSsmXAh9KOkm/FhCFDpeZ00 tHdagjvaBMxkiCMvsspx54Vq+NYlsvqk28VcGqbCtqrW0SMy+Fqd3XiZjox/L45Uz+kT ccNcwcWVybXYHSMaL6WHE4rj7s4UJ/d7aM1Eh1/5/r+oCnrjSo59XZ0QQsRjXrTKti6y yKgf4nGqmdaAWYrwQKwc+htJUQQjVKRaZI2g4y7cYPq2SVtNZgjU6b7fZ/ZRxeGdb0vF aYdQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=2+IfnCWtFu1LYWjDSrfY6V9dGwCnRlEswPr4Fzxd/f8=; b=sIYdj7/vFNGo8fzy3i0MtvrvTRX8sy9Ti/JjJS9e6enRGmBCvmhJEYiQxO1Ipg9Ih1 gUyQx1oHTlUKtmfzwA6aTmWp5sIsgKTx7jlx6+IEShG1Yc2yET6vqxMQuENbf/2cskOW P5xtZSNKA7v+yg40bRl3NHPAJy0B79va+GUlx3rRrDkM6cWvSmdRnJTGXe6da9R2Seoe ATCsQ/peT3v0bbRZgck5T9ykLIoBEw64OMQJSa8WIupJkEDdlC9nn3l9wqCUir8wlFh3 8nljMfSssNUEAn1g3gm+tBa/oJCKmNFe/Xg0HF9eCO+EwtcYrYfVp32ALsIxlHWnyAps 8VEw== X-Gm-Message-State: APjAAAXlwkZ//aXWI9CTp+MeQ2rhfHkaJTektq2pDtl6VtBq73iWkO24 Azk2yZX0H/EwL9u0jbHV1oUQuiiVHW0= X-Received: by 2002:a17:90a:4d02:: with SMTP id c2mr1864707pjg.94.1577141937338; Mon, 23 Dec 2019 14:58:57 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::36e9]) by smtp.gmail.com with ESMTPSA id c2sm526448pjq.27.2019.12.23.14.58.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Dec 2019 14:58:56 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Mon, 23 Dec 2019 14:58:44 -0800 Message-Id: <20191223225846.2277629-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191223225846.2277629-1-raj.khem@gmail.com> References: <20191223225846.2277629-1-raj.khem@gmail.com> MIME-Version: 1.0 Cc: =?utf-8?q?Andreas_M=C3=BCller?= Subject: [oe] [meta-multimedia][PATCH 2/4] dvb-apps: Replace stime with clock_settime 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: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Newer glibc 2.31+ removed stime. Signed-off-by: Khem Raj Cc: Andreas Müller --- .../dvb-apps/dvb-apps_1.1.1.bb | 1 + ...ate-Remove-Obsoleted-stime-API-calls.patch | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 meta-multimedia/recipes-multimedia/dvb-apps/files/0001-dvbdate-Remove-Obsoleted-stime-API-calls.patch diff --git a/meta-multimedia/recipes-multimedia/dvb-apps/dvb-apps_1.1.1.bb b/meta-multimedia/recipes-multimedia/dvb-apps/dvb-apps_1.1.1.bb index 3f491181de..f354ef3872 100644 --- a/meta-multimedia/recipes-multimedia/dvb-apps/dvb-apps_1.1.1.bb +++ b/meta-multimedia/recipes-multimedia/dvb-apps/dvb-apps_1.1.1.bb @@ -11,6 +11,7 @@ SRC_URI = "hg://linuxtv.org/hg;module=dvb-apps;protocol=http \ file://0004-Makefile-remove-test.patch \ file://0005-libucsi-optimization-removal.patch \ file://0006-CA_SET_PID.patch \ + file://0001-dvbdate-Remove-Obsoleted-stime-API-calls.patch \ " S = "${WORKDIR}/${BPN}" diff --git a/meta-multimedia/recipes-multimedia/dvb-apps/files/0001-dvbdate-Remove-Obsoleted-stime-API-calls.patch b/meta-multimedia/recipes-multimedia/dvb-apps/files/0001-dvbdate-Remove-Obsoleted-stime-API-calls.patch new file mode 100644 index 0000000000..9035b56f4a --- /dev/null +++ b/meta-multimedia/recipes-multimedia/dvb-apps/files/0001-dvbdate-Remove-Obsoleted-stime-API-calls.patch @@ -0,0 +1,32 @@ +From d6817dbaf407f65dd4af12c51736153fae8b217f Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 21 Dec 2019 08:36:11 -0800 +Subject: [PATCH] dvbdate: Remove Obsoleted stime API calls + +stime() has been deprecated in glibc 2.31+ its recommended to +replaced with clock_settime() + +Signed-off-by: Khem Raj +--- + util/dvbdate/dvbdate.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/util/dvbdate/dvbdate.c b/util/dvbdate/dvbdate.c +index f0df437..492ed79 100644 +--- a/util/dvbdate/dvbdate.c ++++ b/util/dvbdate/dvbdate.c +@@ -309,7 +309,10 @@ int atsc_scan_date(time_t *rx_time, unsigned int to) + */ + int set_time(time_t * new_time) + { +- if (stime(new_time)) { ++ struct timespec ts; ++ ts.tv_sec = &new_time; ++ ts.tv_nsec = 0; ++ if (clock_settime(CLOCK_REALTIME, &ts)) { + perror("Unable to set time"); + return -1; + } +-- +2.24.1 +