Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] mpv no longer compiles

2 views
Skip to first unread message

John Covici

unread,
Mar 17, 2023, 2:50:04 AM3/17/23
to
media-video/mpv-0.35.1-r1 will not compile -- here is a portion of the
build log.
[19/438] /usr/bin/rst2man.py --strip-elements-with-class=contents
../mpv-0.35.1/DOCS/man/mpv.rst mpv.1
[20/438] /usr/bin/rst2html ../mpv-0.35.1/DOCS/man/mpv.rst mpv.html
^[[31mFAILED: ^[[0mmpv.html
/usr/bin/rst2html ../mpv-0.35.1/DOCS/man/mpv.rst mpv.html
/bin/sh: line 1: /usr/bin/rst2html: cannot execute: required file not
found
ninja: build stopped: subcommand failed.

I looked on bgo, but found nothing -- anyone seen this or should I
file a bug?

Thanks.

--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici wb2una
cov...@ccs.covici.com

Daniel Pielmeier

unread,
Mar 17, 2023, 3:10:04 AM3/17/23
to
Am 17. März 2023 06:42:11 UTC schrieb John Covici <cov...@ccs.covici.com>:
>media-video/mpv-0.35.1-r1 will not compile -- here is a portion of the
>build log.
>[19/438] /usr/bin/rst2man.py --strip-elements-with-class=contents
>../mpv-0.35.1/DOCS/man/mpv.rst mpv.1
>[20/438] /usr/bin/rst2html ../mpv-0.35.1/DOCS/man/mpv.rst mpv.html
>^[[31mFAILED: ^[[0mmpv.html
>/usr/bin/rst2html ../mpv-0.35.1/DOCS/man/mpv.rst mpv.html
>/bin/sh: line 1: /usr/bin/rst2html: cannot execute: required file not
>found
>ninja: build stopped: subcommand failed.
>
>I looked on bgo, but found nothing -- anyone seen this or should I
>file a bug?

Do you have dev-python/docutils installed and if not does it compile if you install it?

--
Best regards
Daniel

John Covici

unread,
Mar 17, 2023, 5:00:04 AM3/17/23
to
Thanks for your quick response. I have 0.19 of that package.

Daniel Pielmeier

unread,
Mar 17, 2023, 7:10:05 AM3/17/23
to
Am 17. März 2023 08:52:53 UTC schrieb John Covici <cov...@ccs.covici.com>:
>
>On Fri, 17 Mar 2023 03:03:37 -0400,
>Daniel Pielmeier wrote:
>>
>> Am 17. März 2023 06:42:11 UTC schrieb John Covici <cov...@ccs.covici.com>:
>> >media-video/mpv-0.35.1-r1 will not compile -- here is a portion of the
>> >build log.
>> >[19/438] /usr/bin/rst2man.py --strip-elements-with-class=contents
>> >../mpv-0.35.1/DOCS/man/mpv.rst mpv.1
>> >[20/438] /usr/bin/rst2html ../mpv-0.35.1/DOCS/man/mpv.rst mpv.html
>> >^[[31mFAILED: ^[[0mmpv.html
>> >/usr/bin/rst2html ../mpv-0.35.1/DOCS/man/mpv.rst mpv.html
>> >/bin/sh: line 1: /usr/bin/rst2html: cannot execute: required file not
>> >found
>> >ninja: build stopped: subcommand failed.
>> >
>> >I looked on bgo, but found nothing -- anyone seen this or should I
>> >file a bug?
>>
>> Do you have dev-python/docutils installed and if not does it compile if you install it?
>
>Thanks for your quick response. I have 0.19 of that package.
>

I am asking because I think rst2html is shipped with the docutils package. Does /usr/bin/rst2html exist on your system? Maybe also search for anything on the system containing rst2html.

--
Best regards
Daniel

John Covici

unread,
Mar 17, 2023, 8:00:04 AM3/17/23
to
On Fri, 17 Mar 2023 07:07:49 -0400,
Daniel Pielmeier wrote:
>
> Am 17. März 2023 08:52:53 UTC schrieb John Covici <cov...@ccs.covici.com>:
> >
> >On Fri, 17 Mar 2023 03:03:37 -0400,
> >Daniel Pielmeier wrote:
> >>
> >> Am 17. März 2023 06:42:11 UTC schrieb John Covici <cov...@ccs.covici.com>:
> >> >media-video/mpv-0.35.1-r1 will not compile -- here is a portion of the
> >> >build log.
> >> >[19/438] /usr/bin/rst2man.py --strip-elements-with-class=contents
> >> >../mpv-0.35.1/DOCS/man/mpv.rst mpv.1
> >> >[20/438] /usr/bin/rst2html ../mpv-0.35.1/DOCS/man/mpv.rst mpv.html
> >> >^[[31mFAILED: ^[[0mmpv.html
> >> >/usr/bin/rst2html ../mpv-0.35.1/DOCS/man/mpv.rst mpv.html
> >> >/bin/sh: line 1: /usr/bin/rst2html: cannot execute: required file not
> >> >found
> >> >ninja: build stopped: subcommand failed.
> >> >
> >> >I looked on bgo, but found nothing -- anyone seen this or should I
> >> >file a bug?
> >>
> >> Do you have dev-python/docutils installed and if not does it compile if you install it?
> >
> >Thanks for your quick response. I have 0.19 of that package.
> >
>
> I am asking because I think rst2html is shipped with the docutils package. Does /usr/bin/rst2html exist on your system? Maybe also search for anything on the system containing rst2html.

I did have /usr/bin/rst2html, but it was old and when I tried to
execute it said bad interpreter python3.8, so I linked the name to
/usr/bin/rst2html.py and that made everything work.

Thanks a lot for the hint.

Daniel Pielmeier

unread,
Mar 17, 2023, 8:30:05 AM3/17/23
to
I don't think this should be necessary. The docutils ebuild should take care of this. If it doesn't there is a bug in docutils or maybe the mpv ebuild should call the py script directly.


--
Best regards
Daniel

Michael Orlitzky

unread,
Mar 17, 2023, 10:00:04 AM3/17/23
to
On Fri, 2023-03-17 at 12:21 +0000, Daniel Pielmeier wrote:
>
>
> I don't think this should be necessary. The docutils ebuild should
> take care of this. If it doesn't there is a bug in docutils or maybe
> the mpv ebuild should call the py script directly.
>

The ebuilds themselves don't really take care of it. You have to be
using portage and run emerge --deep @world with either --changed-use or
--newuse to make it notice the update when the python stuff changes in
the profile.

John Covici

unread,
Mar 17, 2023, 10:10:05 AM3/17/23
to
This is what I did using --changed-use, but the docutils hasn't been
updated for a while, sounds like the ebuild should link rst2html,
otherwise things are not going to work.

Ionen Wolkens

unread,
Mar 17, 2023, 2:40:07 PM3/17/23
to
It's not, docutils only ships rst2html.py and it's the normal name to
use ("some" distros rename it or make a symlink, but Gentoo only use
the upstream intended name, you wouldn't get a rst2html if you
installed it with e.g. pip too).

Because of these distros, mpv tries rst2html then rst2html.py if it's
not found.

Error is confusing, thing is that rst2html was found, but the "not found"
error was about the python interpreter (as noted in another mail). Long
story short, it'd be fine if this broken /usr/bin/rst2html simply didn't
exist, no need for a symlink or anything like that.

--
ionen
signature.asc

John Covici

unread,
Mar 17, 2023, 3:10:05 PM3/17/23
to
On Fri, 17 Mar 2023 14:39:04 -0400,
Ionen Wolkens wrote:
>
> [1 <text/plain; utf-8 (quoted-printable)>]
OK, thanks, I will delete the simlink and see if it still works.
0 new messages