Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 847244

Summary: media-gfx/engauge-12.1 calls commands that do not exist, fails to build
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Andreas K. Hüttel <dilfridge>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 764452, 877333    
Bug Blocks: 544108    
Attachments: build.log.xz
build log

Description Agostino Sarubbo gentoo-dev 2022-05-24 10:57:35 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-gfx/engauge-12.1 calls commands that do not exist.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
Please look for 'command not found' and/or 'no such file or directory'.
Comment 1 Agostino Sarubbo gentoo-dev 2022-05-24 10:57:38 UTC
Created attachment 780530 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2022-05-24 10:57:39 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


 * 	./build_qt5_12_0.bash: line 11: qmake: command not found
 * QA Notice: command not found:
./build_qt5_12_0.bash: /usr/share/bashdb/bashdb-main.inc: No such file or directory
./build_qt5_12_0.bash: line 11: qmake: command not found
FileNotFoundError: [Errno 2] No such file or directory: b'bin/documentation/engauge.qch'
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2022-10-12 10:56:14 UTC
>>> Source compiled.
>>> Test phase [not enabled]: media-gfx/engauge-12.1

>>> Install media-gfx/engauge-12.1 into /tmp/portage/media-gfx/engauge-12.1/image
Traceback (most recent call last):
  File "/usr/lib/portage/python3.10/doins.py", line 609, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/lib/portage/python3.10/doins.py", line 598, in main
    if _doins(
  File "/usr/lib/portage/python3.10/doins.py", line 441, in _doins
    return install_runner.install_file(source, os.path.dirname(dest))
  File "/usr/lib/portage/python3.10/doins.py", line 375, in install_file
    return self._ins_runner.run(source, dest_dir)
  File "/usr/lib/portage/python3.10/doins.py", line 183, in run
    sstat = os.stat(source)
FileNotFoundError: [Errno 2] No such file or directory: b'bin/documentation/engauge.qch'
 * ERROR: media-gfx/engauge-12.1::gentoo failed (install phase):
 *   dodoc failed
 * 
 * If you need support, post the output of `emerge --info '=media-gfx/engauge-12.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/engauge-12.1::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/media-gfx/engauge-12.1:20221012-104902.log.gz'.
 * For convenience, a symlink to the build log is located at '/tmp/portage/media-gfx/engauge-12.1/temp/build.log.gz'.
 * The ebuild environment file is located at '/tmp/portage/media-gfx/engauge-12.1/temp/environment'.
 * Working directory: '/tmp/portage/media-gfx/engauge-12.1/work/engauge-digitizer-12.1'
 * S: '/tmp/portage/media-gfx/engauge-12.1/work/engauge-digitizer-12.1'
 * QA Notice: command not found:
 * 
 *      ./build_qt5_12_0.bash: line 11: qmake: command not found

 * Messages for package media-gfx/engauge-12.1:
 * Log file: /var/log/portage/build/media-gfx/engauge-12.1:20221012-104902.log.gz

 * ERROR: media-gfx/engauge-12.1::gentoo failed (install phase):
 *   dodoc failed
 * 
 * If you need support, post the output of `emerge --info '=media-gfx/engauge-12.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/engauge-12.1::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/media-gfx/engauge-12.1:20221012-104902.log.gz'.
 * For convenience, a symlink to the build log is located at '/tmp/portage/media-gfx/engauge-12.1/temp/build.log.gz'.
 * The ebuild environment file is located at '/tmp/portage/media-gfx/engauge-12.1/temp/environment'.
 * Working directory: '/tmp/portage/media-gfx/engauge-12.1/work/engauge-digitizer-12.1'
 * S: '/tmp/portage/media-gfx/engauge-12.1/work/engauge-digitizer-12.1'
 * 
 * The following package has failed to build, install, or execute postinst:
 * 
 *  (media-gfx/engauge-12.1:0/0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/log/portage/build/media-gfx/engauge-12.1:20221012-104902.log.gz'
 *
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2022-10-12 10:57:22 UTC
Created attachment 823707 [details]
build log
Comment 5 Andreas Sturmlechner gentoo-dev 2022-10-16 14:08:23 UTC
Needs qmake-utils and qt5_get_bindir to inject path for qmake.
Comment 6 Andreas Sturmlechner gentoo-dev 2022-10-16 14:27:09 UTC
Actually it is easier to just completely ignore that script and generate the qch file ourselves in the ebuild. Unversioned call to qmake is only used to query version information for way outdated Qt versions...
Comment 7 Larry the Git Cow gentoo-dev 2022-10-16 14:28:43 UTC
The bug has been closed via the following commit(s):

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

commit 3d7418c0a4913d81e601b1fb50cd32e072ea4453
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2022-10-16 14:26:47 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2022-10-16 14:28:31 +0000

    media-gfx/engauge: Fix src_install by generating engauge.qch in ebuild
    
    Closes: https://bugs.gentoo.org/655372
    Closes: https://bugs.gentoo.org/764452
    Closes: https://bugs.gentoo.org/847244
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-gfx/engauge/engauge-12.1.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)