Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 789375 - dev-util/cmake-3.20.2: src_install broken with >=dev-python/sphinx-4.0.0
Summary: dev-util/cmake-3.20.2: src_install broken with >=dev-python/sphinx-4.0.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: PATCH
Depends on: 806490
Blocks: 789531
  Show dependency tree
 
Reported: 2021-05-10 22:56 UTC by Ulrich Müller
Modified: 2021-08-05 10:17 UTC (History)
4 users (show)

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


Attachments
build.log of cmake-3.20.2 (build.log,509.96 KB, text/plain)
2021-05-10 22:56 UTC, Ulrich Müller
Details
emerge --info (emerge-info.txt,8.55 KB, text/plain)
2021-05-10 22:57 UTC, Ulrich Müller
Details
Patch for cmake-3.20.2 (cmake-3.20.2-sphinx.patch,319 bytes, patch)
2021-05-11 21:14 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2021-05-10 22:56:22 UTC
Install the project...
-- Install configuration: "Gentoo"
-- Installing: /tmp/portage/dev-util/cmake-3.20.2/image/usr/share/doc/cmake-3.20.2/cmsys/Copyright.txt
-- Installing: /tmp/portage/dev-util/cmake-3.20.2/image/usr/bin/ccmake
-- Installing: /tmp/portage/dev-util/cmake-3.20.2/image/usr/bin/cmake
-- Installing: /tmp/portage/dev-util/cmake-3.20.2/image/usr/bin/ctest
-- Installing: /tmp/portage/dev-util/cmake-3.20.2/image/usr/bin/cpack
-- Installing: /tmp/portage/dev-util/cmake-3.20.2/image/usr/share/cmake/include/cmCPluginAPI.h
CMake Error at Utilities/Sphinx/cmake_install.cmake:46 (file):
  file INSTALL cannot find
  "/tmp/portage/dev-util/cmake-3.20.2/work/cmake-3.20.2_build/Utilities/Sphinx/man/ccmake.1":
  No such file or directory.
Call Stack (most recent call first):
  Utilities/cmake_install.cmake:52 (include)
  cmake_install.cmake:67 (include)


make: *** [Makefile:125: install] Error 1
 * ERROR: dev-util/cmake-3.20.2::gentoo failed (install phase):
 *   emake failed

It is working fine with sphinx-3.5.4.
Comment 1 Ulrich Müller gentoo-dev 2021-05-10 22:56:59 UTC
Created attachment 706854 [details]
build.log of cmake-3.20.2
Comment 2 Ulrich Müller gentoo-dev 2021-05-10 22:57:32 UTC
Created attachment 706857 [details]
emerge --info
Comment 3 Ulrich Müller gentoo-dev 2021-05-11 08:44:42 UTC
Looks like the man pages are now generated in Utilities/Sphinx/man/1/ but the build system expects them in Utilities/Sphinx/man/.
Comment 4 Ionen Wolkens gentoo-dev 2021-05-11 09:45:34 UTC
Seems to affect qemu-6.0.0[doc] as well (RuntimeError: File 'docs/qemu-qmp-ref.7' could not be found), is it a sphinx issue or something packages need to start fixing?
Comment 5 Ulrich Müller gentoo-dev 2021-05-11 21:11:56 UTC
(In reply to Ionen Wolkens from comment #4)
> Seems to affect qemu-6.0.0[doc] as well (RuntimeError: File
> 'docs/qemu-qmp-ref.7' could not be found), is it a sphinx issue or something
> packages need to start fixing?

I presume it is the latter. The CHANGES file of sphinx-4.0.1 has this entry, under "Incompatible changes" in version 4.0.0b1:

* #7996: manpage: Make a section directory on build manpage by default (see
  :confval:`man_make_section_directory`)
Comment 6 Ulrich Müller gentoo-dev 2021-05-11 21:14:56 UTC
Created attachment 707202 [details, diff]
Patch for cmake-3.20.2

Attached one-line patch fixes the problem for me.

Should we use this bug for cmake, or convert it to a tracker for packages broken with >=sphinx-4.0.0?
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-11 21:16:51 UTC
(In reply to Ulrich Müller from comment #6)
> Created attachment 707202 [details, diff] [details, diff]
> Patch for cmake-3.20.2
> 
> Attached one-line patch fixes the problem for me.
> 
> Should we use this bug for cmake, or convert it to a tracker for packages
> broken with >=sphinx-4.0.0?

I'll file a tracker.
Comment 8 Larry the Git Cow gentoo-dev 2021-05-14 18:22:49 UTC
The bug has been closed via the following commit(s):

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

commit 6296367630f611bfbdcb389afd9e13141dcaa1d8
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-05-14 18:17:10 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-05-14 18:22:30 +0000

    dev-util/cmake: Fix IUSE=doc with >=dev-python/sphinx-4.0.0
    
    Closes: https://bugs.gentoo.org/789375
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-util/cmake/cmake-3.20.2.ebuild               |  1 +
 dev-util/cmake/files/cmake-3.20.2-sphinx-4.patch | 29 ++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
Comment 9 Andreas Sturmlechner gentoo-dev 2021-08-05 09:51:42 UTC
*** Bug 806318 has been marked as a duplicate of this bug. ***