Package Details: geogebra-5 5.0.718.0-1

Git Clone URL: https://aur.archlinux.org/geogebra-5.git (read-only, click to copy)
Package Base: geogebra-5
Description: Dynamic mathematics software with interactive graphics, algebra and spreadsheet
Upstream URL: https://www.geogebra.org/
Licenses: GPL3, CCPL:by-sa, CCPL:by-nc
Conflicts: geogebra
Provides: geogebra
Submitter: z3ntu
Maintainer: xiretza
Last Packager: xiretza
Votes: 21
Popularity: 0.67
First Submitted: 2018-02-12 13:00 (UTC)
Last Updated: 2022-06-28 15:15 (UTC)

Dependencies (3)

Required by (0)

Sources (5)

Latest Comments

xiretza commented on 2022-04-15 16:20 (UTC)

Thanks!

ccorn commented on 2022-04-13 21:56 (UTC) (edited on 2022-04-13 21:56 (UTC) by ccorn)

Now that JRE 18 is out, properly greping for 8 needs the -w option:

--- a/geogebra
+++ b/geogebra
@@ -25,14 +25,14 @@ if test ! -z "${JAVA_HOME}"; then
 fi

 # check current environment
-if archlinux-java status | grep "default" | grep -q "${GG_JAVA_VERSION}"; then
+if archlinux-java status | grep "default" | grep -qw "${GG_JAVA_VERSION}"; then
     # required java version is set to default, do nothing
     echo "Using system enabled java environment" >&2
     run_gg "$@"
 fi

 # find valid environment
-GG_JAVA_ENV="$(archlinux-java status | grep "${GG_JAVA_VERSION}" | awk '{ print $1 }')"
+GG_JAVA_ENV="$(archlinux-java status | grep -w "${GG_JAVA_VERSION}" | awk '{ print $1 }')"
 # for some env it returns like java-8-openjdk/jre
 GG_JAVA_ENV="${GG_JAVA_ENV%/*}"
 export PATH="/usr/lib/jvm/${GG_JAVA_ENV}/jre/bin/:${PATH}"

Besides, in my checkout of the PKGBUILD, I version the depends on java-runtime=8 because running with anything else works superficially but with flaws that grow worse over time. Today I ran it with the JRE 18 because of the unrefined grep, and I got subtle redraw errors.

andean_engineer commented on 2021-11-14 17:15 (UTC)

Please, is it feasible to install GeoGebra 6 of the Arch Community repo simultaneously with this AUR 5 version?

Definitively, I prefer GeoGebra 5. However, some graphics tasks require the use of the 6 version. Now, I use the official Linux portable version. Nevertheless, I would prefer to install the package to get auto-updating.

HoolaBoola commented on 2021-09-01 12:05 (UTC)

@xiretza I found a solution. It was due to Wayland, Java GUIs seem to not like it very much.

The solution was to run the app with

_JAVA_AWT_WM_NONREPARENTING=1 geogebra

Found the solution in this archwiki article

xiretza commented on 2021-09-01 11:36 (UTC)

Hmm, can't reproduce - works fine for me, and my log is exactly the same.

HoolaBoola commented on 2021-09-01 11:09 (UTC) (edited on 2021-09-01 12:01 (UTC) by HoolaBoola)

EDIT: solution above

Launching the app after installing it only opens to a blank window

The log file doesn't seem to help much

Sep 01, 2021 2:03:14 PM  
STDOUT: DEBUG: org.geogebra.common.m.A.G[-1]: Number of registered views = 1
 * class org.geogebra.desktop.geogebra3D.b.b
