Your message dated Thu, 06 Aug 2026 11:49:00 +0000
with message-id <[email protected]>
and subject line Bug#1143733: fixed in cfengine3 3.27.1-2
has caused the Debian Bug report #1143733,
regarding cfengine3: FTBFS with 32 bit arches. size_t vs unsigned long mismatch.
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1143733: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1143733
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: cfengine3
Version: 3.27.1-1
Severity: important
Tags: ftbfs
Dear Maintainer,
I have noticed that cfengine3 3.27.1-1 did not reach testing because of
missing amrhf and i386 builds. Looking at the logs I see
...
evalfunction.c: In function 'ClassFilterDataGetClassExprFromIndex':
evalfunction.c:8065:41: error: passing argument 2 of 'StringToUlong' from
incompatible pointer type [-Wincompatible-pointer-types]
8065 | if (StringToUlong(class_expr_index, &index) != 0) {
| ^~~~~~
| |
| size_t * {aka unsigned int *}
In file included from ./var_expressions.h:32,
from ./scope.h:30,
from evalfunction.c:54:
./../libntech/libutils/string_lib.h:76:51: note: expected 'long unsigned int *'
but argument is of type 'size_t *' {aka 'unsigned int *'}
76 | int StringToUlong(const char *str, unsigned long *value_out)
FUNC_WARN_UNUSED_RESULT;
| ~~~~~~~~~~~~~~~^~~~~~~~~
...
Seems that there is a mismatch between size_t and unsigned long in 32 bit
arches. I have played with changing index type in libpromises/evalfunction.c
(see attached diff) and package builds and passes tests similarly to the
original (in an amd64 box), although did not check the resulting package.
Also tried changing things to size_t inside libntech and also builds,
however, libntech is in a different (linked) upstream repo, so I am sending
only the diff that changes things only inside cfengine3.
Hope this helps,
--
Agustin
--- a/libpromises/evalfunction.c
+++ b/libpromises/evalfunction.c
@@ -8060,7 +8060,7 @@ static const char *ClassFilterDataGetCla
JsonElement *json_array,
const char *class_expr_index)
{
- size_t index;
+ unsigned long index;
assert(SIZE_MAX >= ULONG_MAX); /* make sure returned value can fit in size_t */
if (StringToUlong(class_expr_index, &index) != 0) {
Log(LOG_LEVEL_VERBOSE,
--- End Message ---
--- Begin Message ---
Source: cfengine3
Source-Version: 3.27.1-2
Done: Christoph Martin <[email protected]>
We believe that the bug you reported is fixed in the latest version of
cfengine3, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Christoph Martin <[email protected]> (supplier of updated cfengine3 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Thu, 06 Aug 2026 13:35:36 +0200
Source: cfengine3
Architecture: source
Version: 3.27.1-2
Distribution: unstable
Urgency: medium
Maintainer: CFEngine Team <[email protected]>
Changed-By: Christoph Martin <[email protected]>
Closes: 1143733
Changes:
cfengine3 (3.27.1-2) unstable; urgency=medium
.
* fix 32bit builds (closes: #1143733)
Checksums-Sha1:
365e1c73751836e5a8e7b3384e131d49f18ef348 2438 cfengine3_3.27.1-2.dsc
911d8f47556be0f21f54757245de399ae89ec20f 20724 cfengine3_3.27.1-2.debian.tar.xz
69ffd89548f4fda4140e41fb98c38e742273006e 9339
cfengine3_3.27.1-2_amd64.buildinfo
Checksums-Sha256:
ed667e5ac3ba8613895b1356f2ae00231c70f6b859f1fd7c8e0e94aa3db91473 2438
cfengine3_3.27.1-2.dsc
3bd03a389f28498d8c5eec64e317f96a88584ce82b6679005b1ac62842054e84 20724
cfengine3_3.27.1-2.debian.tar.xz
f3df7786a3fa8337aaf7c989ae806e47015c1c9e079329a6cce737aed6ff3f44 9339
cfengine3_3.27.1-2_amd64.buildinfo
Files:
c8e3c15d358ee3548b4fa59b5d4d3183 2438 admin optional cfengine3_3.27.1-2.dsc
f0b15d912055397d83b0a47e769ed854 20724 admin optional
cfengine3_3.27.1-2.debian.tar.xz
fe8fac7e1af49233b934e32b3d2221af 9339 admin optional
cfengine3_3.27.1-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEbdFebnsTnCYy4y02kcMUbl2GabQFAmp0c3wACgkQkcMUbl2G
abSATxAAlV35A3rNmMXsxKuG435t6Cl4Dx2jRUx7WaCKAXyo/Ph+vsCVKrGfQ1Bd
omPEmsxT/I0qJsbK5eYNNz04Qd+1oX57ugwYUILlIjBIhPHcstML1uItt+GYgTYs
CEQJaJSLPwOqf9B/WFn70k5ca6McW5gR7sKhewfSuXn3VdybLUqTSI5w2GTSj9LX
zcEurMh0E0AQv+yVie1n4y+q0mOrS6b22Rp/lPKjbYCJTCVtdHOYoiQPBBJplhUT
Eid/JEzQrFB/eRnSt0jpbF0+8+DfFSR3Nl1KJHL4ZGadNMtm0vpiT647lO3NY3m6
iJ/g/xSJP9GYccG8XQV41WqiFxai7tydXzHn0vk7SkBWLZhP4yT/KW6uqRJdscQy
V7J9Jq9fRRpeBm2PDsZkwYW5X6oDaiR5y4nq1cB3wWXHbS47K2PoR9NG+kg84lb1
rJArXhzD9qWlOA7r8MK1zUB8A8epYFJ8oQlmye7HbpPhNaXsHYklzDhSYZf7tSdx
AKxyuJQ5sGD/ES1dAagy/vYaY7EcDRsIEG7zSauRbkUaadyOEm9m6KQE9BHq6JYs
zwhSz64Ose493rJmrmW4iJ1zAbpj7b7V8qx3js3EI4wY0GYFJEhMtuJd9i0Y/Ilv
kbJ5a99v5uEEMXK2bwrP5Kf8QmGgpOyD8sR/X6xPuxmE9P7JzmQ=
=duY0
-----END PGP SIGNATURE-----
pgplLCvgJLwY7.pgp
Description: PGP signature
--- End Message ---