Commit 6fa21cff authored by Kevin Daudt's avatar Kevin Daudt 💻

community/phosh: fix compile error on 32-bits platforms

GTimeSpan is a long long int on 32-bits platforms. '%ld' only accepts
long ints, so that results into compile errors. Fix this by casting
`timeout_diff` to `long long` and change the format to use `%lld`.
parent 546bc5ad
Pipeline #35743 failed with stages
in 66 minutes and 52 seconds
......@@ -19,6 +19,7 @@ subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.xz::https://repo.pureos.net/pureos/pool/main/p/phosh/phosh_$pkgver.tar.xz
phosh.desktop
sm.puri.OSK0.desktop
timeout-diff-64-bits.patch
"
options="!check" # Needs a running Wayland compositor
......@@ -49,4 +50,5 @@ package() {
}
sha512sums="43eec9987daec6f220e853021a8e32cfdb00f73e097479847e846ab318d506419f8d4d0712ff8f12d2e7b1b863a9edbf4465ad430df092b593f0b06d24bc27b1 phosh-0.4.3.tar.xz
6644870edbbbc6b88d6e19f7771d81dba1a11066c2b34e4c22736db73a2dfd0d4909b4967503059c35385c5139a834a5c06a3c56b148ba1275d7f089c0c5f33c phosh.desktop
f97019598323276cf97ae62f04b6245983198e04b228ddc605835ee46845d9b88c6890fb86e97e4bb6f1ad73361437d9ed18c91e81fe1284a88cdcb92d3fdc69 sm.puri.OSK0.desktop"
f97019598323276cf97ae62f04b6245983198e04b228ddc605835ee46845d9b88c6890fb86e97e4bb6f1ad73361437d9ed18c91e81fe1284a88cdcb92d3fdc69 sm.puri.OSK0.desktop
983192723c5596703fad1c33a97a8698ded741aae276a4cf7dde1fb6e79aab2c4522405f798e985004e2825a1045076378bd022f796cc2cabf5b21c0da14db02 timeout-diff-64-bits.patch"
Reason: GTimeSpan is long long int on 32-bits platforms, which results in
compile errors when using '%ld'
Upstream: No
diff --git a/src/notifications/timestamp-label.c b/src/notifications/timestamp-label.c
index 0aa04ce..320e0fd 100644
--- a/src/notifications/timestamp-label.c
+++ b/src/notifications/timestamp-label.c
@@ -255,7 +255,7 @@ phosh_timestamp_label_calc_timeout (PhoshTimestampLabel *self)
break;
}
timeout_diff = g_date_time_difference (timeout_time, time_now);
- g_debug ("time out duration = %ld", timeout_diff);
+ g_debug ("time out duration = %lld", (long long) timeout_diff);
return timeout_diff;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment