Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836702 - sys-process/audit-3.0.7-r1 - audit_wrap.c: error: cast specifies array type (broken with >=sys-kernel/linux-headers-5.17)
Summary: sys-process/audit-3.0.7-r1 - audit_wrap.c: error: cast specifies array type (...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-03 16:27 UTC by Toralf Förster
Modified: 2022-04-23 20:00 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.15 KB, text/plain)
2022-04-03 16:27 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,18.28 KB, text/plain)
2022-04-03 16:27 UTC, Toralf Förster
Details
environment (environment,149.90 KB, text/plain)
2022-04-03 16:27 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,25.69 KB, application/x-bzip)
2022-04-03 16:27 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,14.88 KB, application/x-bzip)
2022-04-03 16:27 UTC, Toralf Förster
Details
sys-process:audit-3.0.7-r1:20220403-161004.log (sys-process:audit-3.0.7-r1:20220403-161004.log,188.76 KB, text/plain)
2022-04-03 16:27 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,48.93 KB, application/x-bzip)
2022-04-03 16:27 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-04-03 16:27:15 UTC
too long lines were shrinked:

Deprecated command line option: -modern. This option is now always on.
/bin/sh /var/tmp/portage/sys-process/audit-3.0.7-r1/work/audit-3.0.7-abi_x86_64.amd64/libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-process/audit-3.0.7-r1/work/audit-3.0.7/bindings/swig/python3 -I/var/tmp/portage/sys-process/audit-3.0.7-r1/work
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-process/audit-3.0.7-r1/work/audit-3.0.7/bindings/swig/python3 -I/var/tmp/portage/sys-process/audit-3.0.7-r1/work/audit-3.0.7-abi_x86_64.amd64 -I. -I/var/tmp/portage/sys-process/audit-3.0.7-r1/work/audit-3.0.7-abi_x
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));
      |                 ^

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-j4_test-20220403-121949

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.1 *
clang/llvm (if any):
Python 3.9.9
php cli:

  HEAD of ::gentoo
commit 3c2d741642eddefcaa0e40115e5a6747d5e3dd00
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Apr 3 13:49:30 2022 +0000

    2022-04-03 13:49:29 UTC

emerge -qpvO sys-process/audit
[ebuild  N    ] sys-process/audit-3.0.7-r1  USE="ldap python (split-usr) test -gssapi -static-libs" PYTHON_TARGETS="python3_9 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2022-04-03 16:27:17 UTC
Created attachment 768604 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-04-03 16:27:18 UTC
Created attachment 768605 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-04-03 16:27:19 UTC
Created attachment 768606 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-04-03 16:27:20 UTC
Created attachment 768607 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-04-03 16:27:21 UTC
Created attachment 768608 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-04-03 16:27:23 UTC
Created attachment 768609 [details]
sys-process:audit-3.0.7-r1:20220403-161004.log
Comment 7 Toralf Förster gentoo-dev 2022-04-03 16:27:25 UTC
Created attachment 768610 [details]
temp.tar.bz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-07 02:54:28 UTC
Upstream rejected a workaround/fix at https://github.com/linux-audit/audit-userspace/pull/253 / https://github.com/linux-audit/audit-userspace/issues/252#issuecomment-1078595249.

Instead, in Fedora (same maintainer as upstream), they're patching the headers then unpatching before install.

Apparently the swig bindings are on their way out but I'm not convinced that's going to be a quick migration given the API will.. surely change?

It's not ideal but let's take the patch slyfox ended up using in nixpkgs anyway.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-23 20:00:48 UTC
(In reply to Sam James from comment #8)
> Upstream rejected a workaround/fix at
> https://github.com/linux-audit/audit-userspace/pull/253 /
> https://github.com/linux-audit/audit-userspace/issues/252#issuecomment-
> 1078595249.
> 
> Instead, in Fedora (same maintainer as upstream), they're patching the
> headers then unpatching before install.
> 
> Apparently the swig bindings are on their way out but I'm not convinced
> that's going to be a quick migration given the API will.. surely change?
> 
> It's not ideal but let's take the patch slyfox ended up using in nixpkgs
> anyway.

Done this in 3.0.8, by the way.