Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 719846 - app-emulation/ganeti-2.15.2-r9 fails to build: Could not lex literal_block as "python". Highlighting skipped
Summary: app-emulation/ganeti-2.15.2-r9 fails to build: Could not lex literal_block as...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-27 20:40 UTC by Austin English
Modified: 2020-05-06 01:02 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,305.04 KB, text/x-log)
2020-04-27 20:40 UTC, Austin English
Details
remove set -e from manpage steps (ganeti-2.15-docs.patch,712 bytes, patch)
2020-04-28 02:27 UTC, Austin English
Details | Diff
patch 1/2 (ganeti-2.15.2-fixup-docs.patch,1.98 KB, patch)
2020-05-01 07:47 UTC, Austin English
Details | Diff
patch 2/2 (ganeti-2.15.2-check-man-warnings.patch,612 bytes, patch)
2020-05-01 07:47 UTC, Austin English
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Austin English 2020-04-27 20:40:45 UTC
Created attachment 634948 [details]
build.log

Warning, treated as error:
/var/tmp/portage/app-emulation/ganeti-2.15.2-r9/temp/gntbuild.tiR1shJ6/doc/design-impexp2.rst:512:Could not lex literal_block as "python". Highlighting skipped.                             

appears to be https://github.com/sphinx-doc/sphinx/issues/4225
Comment 1 Austin English 2020-04-28 02:27:11 UTC
Created attachment 634958 [details, diff]
remove set -e from manpage steps

This works around it for me.
Comment 2 Austin English 2020-04-28 03:14:09 UTC
(In reply to Austin English from comment #1)
> Created attachment 634958 [details, diff] [details, diff]
> remove set -e from manpage steps
> 
> This works around it for me.

Sorry, patch isn't correct; doesn't work in a fresh build, needs more work.
Comment 3 Austin English 2020-05-01 07:47:10 UTC
Created attachment 635416 [details, diff]
patch 1/2

Remove the problematic doc portion.
Comment 4 Austin English 2020-05-01 07:47:35 UTC
Created attachment 635418 [details, diff]
patch 2/2

Fix manpage warning checks
Comment 5 Austin English 2020-05-01 08:15:56 UTC
I've attached two patches that fix the issue for me.

1/2 removes the problematic section of the docs; a proper fix would be to really fix it for python2/3 and/or newer sphinx, but I don't really have the time to look since I don't use the html docs (and suspect most don't).

2/2 fixes autotools/check-man-warnings script. The script currently discards stdout, then tries to grep and fails when it receives no input. It looks like this depended on sys-apps/man behavior, which didn't support --warnings, so stderr always had something to search. With sys-apps/man-db, --warnings is accepted, though none are produced, so the grep fails, even though the manpages themselves are fine.

With that, the package builds again for me.
Comment 6 Larry the Git Cow gentoo-dev 2020-05-06 01:02:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=835e0c9ecd4e407e6c917f87a09bde8757ae5e72

commit 835e0c9ecd4e407e6c917f87a09bde8757ae5e72
Author:     Austin English <austin.m.english@sony.com>
AuthorDate: 2020-05-02 05:06:11 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-05-06 01:02:07 +0000

    app-emulation/ganeti: remove old
    
    Closes: https://bugs.gentoo.org/719846
    Signed-off-by: Austin English <austin.m.english@sony.com>
    Closes: https://github.com/gentoo/gentoo/pull/15608
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 app-emulation/ganeti/ganeti-2.15.2-r9.ebuild | 383 ---------------------------
 1 file changed, 383 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3efea2940080e990146fe378af976cd13fe6885

commit b3efea2940080e990146fe378af976cd13fe6885
Author:     Austin English <austin.m.english@sony.com>
AuthorDate: 2020-05-02 03:40:32 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-05-06 01:02:06 +0000

    app-emulation/ganeti: add patches to fix building manpages/newer pyopenssl
    
    Closes: https://bugs.gentoo.org/719846
    Signed-off-by: Austin English <austin.m.english@sony.com>
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 .../files/ganeti-2.15.2-check-man-warnings.patch   |  13 +
 .../files/ganeti-2.15.2-ftbfs-sphinx-warning.patch |  41 +++
 .../ganeti/files/ganeti-2.15.2-pyopenssl.patch     |  33 ++
 app-emulation/ganeti/ganeti-2.15.2-r10.ebuild      | 386 +++++++++++++++++++++
 4 files changed, 473 insertions(+)