Sep 01, 2021 2:03:14 PM  
STDOUT: DEBUG: org.geogebra.desktop.j.q.a[-1]: <?xml version="1.0" encoding="utf-8"?><geogebra format="5.0" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><gui><window width="800" height="600" /><settings ignoreDocument="false" showTitleBar="true" /><labelingStyle val="0"/><font  size="16"/><menuFont size="-1"/><tooltipSettings language="" timeout="0"/></gui><euclidianView><size width="640" height="480"/><coordSystem xZero="215.0" yZero="315.0" scale="50.0" yscale="50.0"/><evSettings axes="true" grid="true" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" checkboxSize="26" gridType="3"/><bgColor r="255" g="255" b="255"/><axesColor r="0" g="0" b="0"/><gridColor r="192" g="192" b="192"/><lineStyle axes="1" grid="0"/><axis id="0" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true" axisCross="0.0" positiveAxis="false"/><axis id="1" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true" axisCross="0.0" positiveAxis="false"/></euclidianView><euclidianView3D>
    <coordSystem xZero="0.0" yZero="0.0" zZero="-1.5" scale="50.0" xAngle="20.0" zAngle="-60.0"/>
    <evSettings axes="true" grid="false" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" gridType="3"/>
    <axis id="0" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
    <axis id="1" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
    <axis id="2" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
    <plate show="true"/>
    <bgColor r="255" g="255" b="255"/>
    <clipping use="false" show="false" size="1"/>
    <projection type="0"/>
</euclidianView3D><kernel><continuous val="false"/><decimals val="2"/><angleUnit val="degree"/><algebraStyle val="3"/><coordStyle val="0"/><localization digits="false" labels="true"/><angleFromInvTrig val="false"/><casSettings timeout="5" expRoots="true"/></kernel><algebraView><mode val="3"/></algebraView><scripting blocked="false"/></geogebra>
Sep 01, 2021 2:03:14 PM  
STDOUT: DEBUG: org.geogebra.desktop.j.a.aU[-1]: Waiting for the initialization: 0
Sep 01, 2021 2:03:14 PM  
STDOUT: DEBUG: org.geogebra.desktop.j.a$a.run[-1]: Thread[compute,5,main] running
Sep 01, 2021 2:03:14 PM  
STDOUT: DEBUG: org.geogebra.common.b.c.a.a[-1]: SingularWS connection disabled by command line option
Sep 01, 2021 2:03:14 PM  
STDOUT: INFO: org.geogebra.common.n.b.s[-1]: No SingularWS is available at http://singularws.idm.jku.at/ (yet)
Sep 01, 2021 2:03:14 PM  
STDOUT: DEBUG: org.geogebra.common.i.h.a[-1]: CAS support: true
Sep 01, 2021 2:03:14 PM  
STDOUT: DEBUG: org.geogebra.desktop.j.p.b[-1]: problem with getting GGT...
Sep 01, 2021 2:03:14 PM  
STDOUT: DEBUG: org.geogebra.common.m.A.G[-1]: Number of registered views = 2
 * class org.geogebra.desktop.geogebra3D.b.b
 * class org.geogebra.desktop.gui.m.a.l
Sep 01, 2021 2:03:14 PM  
STDOUT: DEBUG: org.geogebra.common.m.A.G[-1]: Number of registered views = 3
 * class org.geogebra.desktop.geogebra3D.b.b
 * class org.geogebra.desktop.gui.m.a.l
 * class org.geogebra.common.plugin.b
Sep 01, 2021 2:03:14 PM  
STDOUT: WARN: org.geogebra.desktop.j.a.n[-1]: Option versionCheckAllow not recognized : 
Sep 01, 2021 2:03:14 PM  
STDOUT: INFO: org.geogebra.desktop.j.q.a[-1]: No system preferences
Sep 01, 2021 2:03:14 PM  
STDERR: ERROR: org.geogebra.desktop.gui.i.R.a[-1]: JavaFX 2.2 not available
Sep 01, 2021 2:03:15 PM  
STDERR: ERROR: org.geogebra.desktop.gui.i.R.a[-1]: JavaFX 2.2 not available
Sep 01, 2021 2:03:15 PM  
STDOUT: DEBUG: org.geogebra.desktop.gui.i.R.b[-1]: update menu
Sep 01, 2021 2:03:15 PM  
STDOUT: DEBUG: org.geogebra.desktop.gui.a.a$a.b[-1]: Checking version
Sep 01, 2021 2:03:15 PM  
STDOUT: DEBUG: org.geogebra.desktop.gui.a.a$a.b[-1]: Version check is not allowed

medmedin commented on 2021-04-17 20:13 (UTC)

@xiretza why the package doesn't extract the embedded jre8 and uses it by default ?

code_xpert commented on 2021-03-31 09:38 (UTC)

Can't seem to log in with Google. The buttons on the page to enter your email won't do anything.

