Your message dated Tue, 20 Sep 2022 23:22:14 +0000 with message-id <[email protected]> and subject line Bug#1010289: fixed in audit 1:3.0.7-1.1 has caused the Debian Bug report #1010289, regarding audit: FTBFS: error: cast specifies array type 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.) -- 1010289: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010289 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Source: audit Version: 1:3.0.7-1 Severity: serious >From my build log: ... Making all in python3 make[6]: Entering directory '/home/tmpbuilder/cross-i386/audit/audit-3.0.7/debian/build/bindings/swig/python3' swig -o audit_wrap.c -python -py3 -modern -I. -I../../.. -I../../../../../lib -I/usr/include/python3.10 -I/usr/include/python3.10 ../../../../../bindings/swig/python3/../src/auditswig.i Deprecated command line option: -modern. This option is now always on. /bin/bash ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../../bindings/swig/python3 -I../../.. -I. -I../../.. -I../../../../../lib -I/usr/include/python3.10 -I/usr/include/python3.10 -Wdate-time -D_FORT IFY_SOURCE=2 -shared -g -O2 -ffile-prefix-map=/home/tmpbuilder/cross-i386/audit/audit-3.0.7=. -fstack-protector-strong -Wformat -Werror=format-security -c -o _audit_la-audit_wrap.lo `test -f 'audit_wrap.c' || echo '../../../../../bindin gs/swig/python3/'`audit_wrap.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../../../bindings/swig/python3 -I../../.. -I. -I../../.. -I../../../../../lib -I/usr/include/python3.10 -I/usr/include/python3.10 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-ma p=/home/tmpbuilder/cross-i386/audit/audit-3.0.7=. -fstack-protector-strong -Wformat -Werror=format-security -c audit_wrap.c -fPIC -DPIC -o .libs/_audit_la-audit_wrap.o audit_wrap.c: In function '_wrap_audit_rule_data_buf_set': audit_wrap.c:4701:17: error: cast specifies array type 4701 | arg1->buf = (char [])(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); | ^ audit_wrap.c:4701:15: error: invalid use of flexible array member 4701 | arg1->buf = (char [])(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); | ^ audit_wrap.c:4703:15: error: invalid use of flexible array member 4703 | arg1->buf = 0; | ^ make[6]: *** [Makefile:518: _audit_la-audit_wrap.lo] Error 1 make[6]: Leaving directory '/home/tmpbuilder/cross-i386/audit/audit-3.0.7/debian/build/bindings/swig/python3' make[5]: *** [Makefile:417: all-recursive] Error 1 make[5]: Leaving directory '/home/tmpbuilder/cross-i386/audit/audit-3.0.7/debian/build/bindings/swig' make[4]: *** [Makefile:414: all-recursive] Error 1 make[4]: Leaving directory '/home/tmpbuilder/cross-i386/audit/audit-3.0.7/debian/build/bindings' make[3]: *** [Makefile:471: all-recursive] Error 1 make[3]: Leaving directory '/home/tmpbuilder/cross-i386/audit/audit-3.0.7/debian/build' make[2]: *** [Makefile:403: all] Error 2 make[2]: Leaving directory '/home/tmpbuilder/cross-i386/audit/audit-3.0.7/debian/build' dh_auto_build: error: cd debian/build && make -j8 returned exit code 2 make[1]: *** [debian/rules:64: debian/build-python-stamp] Error 2 make[1]: Leaving directory '/home/tmpbuilder/cross-i386/audit/audit-3.0.7' make: *** [debian/rules:34: build-arch] Error 2 dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2 Looking at the situation a bit, it seems that a recent update to /usr/include/linux/audit.h made a change such that struct audit_rule_data is no longer swig friendly. -- Daniel Schepler
--- End Message ---
--- Begin Message ---Source: audit Source-Version: 1:3.0.7-1.1 Done: Paul Gevers <[email protected]> We believe that the bug you reported is fixed in the latest version of audit, 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. Paul Gevers <[email protected]> (supplier of updated audit 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: SHA256 Format: 1.8 Date: Tue, 20 Sep 2022 21:05:52 +0200 Source: audit Architecture: source Version: 1:3.0.7-1.1 Distribution: unstable Urgency: medium Maintainer: Laurent Bigonville <[email protected]> Changed-By: Paul Gevers <[email protected]> Closes: 1010289 Changes: audit (1:3.0.7-1.1) unstable; urgency=medium . * Non-maintainer upload. * d/p/04-auditswig-i-avoid-setter-generation-for-audit-rule-data.patch: Fix FTBFS by backporting proposed patch from upstream to avoid generating setters for audit_rule_data::buf in SWIG bindings as SWIG fails to properly generate correct code now that the kernel headers use flexible-length arrays. This patch has not been merged upstream since their preferred fix is to rewrite the python bindings to not use SWIG. Other distributions have worked around this by patching the header files from the kernel when building audit to temporarily remove the flexible-length array. However its use will be buggy when used against a kernel header that expects a flexible-length array (as is the case for the previous version of audit). (Thanks to Alex Murray) (Closes: #1010289) Checksums-Sha1: 7fead75c14390a0937d5512c52fbcacf7521174d 2500 audit_3.0.7-1.1.dsc 9323612ecda0f7f61dff892b9c4eabfebb259305 18668 audit_3.0.7-1.1.debian.tar.xz Checksums-Sha256: 5b15ad446bf4904a985b9fd549341967b9b6c908a5096f4ebd02c0ad83ad00b7 2500 audit_3.0.7-1.1.dsc f78863e469f8768b403a1d406e56a720aeb168788cd3b3f4d771a12280d1c70e 18668 audit_3.0.7-1.1.debian.tar.xz Files: 9d03b358c1f8dbcba2aec8bac7bdcb12 2500 libs optional audit_3.0.7-1.1.dsc ef26e58a8d39326fdc9ed6cf21148566 18668 libs optional audit_3.0.7-1.1.debian.tar.xz -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEWLZtSHNr6TsFLeZynFyZ6wW9dQoFAmMqHewACgkQnFyZ6wW9 dQo1WQf+INiYzKAmNCUaGFwXqpfwPN5MqJWgofqUDqdoMX/blerAUnDJImGJZUfC 2o2eV6GcTd8ftfSI1xrNLfsslFA0BoXq2n6T+SZ2jy/4MKB1r2cJ/vKiQEQiVZYW QdJlz2/5R9fD4G1MsovwQEcj/3ITDilPY1vmy+fP9rXZc8C8oMH0AcgI/NaTafAr bAnzRELd3kZUM+abN42vii8YL+j5Gego9xOj8a8DSAH7Y3HDxVKxGnlhJ29H18pW v30B33UOMaCEnfu0FEXLYhNZYCpfSMPbGqnsqyjx2rQR8E2GaUPjY+hm2vGbyeC5 PB+4fRF4Wt3pQEqE2e/D1nsNZuysQg== =JBEn -----END PGP SIGNATURE-----
--- End Message ---

