Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835923 - app-text/calibre requires dev-qt/qtchooser to build: FileNotFoundError: [Errno 2] No such file or directory: 'qmake'
Summary: app-text/calibre requires dev-qt/qtchooser to build: FileNotFoundError: [Errn...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL: https://archives.gentoo.org/gentoo-de...
Whiteboard:
Keywords:
Depends on:
Blocks: qtbindir
  Show dependency tree
 
Reported: 2022-03-24 13:22 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2022-03-25 03:45 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2022-03-24 13:22:37 UTC
>>> Compiling source in /var/tmp/portage/portage/app-text/calibre-5.39.1/work/calibre-5.39.1 ...

*
* Running build
*

Traceback (most recent call last):
  File "/var/tmp/portage/portage/app-text/calibre-5.39.1/work/calibre-5.39.1/setup.py", line 119, in <module>
    sys.exit(main())
  File "/var/tmp/portage/portage/app-text/calibre-5.39.1/work/calibre-5.39.1/setup.py", line 104, in main
    command.run_all(opts)
  File "/var/tmp/portage/portage/app-text/calibre-5.39.1/work/calibre-5.39.1/setup/__init__.py", line 232, in run_all
    self.run_cmd(self, opts)
  File "/var/tmp/portage/portage/app-text/calibre-5.39.1/work/calibre-5.39.1/setup/__init__.py", line 226, in run_cmd
    cmd.run(opts)
  File "/var/tmp/portage/portage/app-text/calibre-5.39.1/work/calibre-5.39.1/setup/build.py", line 309, in run
    self.env = init_env(debug=opts.debug)
  File "/var/tmp/portage/portage/app-text/calibre-5.39.1/work/calibre-5.39.1/setup/build.py", line 182, in init_env
    from setup.build_environment import win_ld, is64bit, win_inc, win_lib, NMAKE, win_cc
  File "/var/tmp/portage/portage/app-text/calibre-5.39.1/work/calibre-5.39.1/setup/build_environment.py", line 107, in <module>
    qraw = subprocess.check_output([QMAKE, '-query']).decode('utf-8')
  File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.9/subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'qmake'
 * ERROR: app-text/calibre-5.39.1::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 127:  Called src_compile
 *   environment, line 2490:  Called die
 * The specific snippet of code:
 *       PATH="${T}/bin:${PATH}" ${EPYTHON} setup.py build || die
 *
 * If you need support, post the output of `emerge --info '=app-text/calibre-5.39.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/calibre-5.39.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/portage/app-text/calibre-5.39.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/portage/app-text/calibre-5.39.1/temp/environment'.
 * Working directory: '/var/tmp/portage/portage/app-text/calibre-5.39.1/work/calibre-5.39.1'
 * S: '/var/tmp/portage/portage/app-text/calibre-5.39.1/work/calibre-5.39.1'

 * Messages for package app-text/calibre-5.39.1:

 * ERROR: app-text/calibre-5.39.1::gentoo failed (compile phase):
Comment 1 Andreas Sturmlechner gentoo-dev 2022-03-24 13:29:00 UTC
However: Do *not* depend on dev-qt/qtchooser. Fix the build system.
Comment 2 Larry the Git Cow gentoo-dev 2022-03-25 03:45:54 UTC
The bug has been closed via the following commit(s):

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

commit 91a277f56ef8f48d9a2c8f5e399930964da28cac
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2022-03-25 03:39:07 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2022-03-25 03:45:50 +0000

    app-text/calibre: use qt5_get_bindir
    
    Closes: https://bugs.gentoo.org/835923
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 app-text/calibre/calibre-5.16.1-r1.ebuild | 6 +++---
 app-text/calibre/calibre-5.39.1.ebuild    | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)