andean_engineer commented on 2021-01-28 00:21 (UTC) (edited on 2021-03-28 14:16 (UTC) by andean_engineer)

EDIT: Now, I can get the base 64 with the AUR version with CTRL + SHIFT + B. Sometimes, it doesn't work. Then, I select any object in the Graphics Area and hit again CTRL + SHIFT + B: the base 64 code comes to the clipboard.


Please, how could I get the base 64 of an applet? Frequently, the shortcut CTRL + SHIFT + B makes this task. However, with my windows manager (i3-gaps), it doesn't work. The portable version of the official site of GeoGebra seems to work fine.

I've tried some online conversion tools. However, my Internet connection is no good.

Arch Linux (Linux kernel: 5.4.92-1-lts) + i3-gaps (4.19-1).

ccorn commented on 2020-10-21 10:18 (UTC)

I am not fluent with Java tools, but the gluegen build instructions seem to require specification of the target JRE version for their ant build command. Presumably, Geogebra's gluegen build has been made for JRE 8.

ccorn commented on 2020-10-21 08:09 (UTC)

It is true that jre8 needs to be installed (it need not be the default, the geogebra wrapper script takes care of selecting the right version) for some Geogebra functions to work. I never use those functions however.

Example: Start with a later JRE than 8 and try to switch to 3D mode. Console output:

$ archlinux-java status
Available Java environments:
  java-11-openjdk (default)
  java-8-openjdk/jre
$ /usr/share/geogebra/geogebra
GeoGebra 5.0.609.0 06 October 2020 Java 11.0.8-64bit

9:50:49.858 DEBUG: org.geogebra.desktop.j.a.<init>[-1]: isApplet=false runningFromJar=true
9:50:49.858 DEBUG: org.geogebra.desktop.j.a.aD[-1]: Setting up logging
9:50:49.877 DEBUG: org.geogebra.desktop.j.a.aD[-1]: Logging is redirected to /tmp/GeoGebraLog_lbpcnlakjp.txt
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/usr/share/geogebra/gluegen-rt.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Please consider reporting this to the maintainers of com.jogamp.common.os.NativeLibrary$3
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Inconsistency detected by ld.so: dl-lookup.c: 105: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!

There is clearly a bug somewhere. For the time being, I would recommend to just add java-runtime=8 to depends. In particular, I would not like to have a binary blob installed that has no benefits over any of Arch Linux's jre8-* packages.

medmedin commented on 2020-10-13 15:29 (UTC)

@xiretza with java 14 or 15, when you finish your drawing then right click on mouse to select the zone to be exported, the selection doesn't work with those jres, but with jre 8 it works perfectly.

xiretza commented on 2020-10-13 13:06 (UTC)

@medmedin: can you show some examples of those broken functions? I have not had any problems related to the of java version.

medmedin commented on 2020-10-13 09:42 (UTC)

@xiretza geogebra 5 needs jre 8 because with recent jre versions like 14 and 15 some functions are not working at all.

medmedin commented on 2020-10-13 09:38 (UTC)

The portable install zip this script downloads contains both the app and jre suitable for running it which is version 8, but the install script only installs the app without its jre which will causes problems for the app if started with recent jre versions. The install script should install both the app and its needed jre.

medmedin commented on 2020-08-13 11:14 (UTC)

The downloaded zipped package contains also the JRE that the software should be run with, but with this PKGBUILD it installs only Geogebra files and ignore the embedded JRE. The software should be run with the embedded JRE to avoid compatibility problems. After installing this package, I don't find Geogebra JRE inside /usr/lib/jvm/.

andean_engineer commented on 2020-08-07 14:57 (UTC) (edited on 2020-12-07 08:55 (UTC) by andean_engineer)

Edit (2020-12-06): Hi. I have installed today the last version 5.0-619, after several weeks without trying (I had been using the portable version). The new version is working really fine.


Hi. I am facing the following issue:

  • The right button doesn't work with the objects in the Algebra View (it makes nothing). It happens with every object.

I have tried other possible shortcuts, with no much success:

  • Application key (≣ Menu) in the Algebra View: with some objects it works, with other objects it doesn't work. However, I have seen this behavior in the portable version too. I don't have checked the same applet in other distros.

  • Right button in the Graphics View: it seems to work fine always. However, for a good navigating, it's needed this feature for the Algebra View too.

  • Edit menu, option Object Properties: it seems to work fine always.

