Debian Patches

Status for pendulum/3.0.0-2

Patch Description Author Forwarded Bugs Origin Last update
0001-relax-rust-crate-dependency-versions.patch Relax rust crate dependency versions Ananthu C V <weepingclown@disroot.org> not-needed 2024-08-08
0002-pyo3-v0.22-compatibility.patch pyo3 v0.22 compatibility Ananthu C V <weepingclown@disroot.org> no 2024-08-13
0003-remove-python-tzdata-dependency.patch remove python tzdata dependency Ananthu C V <weepingclown@disroot.org> not-needed https://github.com/sdispater/pendulum/pull/805 2024-08-13
0004-remove-pytz-dependency.patch remove pytz dependency Ananthu C V <weepingclown@disroot.org> no 2024-08-13
rust-Use-i64-for-internal-unix-timestamps.patch rust: Use i64 for internal unix timestamps
pendulum 3.0.0 fails to build on 32-bit armhf:

```
--> src/helpers.rs:59:20
|
59 | seconds += ((146_097 - 10957) * SECS_PER_DAY as usize) as isize;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `135140_usize * 86400_usize`, which would overflow
|
= note: `#[deny(arithmetic_overflow)]` on by default
```

`(146_097 - 10957) * SECS_PER_DAY` equals 11,676,096,000 which does not
fit into 32 bit integers.

Use i64 for the seconds variable while handling with the timestamp. Only
convert in to `usize` once the timestamp is split into its components.

Fixes https://github.com/sdispater/pendulum/issues/784
Benjamin Drung <benjamin.drung@canonical.com> yes 2024-09-05

All known versions for source package 'pendulum'

Links