Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591142 - java-utils-2 - java-pkg_die has incomplete error message of "emerge --info =${P}" when ${CATEGORY}/${PF} should be used
Summary: java-utils-2 - java-pkg_die has incomplete error message of "emerge --info =$...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2016-08-12 20:38 UTC by eroen
Modified: 2024-06-14 10:00 UTC (History)
1 user (show)

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


Attachments
Proposed patch (0001-java-utils-2-Fix-command-in-error-message.patch,903 bytes, patch)
2016-08-12 20:42 UTC, eroen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2016-08-12 20:38:33 UTC
When failing compile, packages using java-utils-2.eclass print messages like the one below, which lists an incorrect (or at least suboptimal) `emerge --info ...` command.


 * ERROR: app-emulation/virtualbox-5.0.16-r1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-5.0.16-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-5.0.16-r1::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/app-emulation/virtualbox-5.0.16-r1:20160812-202337.log'.
 * For convenience, a symlink to the build log is located at '/tmp/portage/app-emulation/virtualbox-5.0.16-r1/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/app-emulation/virtualbox-5.0.16-r1/temp/environment'.
 * Working directory: '/tmp/portage/app-emulation/virtualbox-5.0.16-r1/work/VirtualBox-5.0.16'
 * S: '/tmp/portage/app-emulation/virtualbox-5.0.16-r1/work/VirtualBox-5.0.16'
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =virtualbox-5.0.16
Comment 1 eroen 2016-08-12 20:42:29 UTC
Created attachment 443170 [details, diff]
Proposed patch

Replaces $P with $CATEGORY/$PF in the error message.
Comment 2 Larry the Git Cow gentoo-dev 2024-06-14 10:00:27 UTC
The bug has been closed via the following commit(s):

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

commit a065e86dbe3e86803ae1f656b86ee0278ab4b835
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-02-13 07:32:45 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-06-14 10:00:10 +0000

    java-utils-2.eclass: improve message of java-pkg_die
    
    Closes: https://bugs.gentoo.org/591142
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 eclass/java-utils-2.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)