Please, do you have any workaround to fix this issue?

I have only a few weeks as an ArchLinux user...

The portable version of GeoGebra 5 works fine on my computer (https://download.geogebra.org/package/linux-port)

ArchLinux; linux kernel: 5.7.12; GeoGebra 5.0.593.0-d; windows manager: i3-gaps 4.18.2-1

xiretza commented on 2020-05-23 13:20 (UTC)

Of course! I don't use a graphical file manager, so I never even noticed. Thanks for the patch.

etaboon commented on 2020-05-23 13:12 (UTC)

Would it be possible for a next update to insert this line in geogebra-mime.xml:

<generic-icon name="geogebra"/>

in order to have geogebra's files show in file managers with the app icon instead of the default anonymous one ?

$ diff geogebra-mime.xml geogebra-mime-plus.xml
11a12
>                <generic-icon name="geogebra"/>
23a25
>                <generic-icon name="geogebra"/>

xiretza commented on 2020-01-12 17:17 (UTC)

@ccorn: thanks, applied.

ccorn commented on 2020-01-12 03:08 (UTC)

The runscript does not pass arguments, so you cannot open *.ggb files in a desktop environment. Fix:

diff --git a/PKGBUILD b/PKGBUILD
index a18e2c8..2cda743 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,7 +24,7 @@ source=("https://download.geogebra.org/installers/5.0/GeoGebra-Linux-Portable-${

 sha512sums=('d37de7f34c39f279b7a796a841cebb5edb2d5531fb81de78f327cf6a38f80f6e3e8d31894641393aa7d19dc63f259b41ee5ce8492a3ed1e1f747d21e0538b71f'
             'a946acb8867f497c68ce6f8fff8172da4a43a9ca118aafcc5ac414318fd52c4bc6ada387bdfa296f0ff2e1d7411ae345b61197b4adaa3f54299aab837647df55'
-            'f5d6f3fe17638f4521b0a00d6d077a5c509984bd8f7cb39c28e412b7384ec129c6595400e7ae4cb5ba05f1673eb46d8f6c56db1b4145afb35797a1d0a170965d'
+            '65f49cc85ee450e52c7ba8d2f9222a64a81571630afee032c4b680dea35e3c48e5e96d60148bd25163b3e3bdf1b99e55fb8ec010a7f3a47a64ad3b957a232f7b'
             '64954e749dcd8a9233a932718a4722aab5dfcde868d93998b64f79d54e51c2c34b545665f191f041455f1e945fa46b273417089981d6dff8ed8256519f7e8ae6'
             '415e73ff15524d5e81b05cf4c31241f4e21a4eedcef0a11e5af82423f9a7c2cbf632e9ee1e86b4cc60ebc566472462979a65cb7f3cfc9f94243fb545ac042a0f')

diff --git a/geogebra b/geogebra
index eb41e11..82f36b9 100644
--- a/geogebra
+++ b/geogebra
@@ -16,7 +16,7 @@ if test ! -z "${JAVA_HOME}"; then
     if test "${JAVA_HOME#*$GG_JAVA_VERSION}" != "${JAVA_HOME}"; then
         # system environment variable set to required, do nothing
         echo "Using java environment from JAVA_HOME: ${JAVA_HOME}" >&2
-        run_gg
+        run_gg "$@"
     else
         # unset JAVA_HOME
         echo "Unset JAVA_HOME for this run: ${JAVA_HOME}" >&2
@@ -28,7 +28,7 @@ fi
 if archlinux-java status | grep "default" | grep -q "${GG_JAVA_VERSION}"; then
     # required java version is set to default, do nothing
     echo "Using system enabled java environment" >&2
-    run_gg
+    run_gg "$@"
 fi

 # find valid environment
@@ -37,4 +37,4 @@ GG_JAVA_ENV="$(archlinux-java status | grep "${GG_JAVA_VERSION}" | awk '{ print
 GG_JAVA_ENV="${GG_JAVA_ENV%/*}"
 export PATH="/usr/lib/jvm/${GG_JAVA_ENV}/jre/bin/:${PATH}"
 echo "Run with exported ${GG_JAVA_ENV}" >&2
-run_gg
+run_gg "$@"

xiretza commented on 2019-12-09 16:23 (UTC)

@mar04: you're right, changed that.

mar04 commented on 2019-12-09 14:35 (UTC)

Any reason why Java 8 is required? Seems to work fine for me with Java 13.

niklashh commented on 2019-03-05 20:44 (UTC)

The package fails to download the source, i.e it's out of date.

xiretza commented on 2018-11-11 11:26 (UTC)

@Morguldir: feel free to create an -svn package. Then I'll rename this one to -bin as well, but right now that isn't worth the hassle I think.

morguldir commented on 2018-11-10 00:34 (UTC)

Why is this not made from source?

Available at https://dev.geogebra.org/svn/trunk/geogebra/ and https://github.com/geogebra/geogebra

xiretza commented on 2018-11-02 21:14 (UTC)

@updater1234: if you want to use 6.x, just install geogebra from community. This package is called geogebra-5 for a reason: quite a few people think that the new 6.x HTML5/electron/JS app is utter crap and would rather use the "classic" 5.x program.

updater1234 commented on 2018-11-02 14:38 (UTC)

geogebra-6 has been released. please update it. https://wiki.geogebra.org/en/Reference:GeoGebra_Installation#Other_GeoGebra_Classic_6_versions

fyr77 commented on 2018-09-12 07:37 (UTC) (edited on 2018-09-12 09:40 (UTC) by fyr77)

Or even better: change the line "pkgver=5.0.486.0" in PKGBUILD to

pkgver=$(wget https://download.geogebra.org/installers/5.0/version.txt -q -O -)

This will always get the newest version, if this is possible.

fyr77 commented on 2018-09-12 07:22 (UTC)

Please update the package source to https://download.geogebra.org/installers/5.0/GeoGebra-Linux-Portable-5-0-491-0.tar.bz2

hmpl commented on 2018-07-18 16:15 (UTC)

The link from which geogebra is downloaded has expired. I get the following error: ERROR: Failure while downloading https://download.geogebra.org/installers/5.0/GeoGebra-Linux-Portable-5-0-470-0.tar.bz2

A fix would be wonderful! Thanks.

fyr77 commented on 2018-05-05 16:23 (UTC)

One of the maintainers could set up a watcher for https://download.geogebra.org/installers/5.0/version.txt with something like wachete, so they're notified if there is a new version. Just an idea.

morguldir commented on 2018-05-04 20:52 (UTC)

The download for the current version is dead already, could you update to:

https://download.geogebra.org/installers/5.0/GeoGebra-Linux-Portable-5-0-462-0.tar.bz2

sha512sum:

bd3ea308798414d395a1399a90c7847238c11a37339109a568f2bc090dd51122eed38dad7b06403990c7f33bcf7d30bf93536aaba5482defb1ec435dbec64b45

fyr77 commented on 2018-04-26 08:08 (UTC)

There is a newer version of the Linux portable archive available. Would it be possible to change the source to https://download.geogebra.org/installers/5.0/GeoGebra-Linux-Portable-5-0-458-0.tar.bz2 ?

arcanis commented on 2018-03-19 13:43 (UTC)

I wasn't able to find reference to gendesk, but iirc at some point we tried to remove all *.desktop files from official repositories and use gendesk instead.

z3ntu commented on 2018-02-26 11:12 (UTC)

Yeah it's gendesk. I think it's a bad idea doing that in the build process compared to just generating it once and putting it in the sources, but I didn't really modify the PKGBUILD from what I pulled from the repos.

xiretza commented on 2018-02-26 11:03 (UTC) (edited on 2018-02-26 11:13 (UTC) by xiretza)

Sure, I'd co-maintain.

By the way, where does geogebra.desktop come from? Somehow I managed to build the package, including the .desktop, a few days ago, but I don't actually know how since the only reference to the .desktop is in install(), with nothing in source=. Now it doesn't build anymore, as expected.

Edit: nvm, there's a gendesk. Doesn't seem to work correctly though, I'll have a look.

Edit 2: pacaur is broken and installs makedepends after prepare(). That's what you get for using unmaintained software.

z3ntu commented on 2018-02-23 16:44 (UTC)

If anyone wants to be co-maintainer (as there are multiple updates per week), just write a comment :)