#1026973 rrdtool FTBFS on 32-bit arches (may fail in testcase)

Package:
rrdtool
Source:
rrdtool
Description:
time-series data storage and display system (programs)
Submitter:
Helge Deller
Date:
2023-06-02 22:24:03 UTC
Severity:
normal
Tags:
#1026973#5
Date:
2022-12-25 11:49:27 UTC
From:
To:
The command "rrdtool list /some/dir/" fails on 32-bit arches at runtime
if those are running on huge discs, e.g. see failing "list1" testcase
on hppa:
https://buildd.debian.org/status/fetch.php?pkg=rrdtool&arch=hppa&ver=1.7.2-4%2Bb7&stamp=1671837818&raw=0

This can be fixed by building rrdtool with LFS (large file support).
Simply change in debian/rules this line (line 19):
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
to
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow future=+lfs

Thanks,
Helge

#1026973#10
Date:
2023-01-05 18:15:43 UTC
From:
To:
pkg=rrdtool&arch=hppa&ver=1.7.2-4+b7&stamp=1671837818&raw=0
proposed, but the `build i386` job still failed (it also failed without the
patch): https://salsa.debian.org/diederik/rrdtool/-/pipelines/479591

FTR: This is based on the 1.8.0 version which is in the repo, but not
released, but the failure is still in the "list1" testcase.
https://buildd.debian.org/status/logs.php?pkg=rrdtool&arch=hppa shows that a
new build on 2022-12-24 did succeed on hppa (without the patch) ...

Do you have more ideas as to what may be causing the build failure?

#1026973#15
Date:
2023-01-05 21:16:15 UTC
From:
To:
But it seems to fail differently for you
https://salsa.debian.org/diederik/rrdtool/-/jobs/3746600 :

  /builds/diederik/rrdtool/debian/output/source_dir/src/rrdtool list
FAILED: (rc=1) list without parameters displays Usage
FAIL list1 (exit status: 1)

this is from the rrdtool-1.7.2/tests/list1 script, which executes:

LC_ALL=C $RRDTOOL list | grep -c Usage

Can you maybe run it manually on i386 with strace?
This should give you some insight....

Helge

#1026973#20
Date:
2023-01-05 22:15:10 UTC
From:
To:
Thanks, I can take a look at that.

Then I have to learn how to set up a i386 chroot (or sth like that) and how to
run strace ... and do sth with its output. So I'll leave that for now.

My request/question was mostly in the hope that you'd have an instant "Oh
wait, then that must be it", which unfortunately isn't the case.

Cheers,
  Diederik

#1026973#25
Date:
2023-06-02 22:19:42 UTC
From:
To:
https://salsa.debian.org/rrdtool-team/rrdtool/-/merge_requests/4 contains the
changes I made to make Salsa's CI and thus the 'build i386' job succeed.