Package: libical3
Version: 3.0.19-1
Tags: ftbfs
Usertags: hppa powerpc

Debian turned time_t to be a 64-bit value on 32-bit platforms.
Because of that the libical3 testcase now fails to build on hppa and powerpc:
https://buildd.debian.org/status/fetch.php?pkg=libical3&arch=hppa&ver=3.0.19-1&stamp=1735155399&raw=0

62: Test command: /usr/bin/python3 "-I" 
"/build/reproducible-path/libical3-3.0.19/src/test/libical-glib/recurrence.py"
62: Working Directory: 
/build/reproducible-path/libical3-3.0.19/obj-hppa-linux-gnu/bin
62: Environment variables:
62:  
GI_TYPELIB_PATH=/build/reproducible-path/libical3-3.0.19/obj-hppa-linux-gnu/src/libical-glib
62:  ZONEINFO_DIRECTORY=/build/reproducible-path/libical3-3.0.19/zoneinfo
62:  
LD_LIBRARY_PATH=/build/reproducible-path/libical3-3.0.19/obj-hppa-linux-gnu/lib
62: Test timeout computed to be: 10000000
62: Traceback (most recent call last):
62:   File 
"/build/reproducible-path/libical3-3.0.19/src/test/libical-glib/recurrence.py", line 
239, in <module>
62:     assert(result[i] == start + i*secs_per_day)
62:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62: AssertionError
62/64 Test #62: libical-glib-recurrence ..............***Failed    1.07 sec
Traceback (most recent call last):
  File 
"/build/reproducible-path/libical3-3.0.19/src/test/libical-glib/recurrence.py", line 
239, in <module>
    assert(result[i] == start + i*secs_per_day)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError


I added some print() and all result[] values are zero.
That means that the transition from C-Code to python did not work.
I think the problem is in src/Net-ICal-Libical/netical.i:
In this define, "start" and "array" should be "unsigned long long" or 
"uint64_t":
int icalrecur_expand_recurrence(const char* rule, int start,
                                int count, int *array);

Note that int or long can be 64-bit on 64-bit platforms, but on 32-bit 
platforms you need
to use "long long" or "uint64_t" to refer to a 64-bit (time_t) value.

I'm no python expert, but there is the (slow) hppa porterbox available: 
parisc.debian.net

Helge

Reply via email to