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."
See also https://bugs.gentoo.org/show_bug.cgi?id=612176
(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).
We probably want to fix this in gradle, but the geogebra maintainer might be interested too, so I assign it to both package maintainers.
Wee need app-eselect/eselect-gradle in tree (bug #618832), which would create and manage the /usr/bin/gradle symlink.
(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.
(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?
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.
@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)
Any news on this bug? Is there at least a workaround?
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?
(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.
(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.
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.
>>> 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/'
>>> 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 ???
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 ??
Please, can someone do something about it ? either have gradle package install a gradle bin/symlink, or convince geogebra to use gradle-xxxx !??
and it keeps on hurting..
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(-)