* [PATCH] debianize: make default changelog timestamp configurable
@ 2025-03-04 10:03 'Christoph Steiger' via isar-users
2025-03-13 4:38 ` Uladzimir Bely
0 siblings, 1 reply; 2+ messages in thread
From: 'Christoph Steiger' via isar-users @ 2025-03-04 10:03 UTC (permalink / raw)
To: isar-users; +Cc: 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 <christoph.steiger@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 <unknown@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
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20250304100351.121924-1-christoph.steiger%40siemens.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] debianize: make default changelog timestamp configurable
2025-03-04 10:03 [PATCH] debianize: make default changelog timestamp configurable 'Christoph Steiger' via isar-users
@ 2025-03-13 4:38 ` Uladzimir Bely
0 siblings, 0 replies; 2+ messages in thread
From: Uladzimir Bely @ 2025-03-13 4:38 UTC (permalink / raw)
To: Christoph Steiger, isar-users
On Tue, 2025-03-04 at 11:03 +0100, 'Christoph Steiger' via isar-users
wrote:
> 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 <christoph.steiger@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 <unknown@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
>
Applied to next, thanks.
--
Best regards,
Uladzimir.
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/d73dcf7d565890dd7e94ab0f5685bb8be2a29e52.camel%40ilbers.de.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-13 4:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-04 10:03 [PATCH] debianize: make default changelog timestamp configurable 'Christoph Steiger' via isar-users
2025-03-13 4:38 ` Uladzimir Bely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox