From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 20A641584AD for ; Sat, 03 May 2025 19:39:39 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 0BD35343111 for ; Sat, 03 May 2025 19:39:39 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id BA4E811036F; Sat, 03 May 2025 19:39:35 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id B43C311036F for ; Sat, 03 May 2025 19:39:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 61C2E3430B3 for ; Sat, 03 May 2025 19:39:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C4DFD183E for ; Sat, 03 May 2025 19:39:33 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1746301132.53d1b62c00f7a1b4be97077e1b5d0e01ec397c7e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/bpftool/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/bpftool/bpftool-7.5.0-r1.ebuild dev-util/bpftool/bpftool-9999.ebuild X-VCS-Directories: dev-util/bpftool/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 53d1b62c00f7a1b4be97077e1b5d0e01ec397c7e X-VCS-Branch: master Date: Sat, 03 May 2025 19:39:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1e4fb2a9-50ee-4c47-9a46-5a3478e8cba9 X-Archives-Hash: 82d42a0482f41106a8746efe452084ec commit: 53d1b62c00f7a1b4be97077e1b5d0e01ec397c7e Author: Holger Hoffstätte applied-asynchrony com> AuthorDate: Sat May 3 14:27:21 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sat May 3 19:38:52 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53d1b62c dev-util/bpftool: warn when using bpf-toolchain While using bpf-toolchain "mostly works", there are still some rough edges due to ongoing work in Linux and gcc itself. Make users aware that USE=-clang might result in bugs. Signed-off-by: Holger Hoffstätte applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/41913 Closes: https://github.com/gentoo/gentoo/pull/41913 Signed-off-by: Sam James gentoo.org> dev-util/bpftool/bpftool-7.5.0-r1.ebuild | 5 +++++ dev-util/bpftool/bpftool-9999.ebuild | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/dev-util/bpftool/bpftool-7.5.0-r1.ebuild b/dev-util/bpftool/bpftool-7.5.0-r1.ebuild index e35ec289b5ca..2d8c0adfad31 100644 --- a/dev-util/bpftool/bpftool-7.5.0-r1.ebuild +++ b/dev-util/bpftool/bpftool-7.5.0-r1.ebuild @@ -94,6 +94,11 @@ src_prepare() { sed -i 's/-fno-stack-protector/& -std=gnu11/g' src/Makefile || die if ! use clang; then + # make people aware of what they are doing + ewarn "Using bpf-toolchain instead of clang due to USE=-clang." + ewarn "Please report any odd behaviours you observe, since using gcc for BPF" + ewarn "is still under development in both the Linux kernel and gcc itself." + # prevent attribute warning about preserve_access_index # since gcc does not support '#pragma clang attribute push': # https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=675b4e2 diff --git a/dev-util/bpftool/bpftool-9999.ebuild b/dev-util/bpftool/bpftool-9999.ebuild index 3658c8d318bd..0139c6ee78d9 100644 --- a/dev-util/bpftool/bpftool-9999.ebuild +++ b/dev-util/bpftool/bpftool-9999.ebuild @@ -92,6 +92,11 @@ src_prepare() { sed -i 's/-fno-stack-protector/& -std=gnu11/g' src/Makefile || die if ! use clang; then + # make people aware of what they are doing + ewarn "Using bpf-toolchain instead of clang due to USE=-clang." + ewarn "Please report any odd behaviours you observe, since using gcc for BPF" + ewarn "is still under development in both the Linux kernel and gcc itself." + # prevent attribute warning about preserve_access_index # since gcc does not support '#pragma clang attribute push': # https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=675b4e2