[PATCH] debianize: make default changelog timestamp configurable

18 views
Skip to first unread message

Christoph Steiger

unread,
Mar 4, 2025, 8:20:47 AM3/4/25
to isar-...@googlegroups.com, Christoph Steiger
Add the `DEBIAN_CHANGELOG_TIMESTAMP` variable to make the default
changelog timestamp configurable. This might be required if the default
timestamp leads to problems in the build process.

This is the case for e.g. python packages that use distutils<3.8 or with
the hatchling build system, since the internally used zip does not
support timestamps before 1. January 1980.

Signed-off-by: Christoph Steiger <christop...@siemens.com>
---
meta/classes/debianize.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/debianize.bbclass b/meta/classes/debianize.bbclass
index cf808eec..5e9d76f3 100644
--- a/meta/classes/debianize.bbclass
+++ b/meta/classes/debianize.bbclass
@@ -14,12 +14,13 @@ DEBIAN_CONFLICTS ??= ""
DEBIAN_BREAKS ??= ""
DEBIAN_MULTI_ARCH ??= "no"
DEBIAN_COMPAT ??= "10"
+DEBIAN_CHANGELOG_TIMESTAMP ??= "3600"
DESCRIPTION ??= "must not be empty"
MAINTAINER ??= "Unknown maintainer <unk...@example.com>"

deb_add_changelog() {
changelog_v="${CHANGELOG_V}"
- timestamp=3600
+ timestamp="${DEBIAN_CHANGELOG_TIMESTAMP}"
if [ -f ${S}/debian/changelog ]; then
if [ ! -f ${WORKDIR}/changelog.orig ]; then
cp ${S}/debian/changelog ${WORKDIR}/changelog.orig
--
2.39.5

Uladzimir Bely

unread,
Mar 13, 2025, 12:39:05 AM3/13/25
to Christoph Steiger, isar-...@googlegroups.com
On Tue, 2025-03-04 at 11:03 +0100, 'Christoph Steiger' via isar-users
wrote:
Applied to next, thanks.

--
Best regards,
Uladzimir.
Reply all
Reply to author
Forward
0 new messages