[PATCH] Fix copyright year
libcamerabmw+ml at lsmod.de
libcamerabmw+ml at lsmod.de
Thu Oct 10 09:54:13 CEST 2024
From: "Bernhard M. Wiedemann" <bwiedemann at suse.de>
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.
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 <bwiedemann at suse.de>
---
utils/codegen/gen-tp-header.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/utils/codegen/gen-tp-header.py b/utils/codegen/gen-tp-header.py
index 83606c32..0a3fa644 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,7 @@ def main(argv):
output = argv[2]
template = argv[3]
- year = datetime.datetime.now().year
+ year = 2024
path = pathlib.Path(output).absolute().relative_to(argv[1])
source = ''
--
2.46.1
More information about the libcamera-devel
mailing list