Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 695686 - app-admin/glance-2019.1.9999 USE=doc - OSError: [Errno 2] No such file or directory: 'doc/build/html/.'
Summary: app-admin/glance-2019.1.9999 USE=doc - OSError: [Errno 2] No such file or dir...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-26 16:42 UTC by Alessandro Barbieri
Modified: 2019-09-29 18:32 UTC (History)
1 user (show)

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


Attachments
glance-2019.1.9999:20190928-080652.log.xz (glance-2019.1.9999:20190928-080652.log.xz,24.29 KB, application/x-xz)
2019-09-28 08:19 UTC, Alessandro Barbieri
Details
glance-2019.1.9999:20190929-145731.log.xz (glance-2019.1.9999:20190929-145731.log.xz,21.27 KB, application/x-zx)
2019-09-29 15:04 UTC, Alessandro Barbieri
Details
glance-2019.1.9999:20190929-145731.log.xz (glance-2019.1.9999:20190929-145731.log.xz,21.27 KB, application/x-xz)
2019-09-29 15:04 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2019-09-26 16:42:56 UTC
/usr/lib/python3.7/site-packages/pbr/packaging.py:409: EasyInstallDeprecationWarning: Use get_header
  header = easy_install.get_script_header("", executable, is_wininst)
 * python3_7: running distutils-r1_run_phase python_install_all
Traceback (most recent call last):
  File "/usr/lib/portage/pypy/doins.py", line 611, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/lib/portage/pypy/doins.py", line 602, in main
    os.path.dirname(source)):
  File "/usr/lib/portage/pypy/doins.py", line 450, in _doins
    return install_runner.install_file(source, os.path.dirname(dest))
  File "/usr/lib/portage/pypy/doins.py", line 386, in install_file
    return self._ins_runner.run(source, dest_dir)
  File "/usr/lib/portage/pypy/doins.py", line 195, in run
    sstat = os.stat(source)
OSError: [Errno 2] No such file or directory: 'doc/build/html/.'
 * ERROR: app-admin/glance-2019.1.9999::gentoo failed (install phase):
 *   dodoc failed
Comment 1 Jeroen Roovers gentoo-dev 2019-09-28 05:41:55 UTC
Please attach the entire build log to this bug report.
Comment 2 Alessandro Barbieri 2019-09-28 08:11:24 UTC
Sorry, I'm trying to attach the log now (408 request timeout)
Comment 3 Alessandro Barbieri 2019-09-28 08:19:49 UTC
Created attachment 591196 [details]
glance-2019.1.9999:20190928-080652.log.xz

buildlog
Comment 4 Larry the Git Cow gentoo-dev 2019-09-28 17:56:03 UTC
The bug has been closed via the following commit(s):

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

commit 5509b98d17a202b7afca820fc9c8c6b768b34753
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2019-09-28 17:55:31 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2019-09-28 17:55:58 +0000

    app-admin/glance: git sources cannot build docs (missing files)
    
    Fixes: https://bugs.gentoo.org/695686
    
    Package-Manager: Portage-2.3.69, Repoman-2.3.17
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 app-admin/glance/glance-2019.1.9999.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Comment 5 Alessandro Barbieri 2019-09-29 15:03:40 UTC
Still fails with

 * python3_7: running distutils-r1_run_phase python_compile_all
running build_sphinx
[pbr] Writing ChangeLog
[pbr] Generating ChangeLog
[pbr] ChangeLog complete (0.4s)
[pbr] Generating AUTHORS
[pbr] AUTHORS complete (0.6s)
Running Sphinx v2.0.1

Configuration error:
There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/sphinx/config.py", line 361, in eval_config_file
    execfile_(filename, namespace)
  File "/usr/lib/python3.7/site-packages/sphinx/util/pycompat.py", line 86, in execfile_
    exec(code, _globals)
  File "/var/tmp/portage/app-admin/glance-2019.1.9999/work/glance-2019.1.9999/doc/source/conf.py", line 33, in <module>
    import openstackdocstheme
ModuleNotFoundError: No module named 'openstackdocstheme'

>>> Source compiled.

and

/usr/lib/python3.7/site-packages/pbr/packaging.py:409: EasyInstallDeprecationWarning: Use get_header
  header = easy_install.get_script_header("", executable, is_wininst)
 * python3_7: running distutils-r1_run_phase python_install_all
Traceback (most recent call last):
  File "/usr/lib/portage/pypy/doins.py", line 611, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/lib/portage/pypy/doins.py", line 602, in main
    os.path.dirname(source)):
  File "/usr/lib/portage/pypy/doins.py", line 450, in _doins
    return install_runner.install_file(source, os.path.dirname(dest))
  File "/usr/lib/portage/pypy/doins.py", line 386, in install_file
    return self._ins_runner.run(source, dest_dir)
  File "/usr/lib/portage/pypy/doins.py", line 195, in run
    sstat = os.stat(source)
OSError: [Errno 2] No such file or directory: 'doc/build/html/.'
 * ERROR: app-admin/glance-2019.1.9999::gentoo failed (install phase):
 *   dodoc failed
Comment 6 Alessandro Barbieri 2019-09-29 15:04:18 UTC
Created attachment 591242 [details]
glance-2019.1.9999:20190929-145731.log.xz

buildlog
Comment 7 Alessandro Barbieri 2019-09-29 15:04:58 UTC
Created attachment 591244 [details]
glance-2019.1.9999:20190929-145731.log.xz

buildlog
Comment 8 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-09-29 16:56:59 UTC
can yo confirm that you are using the ebuild version that includes the following?

if [ ! -z ${EGIT_BRANCH+x} ]; then
Comment 9 Alessandro Barbieri 2019-09-29 18:26:16 UTC
yes, contains this

python_compile_all() {
        if [ ! -z ${EGIT_BRANCH+x} ]; then
                use doc && "${PYTHON}" setup.py build_sphinx
        fi
}

I tried installing it with
ebuild /usr/portage/app-admin/glance/glance-2019.1.9999.ebuild clean install
Comment 10 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-09-29 18:32:08 UTC
might be better to just remove doc support going forward, it has it's own build process (and a ton of extra deps now) anyway.