Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618806 - sci-mathematics/geogebra-5.0.339.0_p20170308 with dev-java/gradle-bin-3.4.1: gradle command not found
Summary: sci-mathematics/geogebra-5.0.339.0_p20170308 with dev-java/gradle-bin-3.4.1: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Florian Schmaus
URL:
Whiteboard:
Keywords:
Depends on: 618832
Blocks:
  Show dependency tree
 
Reported: 2017-05-17 22:09 UTC by Kobboi
Modified: 2020-09-19 08:07 UTC (History)
11 users (show)

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 Kobboi 2017-05-17 22:09:48 UTC
Slotted gradle-bin does not seem to install a /usr/bin/gradle, only a /usr/bin/gradle-$VERSION, making this ebuild fail.

 * Package:    sci-mathematics/geogebra-5.0.339.0_p20170308
 * Repository: gentoo
 * Maintainer: amynka@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
/var/tmp/portage/sci-mathematics/geogebra-5.0.339.0_p20170308/temp/environment: line 2538: gradle: command not found
 * ERROR: sci-mathematics/geogebra-5.0.339.0_p20170308::gentoo failed (compile phase):
 *   Gradle build has failed.
 * 
 * Call stack:
 *     ebuild.sh, line 115:  Called src_compile
 *   environment, line 2538:  Called die
 * The specific snippet of code:
 *       gradle -g "${gradle_home}" --no-daemon --offline :desktop:installDist || die "Gradle build has failed."
