Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 930076 - dev-util/bpftool-6.7.6-r1 - Makefile:<snip>: rst2man.py not found, but required to generate man pages. Stop.
Summary: dev-util/bpftool-6.7.6-r1 - Makefile:<snip>: rst2man.py not found, but requir...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jakov Smolić
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-15 17:39 UTC by Toralf Förster
Modified: 2024-04-30 07:15 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.88 KB, text/plain)
2024-04-15 17:39 UTC, Toralf Förster
Details
dev-util:bpftool-6.7.6-r1:20240415-134041.log (dev-util:bpftool-6.7.6-r1:20240415-134041.log,60.42 KB, text/plain)
2024-04-15 17:39 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,102.88 KB, text/plain)
2024-04-15 17:39 UTC, Toralf Förster
Details
environment (environment,120.17 KB, text/plain)
2024-04-15 17:39 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.17 KB, application/x-xz)
2024-04-15 17:39 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,9.48 KB, application/x-xz)
2024-04-15 17:39 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,191.11 KB, text/plain)
2024-04-15 17:39 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 2024-04-15 17:39:19 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2024-04-15 17:39:20 UTC
Created attachment 890877 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-04-15 17:39:21 UTC
Created attachment 890878 [details]
dev-util:bpftool-6.7.6-r1:20240415-134041.log
Comment 3 Toralf Förster gentoo-dev 2024-04-15 17:39:22 UTC
Created attachment 890879 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-04-15 17:39:24 UTC
Created attachment 890880 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-04-15 17:39:24 UTC
Created attachment 890881 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-04-15 17:39:25 UTC
Created attachment 890882 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-04-15 17:39:26 UTC
Created attachment 890883 [details]
qlist-info.txt
Comment 8 Ionen Wolkens gentoo-dev 2024-04-15 20:07:49 UTC
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
Comment 9 Holger Hoffstätte 2024-04-18 23:56:16 UTC
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
Comment 10 Larry the Git Cow gentoo-dev 2024-04-29 18:49:07 UTC
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(-)