From patchwork Tue Oct 15 08:20:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Bernhard M. Wiedemann" X-Patchwork-Id: 21628 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 1B619C326C for ; Tue, 15 Oct 2024 08:22:50 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7443165381; Tue, 15 Oct 2024 10:22:48 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=lsmod.de header.i=@lsmod.de header.b="cQ5Q4Fp/"; dkim-atps=neutral Received: from mail.bmwiedemann.de (mail.bmwiedemann.de [IPv6:2a01:4f8:221:b52:fcfd:ff:fe00:ec04]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 619146353B for ; Tue, 15 Oct 2024 10:22:46 +0200 (CEST) Received: from mail.bmwiedemann.de (localhost [127.0.0.1]) by mail.bmwiedemann.de (Postfix) with ESMTP id 454B9E94; Tue, 15 Oct 2024 08:22:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lsmod.de; s=202205; t=1728980565; bh=kNBg3ILipLWg8kFEG2lyst0d9VvYfGiC3z8yuqZCwg8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cQ5Q4Fp/yh31AgOzgRTTUl7m5/DJeWy2sSr2JXo3SraaaweREw5kl/giNupNtGISN 7UV12TIdL1i2v+4gkNWcRkPM8A7Rw4zjEXJJita5moKDdR/Dz/DEvxS5gw030AMi9S eQmwCJnd3KywR2nLX2rdzwBAbrwWcgF0rbliGAsoMsryA3peQiHo3u3Hv1wpZN9eMD zhVEnBxGuweicrcrtFNE2ovBdkLqZAesiyofjBsXgIOwpvihfQUE2MtI41PLZnPfQe PCIh8lV5SGtJJtjshDl4WgRH3rmbYwTk3dbW/9qTdg524/54y7qkyS4hX9M3H8F2xU ckaPPkV89HIAA== X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on vm4c.zq1.de X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.5 Received: from adrian.zq1.de (unknown [10.8.5.20]) by mail.bmwiedemann.de (Postfix) with ESMTP; Tue, 15 Oct 2024 08:22:45 +0000 (UTC) Received: by adrian.zq1.de (Postfix, from userid 1000) id 00657E049E; Tue, 15 Oct 2024 10:22:44 +0200 (CEST) From: libcamerabmw+ml@lsmod.de To: libcamera-devel@lists.libcamera.org Cc: Kieran Bingham , Laurent Pinchart , "Bernhard M. Wiedemann" Subject: [PATCHv2] Fix copyright year Date: Tue, 15 Oct 2024 10:20:25 +0200 Message-ID: <20241015082207.640731-2-libcamerabmw+ml@lsmod.de> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20241014181640.GA5522@pendragon.ideasonboard.com> References: <20241014181640.GA5522@pendragon.ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" From: "Bernhard M. Wiedemann" without this patch, openSUSE's debugsource package would vary over time, breaking reproducible builds. Also a copyright of 2025 is factually wrong, because nobody did anything copyright-worthy in that year. If updating the year manually is too hard (it is optional anyway), using the mtime of input file(s) could work as well. By moving the year to tracepoints.h.in it can easily be updated along with the content. The diff was: /usr/src/debug/libcamera-0.3.1/x86_64-suse-linux/include/libcamera/internal/tracepoints.h 2024-08-20 09:37:46.000000000 +0200 @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ /* - * Copyright (C) 2024, Google Inc. + * Copyright (C) 2025, Google Inc. Signed-off-by: Bernhard M. Wiedemann --- include/libcamera/internal/tracepoints.h.in | 2 +- utils/codegen/gen-tp-header.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/libcamera/internal/tracepoints.h.in b/include/libcamera/internal/tracepoints.h.in index f0962091..ff5c581b 100644 --- a/include/libcamera/internal/tracepoints.h.in +++ b/include/libcamera/internal/tracepoints.h.in @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ /* - * Copyright (C) {{year}}, Google Inc. + * Copyright (C) 2024, Google Inc. * * Tracepoints with lttng * diff --git a/utils/codegen/gen-tp-header.py b/utils/codegen/gen-tp-header.py index 83606c32..6769c7ce 100755 --- a/utils/codegen/gen-tp-header.py +++ b/utils/codegen/gen-tp-header.py @@ -6,7 +6,6 @@ # # Generate header file to contain lttng tracepoints -import datetime import jinja2 import pathlib import os @@ -20,7 +19,6 @@ def main(argv): output = argv[2] template = argv[3] - year = datetime.datetime.now().year path = pathlib.Path(output).absolute().relative_to(argv[1]) source = '' @@ -28,7 +26,7 @@ def main(argv): source += open(fname, 'r', encoding='utf-8').read() + '\n\n' template = jinja2.Template(open(template, 'r', encoding='utf-8').read()) - string = template.render(year=year, path=path, source=source) + string = template.render(path=path, source=source) f = open(output, 'w', encoding='utf-8').write(string)