Comment 1 Kobboi 2017-05-17 22:18:24 UTC
See also https://bugs.gentoo.org/show_bug.cgi?id=612176
Comment 2 Kobboi 2017-05-17 22:19:30 UTC
(so in my first comment, it's only the new gradle-bin that does not provide /usr/bin/gradle, and the old one got uninstalled due to a depclean).
Comment 3 Jonas Stein gentoo-dev 2017-05-18 18:08:09 UTC
We probably want to fix this in gradle, but the geogebra maintainer might be interested too, so I assign it to both package maintainers.
Comment 4 Florian Schmaus gentoo-dev 2017-05-19 08:21:25 UTC
Wee need app-eselect/eselect-gradle in tree (bug #618832), which would create and manage the /usr/bin/gradle symlink.
Comment 5 Santiago LD 2017-08-31 15:29:41 UTC
(In reply to Florian Schmaus from comment #4)
> Wee need app-eselect/eselect-gradle in tree (bug #618832), which would
> create and manage the /usr/bin/gradle symlink.

Hi, same issue here when installing app-misc/freeplane and gradle 3.4.1.

I solved it by writing a little eselect module, as you suggest (you can see it here https://gist.github.com/sldenazis/33e46f99afdad1f6dbbf9e4e52bd4513).

If it's right, I can create an ebuild for this eselect module and send a pull request, I think that it's necessary to generate new ebuilds to dev-java/gradle-bin too.
Comment 6 Amy Liffey gentoo-dev 2017-08-31 15:32:02 UTC
(In reply to Santiago LD from comment #5)
> (In reply to Florian Schmaus from comment #4)
> > Wee need app-eselect/eselect-gradle in tree (bug #618832), which would
> > create and manage the /usr/bin/gradle symlink.
> 
> Hi, same issue here when installing app-misc/freeplane and gradle 3.4.1.
> 
> I solved it by writing a little eselect module, as you suggest (you can see
> it here https://gist.github.com/sldenazis/33e46f99afdad1f6dbbf9e4e52bd4513).
> 
> If it's right, I can create an ebuild for this eselect module and send a
> pull request, I think that it's necessary to generate new ebuilds to
> dev-java/gradle-bin too.

@chainsaw, @flo@geekplace.eu, @java: Can we do something about it guys?
Comment 7 James Le Cuirot gentoo-dev 2017-08-31 15:39:00 UTC
I'm not a fan of calling eselected things from ebuilds without additional controls. What if the gradle version the user has selected is too old or too new? It's not guaranteed to match the DEPEND constraint.
Comment 8 Florian Schmaus gentoo-dev 2017-09-02 11:01:09 UTC
@Santiagi LD: There is a gradle-eselect in the Java overlay. I'm happy to maintain that in tree if a proxy maintainer steps up.

@chewi: I'm also pretty sure that this situation is not unique to gradle and that the gentooiomatic solution is to add a gradle.eclass which selects the proper gradle binary. Happy to help with designing and developing such a thing in case a gentoo dev is also willing to help me getting it in tree eventually (but I guess it would be sufficient to have it in the Java overlay for the time being)
Comment 9 Frank Hellmuth 2017-11-28 15:25:36 UTC
Any news on this bug? Is there at least a workaround?
Comment 10 email200202 2017-12-11 06:11:12 UTC
It seems that sci-mathematics/geogebra-5.0.339.0_p20170308 was updated to sci-mathematics/geogebra-5.0.339.0_p20170308-r1 with the same "gradle: command not found" bug!  

Guys, do you even try these ebuilds or read the bug reports before releasing new versions?
Comment 11 Amy Liffey gentoo-dev 2017-12-11 07:58:48 UTC
(In reply to email200202 from comment #10)
> It seems that sci-mathematics/geogebra-5.0.339.0_p20170308 was updated to
> sci-mathematics/geogebra-5.0.339.0_p20170308-r1 with the same "gradle:
> command not found" bug!  
> 
> Guys, do you even try these ebuilds or read the bug reports before releasing
> new versions?

Yes it works with old gradle.
Comment 12 Amy Liffey gentoo-dev 2017-12-11 08:02:23 UTC
(In reply to email200202 from comment #10)
> It seems that sci-mathematics/geogebra-5.0.339.0_p20170308 was updated to
> sci-mathematics/geogebra-5.0.339.0_p20170308-r1 with the same "gradle:
> command not found" bug!  
> 
> Guys, do you even try these ebuilds or read the bug reports before releasing
> new versions?

The thing is that java people renamed new gradle to gradle-3.4.1 if you install also the old version it will work for you.. I am working on the fix.

You can also make symlink for now.
Comment 13 email200202 2018-08-30 14:58:49 UTC
After downgrading gradle or making the symlink, the build failed with the message:
"Could not open terminal for stdout: Could not get termcap entry"

The problem can be fixed by uninstalling sys-libs/ncurses:5 and the application(s) which is using it in my case dev-util/android-studio.
Comment 14 Luis Ferreira 2019-02-14 16:51:57 UTC
>>> Unpacking source...
>>> Unpacking geogebra-5.0.339.0_p20170308.tar.gz to /var/tmp/portage/sci-mathematics/geogebra-5.0.339.0_p20170308-r1/work
>>> Source unpacked in /var/tmp/portage/sci-mathematics/geogebra-5.0.339.0_p20170308-r1/work
>>> Preparing source in /var/tmp/portage/sci-mathematics/geogebra-5.0.339.0_p20170308-r1/work/geogebra-7d5ac993d3f88f6701f56edbfe325d86afcaad87 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-mathematics/geogebra-5.0.339.0_p20170308-r1/work/geogebra-7d5ac993d3f88f6701f56edbfe325d86afcaad87 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-mathematics/geogebra-5.0.339.0_p20170308-r1/work/geogebra-7d5ac993d3f88f6701f56edbfe325d86afcaad87 ...
/var/tmp/portage/sci-mathematics/geogebra-5.0.339.0_p20170308-r1/temp/environment: line 4280: gradle: command not found
 * ERROR: sci-mathematics/geogebra-5.0.339.0_p20170308-r1::gentoo failed (compile phase):
 *   Gradle build has failed.
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 4280:  Called die
 * The specific snippet of code:
 *       gradle -g "${gradle_home}" --no-daemon --offline :desktop:installDist || die "Gradle build has failed."
 * 
 * If you need support, post the output of `emerge --info '=sci-mathematics/geogebra-5.0.339.0_p20170308-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-mathematics/geogebra-5.0.339.0_p20170308-r1::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=oracle-jdk-bin-1.8  CLASSPATH="" JAVA_HOME="/opt/oracle-jdk-bin-1.8.0.202"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
and of course, the output of emerge --info =geogebra-5.0.339.0_p20170308
 * The complete build log is located at '/var/tmp/sci-mathematics:geogebra-5.0.339.0_p20170308-r1:20190214-164106.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sci-mathematics/geogebra-5.0.339.0_p20170308-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-mathematics/geogebra-5.0.339.0_p20170308-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-mathematics/geogebra-5.0.339.0_p20170308-r1/work/geogebra-7d5ac993d3f88f6701f56edbfe325d86afcaad87'
 * S: '/var/tmp/portage/sci-mathematics/geogebra-5.0.339.0_p20170308-r1/work/geogebra-7d5ac993d3f88f6701f56edbfe325d86afcaad87/'
Comment 15 artbody 2019-03-21 11:48:35 UTC
>>> Failed to emerge sci-mathematics/geogebra-5.0.339.0_p20170308-r1, Log file:

>>>  '/var/tmp/portage/sci-mathematics/geogebra-5.0.339.0_p20170308-r1/temp/build.log'

 * Messages for package sci-mathematics/geogebra-5.0.339.0_p20170308-r1:

 * ERROR: sci-mathematics/geogebra-5.0.339.0_p20170308-r1::gentoo failed (compile phase):
 *   Gradle build has failed.
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 4333:  Called die
 * The specific snippet of code:
 *       gradle -g "${gradle_home}" --no-daemon --offline :desktop:installDist || die "Gradle build has failed."

2 Years ???
Comment 16 artbody 2019-03-21 12:33:40 UTC
i downloaded the Debian package for GeoGebra Classic 6

unpacked it
unpacked data.tar.xz

then you could start 
./geogebra-classic_6.0.529.0-201903080041_1_amd64/data/usr/share/geogebra-classic/GeoGebra
OUT OF THE BOX !!!
without errors or strange messages

where is the problem for gentoo maintainers ??
Comment 17 Thomas Capricelli 2019-06-21 14:43:35 UTC
Please, can someone do something about it ? either have gradle package install a gradle bin/symlink, or convince geogebra to use gradle-xxxx !??
Comment 18 Thomas Capricelli 2020-03-30 16:03:18 UTC
and it keeps on hurting..
Comment 19 Larry the Git Cow gentoo-dev 2020-09-19 08:07:00 UTC
The bug has been closed via the following commit(s):

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

commit 90984c758eee77ebd0a16554517c768e8cfa3b72
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-09-18 22:32:22 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-09-19 08:05:25 +0000

    sci-mathematics/geogebra: remove last rited pkg
    
    please use sci-mathematics/geogebra-bin instead
    
    Bug: https://bugs.gentoo.org/719076
    Bug: https://bugs.gentoo.org/681828
    Closes: https://bugs.gentoo.org/644968
    Closes: https://bugs.gentoo.org/715474
    Closes: https://bugs.gentoo.org/618806
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 sci-mathematics/geogebra/Manifest                  | 223 --------------
 .../geogebra-5.0.339.0_p20170308-r1.ebuild         | 339 ---------------------
 sci-mathematics/geogebra/metadata.xml              |  17 --
 3 files changed, 579 deletions(-)