too long lines were shrinked: x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -O2 -W -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wbad-function-cast -Wdeclaration-after-statement -Wformat-security -Wformat-y2k -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wno-system-heade x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -O2 -W -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wbad-function-cast -Wdeclaration-after-statement -Wformat-security -Wformat-y2k -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wno-system-heade x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -O2 -W -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wbad-function-cast -Wdeclaration-after-statement -Wformat-security -Wformat-y2k -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wno-system-heade x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -O2 -W -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wbad-function-cast -Wdeclaration-after-statement -Wformat-security -Wformat-y2k -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wno-system-heade make -j4 V=1 VF=1 HOSTCC=x86_64-pc-linux-gnu-gcc HOSTLD=x86_64-pc-linux-gnu-ld 'EXTRA_CFLAGS=-O2 -pipe -march=native -fno-diagnostics-color' ARCH=x86 BPFTOOL_VERSION=6.7.6 prefix=/usr bash_compdir=/usr/share/bash-completion/completions feature-libcap=0 feature-llvm=1 -C Documentation make: Entering directory '/var/tmp/portage/dev-util/bpftool-6.7.6-r1/work/linux-6.7/tools/bpf/bpftool/Documentation' Makefile:41: *** "rst2man.py not found, but required to generate man pages". Stop. make: Leaving directory '/var/tmp/portage/dev-util/bpftool-6.7.6-r1/work/linux-6.7/tools/bpf/bpftool/Documentation' * ERROR: dev-util/bpftool-6.7.6-r1::gentoo failed (compile phase): ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_desktop_plasma-20240412-195555 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-14 * clang/llvm (if any): clang version 18.1.3 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/18/bin Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg /usr/lib/llvm/18 18.1.3 Python 3.11.9 Available Ruby profiles: [1] ruby31 (with Rubygems) [2] ruby32 (with Rubygems) * Available Rust versions: [1] rust-bin-1.77.1 * The following VMs are available for generation-2: *) Eclipse Temurin JDK 21.0.2_p13 [openjdk-bin-21] 2) Eclipse Temurin JDK 8.402_p06 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-21 system-vm The Glorious Glasgow Haskell Compilation System, version 9.2.8 php cli (if any): [1] php8.3 * go version go1.22.2 linux/amd64 HEAD of ::gentoo commit f9d93579f555d576b3f232deb84b4d556ff6a740 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Mon Apr 15 12:49:16 2024 +0000 Merge updates from master emerge -qpvO dev-util/bpftool [ebuild N ] dev-util/bpftool-6.7.6-r1 USE="llvm -caps"
Created attachment 890877 [details] emerge-info.txt
Created attachment 890878 [details] dev-util:bpftool-6.7.6-r1:20240415-134041.log
Created attachment 890879 [details] emerge-history.txt
Created attachment 890880 [details] environment
Created attachment 890881 [details] etc.clang.tar.xz
Created attachment 890882 [details] etc.portage.tar.xz
Created attachment 890883 [details] qlist-info.txt
In case wondering what happened here, docutils bump dropped the .py extensions to match what many distros were doing (we were keeping the intended names instead). And given said many distros were renaming them, packages often look for it without .py which led to this workaround. Workaround could be dropped eventually but to work with old versions one could do for now: type -P rst2man >/dev/null || sed ... || die
Thanks for the suggestion! The following works for me: diff --git a/dev-util/bpftool/bpftool-6.8.2.ebuild b/dev-util/bpftool/bpftool-6.8.2.ebuild index fd04d9b..bc24e2f 100644 --- a/dev-util/bpftool/bpftool-6.8.2.ebuild +++ b/dev-util/bpftool/bpftool-6.8.2.ebuild @@ -87,8 +87,8 @@ src_prepare() { popd || die fi - # dev-python/docutils installs rst2man.py, not rst2man - sed -i -e 's/rst2man/rst2man.py/g' Documentation/Makefile || die + # Use rst2man or rst2man.py depending on which one exists (#930076) + type -P rst2man >/dev/null || sed -i -e 's/rst2man/rst2man.py/g' Documentation/Makefile || die # remove -Werror (bug 887981) sed -i -e 's/\-Werror//g' ../../lib/bpf/Makefile || die
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d06dc1b0de375ceeccc4f21b0d4e7220000809a8 commit d06dc1b0de375ceeccc4f21b0d4e7220000809a8 Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2024-04-29 09:26:20 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2024-04-29 18:48:56 +0000 dev-util/bpftool: Workaround rst2man extension change Thanks to Ionen and Holger for providing the patch. Closes: https://bugs.gentoo.org/930076 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> dev-util/bpftool/bpftool-6.8.2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)