From patchwork Wed Aug 19 22:00:08 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AdrianF X-Patchwork-Id: 95843 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF455C5DF8D for ; Wed, 19 Aug 2026 22:01:53 +0000 (UTC) Received: from mta-64-226.siemens.flowmailer.net (mta-64-226.siemens.flowmailer.net [185.136.64.226]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1129.1787176907031573518 for ; Wed, 19 Aug 2026 15:01:48 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=adrian.freihofer@siemens.com header.s=fm2 header.b=cjUL+D5F; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.226, mailfrom: fm-1329275-20260819220143955fd15c4400020702-przrnz@rts-flowmailer.siemens.com) Received: by mta-64-226.siemens.flowmailer.net with ESMTPSA id 20260819220143955fd15c4400020702 for ; Thu, 20 Aug 2026 00:01:43 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm2; d=siemens.com; i=adrian.freihofer@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=5VQ2D8P3tTzFlOGYHLE+KG4twPBVxqhSmR48g+AKgM4=; b=cjUL+D5FU3QukpKbhEzPlG6cFr2Rkj/TdeTmQIeNAyDMcSzWMCeJFfVzqkQYJCDvuEV1kN /ugoeAR/DU2HlEpRi7HMBhgi4aVwXG/EVks1GUQnpUoEUzDu8Rjr1XlO0SET/zz9LX3SwdkG /TJJ7IAppVuiPF1OrZBbb4QJam7mS94HwSNuuoS3GZyB92JAJLHUggVEUFpHZFXl+5jwqxSW r6/sMG32LdyL8t6xjVtJMlnT5xQfQ/rwWMwNzRqTZyFTX6C6r2M4jiwa7wKUKAlCRAPfXyjk 5lwCqezCyMlEEZdLcVx+EEgHww4e/ZtGJbh5rebRp+mIMAErEY7QCjxw==; From: AdrianF To: openembedded-core@lists.openembedded.org Cc: Adrian Freihofer Subject: [PATCH v3 01/14] devtool: deploy-target: pass tar -m to avoid future timestamp warnings Date: Thu, 20 Aug 2026 00:00:08 +0200 Message-ID: <20260819220138.4095398-2-adrian.freihofer@siemens.com> In-Reply-To: <20260819220138.4095398-1-adrian.freihofer@siemens.com> References: <20260819220138.4095398-1-adrian.freihofer@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1329275:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 19 Aug 2026 22:01:53 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/243786 From: Adrian Freihofer devtool deploy-target tars up the build output and pipes it through ssh to the target, where it's extracted with "tar xv". If the target's clock is behind the host, tar prints a "time stamp ... is ... in the future" warning per file, since the archived mtimes come from the host. Add -m (--touch) so tar sets mtimes to the current time on extraction instead of restoring them from the archive, avoiding the warning. Supported identically by GNU tar and BusyBox tar. Signed-off-by: Adrian Freihofer --- scripts/lib/devtool/deploy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/lib/devtool/deploy.py b/scripts/lib/devtool/deploy.py index 8228d9914f..35ec0b1b4d 100644 --- a/scripts/lib/devtool/deploy.py +++ b/scripts/lib/devtool/deploy.py @@ -108,9 +108,10 @@ def _prepare_remote_script(deploy, destdir='/', verbose=False, dryrun=False, und lines.append('mkdir -p `dirname $manifest`') lines.append('mkdir -p $2') if verbose: - lines.append(' tar xv -C $2 -f - | tee $manifest') + # -m avoids "time stamp is in the future" warnings if the target's clock is behind + lines.append(' tar xvm -C $2 -f - | tee $manifest') else: - lines.append(' tar xv -C $2 -f - > $manifest') + lines.append(' tar xvm -C $2 -f - > $manifest') lines.append('sed -i "s!^./!$2!" $manifest') elif not dryrun: # Put any preserved files back