Summary: | dev-util/bpftool-6.7.6-r1 - Makefile:<snip>: rst2man.py not found, but required to generate man pages. Stop. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Jakov Smolić <jsmolic> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | holger, ionen |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=930965 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
dev-util:bpftool-6.7.6-r1:20240415-134041.log emerge-history.txt environment etc.clang.tar.xz etc.portage.tar.xz qlist-info.txt |
Description
Toralf Förster
2024-04-15 17:39:19 UTC
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(-) |