diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2023-09-20 12:12:56 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2023-09-20 12:30:27 -0400 |
commit | 6a9174554448aa4f7ec724d09b1b31d115e6063f (patch) | |
tree | a164d5df8b948c4a5f21bd5d451ebe82b62df925 /x11-drivers | |
parent | net-wireless/crda: Stabilize 4.15-r2 ppc64, #914465 (diff) | |
download | gentoo-6a9174554448aa4f7ec724d09b1b31d115e6063f.tar.gz gentoo-6a9174554448aa4f7ec724d09b1b31d115e6063f.tar.bz2 gentoo-6a9174554448aa4f7ec724d09b1b31d115e6063f.zip |
x11-drivers/nvidia-drivers: workaround clang-common-17 sandbox issue
Most kernel modules do not seem affected and it depends on the tests
being performed, so workaround at least here while being looked at.
Issue could affect other packages if they happen to e.g. cd / (for
some reason) and use clang in certain ways for some tests, but likely
not a widespread problem.
Fortunately does not actually write these a.out and can get away
with just addpredict (kept clang-only not to shadow issues).
Bug: https://bugs.gentoo.org/914468
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'x11-drivers')
5 files changed, 17 insertions, 0 deletions
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild index 5319b38d5e48..fce832416735 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild @@ -159,6 +159,10 @@ src_compile() { SYSOUT="${KV_OUT_DIR}" SYSSRC="${KV_DIR}" ) + # temporary workaround for bug #914468 + use modules && + CPP="${KERNEL_CC} -E" tc-is-clang && addpredict "${KV_OUT_DIR}" + linux-mod-r1_src_compile if use persistenced; then diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.199.02.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.199.02.ebuild index f2a6c2f42703..59cdea3c4d44 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.199.02.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.199.02.ebuild @@ -160,6 +160,10 @@ src_compile() { SYSOUT="${KV_OUT_DIR}" SYSSRC="${KV_DIR}" ) + # temporary workaround for bug #914468 + use modules && + CPP="${KERNEL_CC} -E" tc-is-clang && addpredict "${KV_OUT_DIR}" + linux-mod-r1_src_compile emake "${NV_ARGS[@]}" -C nvidia-modprobe use persistenced && emake "${NV_ARGS[@]}" -C nvidia-persistenced diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-525.125.06.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-525.125.06.ebuild index 465f5147fa11..e413c8fb10fd 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-525.125.06.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-525.125.06.ebuild @@ -199,6 +199,9 @@ src_compile() { SYSOUT="${KV_OUT_DIR}" SYSSRC="${KV_DIR}" ) + # temporary workaround for bug #914468 + CPP="${KERNEL_CC} -E" tc-is-clang && addpredict "${KV_OUT_DIR}" + linux-mod-r1_src_compile CFLAGS=${o_cflags} CXXFLAGS=${o_cxxflags} LDFLAGS=${o_ldflags} fi diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-535.104.05.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-535.104.05.ebuild index 2b6792634211..a7401f2b31c2 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-535.104.05.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-535.104.05.ebuild @@ -199,6 +199,9 @@ src_compile() { SYSOUT="${KV_OUT_DIR}" SYSSRC="${KV_DIR}" ) + # temporary workaround for bug #914468 + CPP="${KERNEL_CC} -E" tc-is-clang && addpredict "${KV_OUT_DIR}" + linux-mod-r1_src_compile CFLAGS=${o_cflags} CXXFLAGS=${o_cxxflags} LDFLAGS=${o_ldflags} fi diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.09.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.09.ebuild index 7e093cca624a..51bc68ee6e30 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.09.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.09.ebuild @@ -202,6 +202,9 @@ src_compile() { SYSOUT="${KV_OUT_DIR}" SYSSRC="${KV_DIR}" ) + # temporary workaround for bug #914468 + CPP="${KERNEL_CC} -E" tc-is-clang && addpredict "${KV_OUT_DIR}" + linux-mod-r1_src_compile CFLAGS=${o_cflags} CXXFLAGS=${o_cxxflags} LDFLAGS=${o_ldflags} fi |