Package Details: ganttproject 3.2.3240-1

Git Clone URL: https://aur.archlinux.org/ganttproject.git (read-only, click to copy)
Package Base: ganttproject
Description: A project scheduling application featuring gantt chart, resource management, calendaring.
Upstream URL: https://www.ganttproject.biz/
Keywords: gantt planning project
Licenses: GPL
Submitter: None
Maintainer: SanskritFritz (lightspot21)
Last Packager: SanskritFritz
Votes: 140
Popularity: 0.059340
First Submitted: 2006-03-22 19:20 (UTC)
Last Updated: 2022-05-23 15:10 (UTC)

Latest Comments

furai commented on 2022-05-22 14:43 (UTC) (edited on 2022-05-22 14:44 (UTC) by furai)

The patch in previous comment assumes that latest Java is 17 and that one uses it as default Java version. I've amended it so it works regardless of default Java set and use version 17 explicitly.

diff --git a/PKGBUILD b/PKGBUILD
index 0cae84c..14322c6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,23 +6,23 @@
 # Original Author: David Fuhr <david.fuhr@web.de>

 pkgname=ganttproject
-_version=3.1
-_build=3100
+_version=3.2
+_build=3240
 pkgver=$_version.$_build
 pkgrel=1
 pkgdesc="A project scheduling application featuring gantt chart, resource management, calendaring."
 arch=('i686' 'x86_64')
 url="https://www.ganttproject.biz/"
 license=("GPL")
-depends=('jre11-openjdk' 'java11-openjfx' 'hicolor-icon-theme')
+depends=('jre17-openjdk' 'java17-openjfx' 'hicolor-icon-theme')
 makedepends=('unzip')
 source=("https://dl.ganttproject.biz/$pkgname-$pkgver/$pkgname-$pkgver.zip"
    "ganttproject.desktop")

 prepare() {
    # add JavaFX path to startup script
-   sed -i '/^BOOT_CLASS/ aJFX_ARGS="--module-path \/usr\/lib\/jvm\/java-11-openjfx\/lib\/ --add-modules=ALL-MODULE-PATH"' $srcdir/ganttproject-$pkgver/ganttproject
-   sed -i '/^JAVA_ARGS/ s/$DEBUG_ARGS/$DEBUG_ARGS $JFX_ARGS/' $srcdir/ganttproject-$pkgver/ganttproject
+   sed -i '/^BOOT_CLASS/ aJFX_ARGS="--module-path /usr/lib/jvm/java-17-openjdk/lib/javafx.base.jar:/usr/lib/jvm/java-17-openjdk/lib/javafx.controls.jar:/usr/lib/jvm/java-17-openjdk/lib/javafx.graphics.jar:/usr/lib/jvm/java-17-openjdk/lib/javafx-swt.jar:/usr/lib/jvm/java-17-openjdk/lib/javafx.fxml.jar:/usr/lib/jvm/java-17-openjdk/lib/javafx.media.jar:/usr/lib/jvm/java-17-openjdk/lib/javafx.swing.jar:/usr/lib/jvm/java-17-openjdk/lib/javafx.web.jar --add-modules javafx.base,javafx.controls,javafx.graphics,javafx.swt,javafx.fxml,javafx.media,javafx.swing,javafx.web"' $srcdir/ganttproject-$pkgver/ganttproject
+   sed -i '/^"$JAVA_COMMAND"/ s/$DEBUG_ARGS/$DEBUG_ARGS $JFX_ARGS/' $srcdir/ganttproject-$pkgver/ganttproject
 }

 package() {
@@ -36,5 +36,5 @@ package() {
    ln -s "/opt/$pkgname/ganttproject" "$pkgdir/usr/bin/ganttproject"
 }

-sha256sums=('4e7ea4b8ea50f41afef868b5c080e2ab7cfa28deda890f0a831dfd1717460a6d'
-           '7f80539115a2ffa518516671596b7e35659d46c91ac39133cc5accda9dec3862')
\ No newline at end of file
+sha256sums=('38dbddaf4c55ff7731e3a061dde9a8b38236789409ee3b5ab8228d96688748bd'
+           '5772f09f449c2e46bb130e861f3492b55e29b388391917af5dbccb813bd91e8d')
diff --git a/ganttproject.desktop b/ganttproject.desktop
index e6110e3..7e65245 100644
--- a/ganttproject.desktop
+++ b/ganttproject.desktop
@@ -2,7 +2,7 @@
 Name=Ganttproject
 Comment=GanttProject is a project scheduling application featuring gantt chart, resource management, calendaring
 Icon=ganttproject
-Exec=/opt/ganttproject/ganttproject %F
+Exec=/opt/ganttproject/ganttproject -j /usr/lib/jvm/java-17-openjdk %F
 Terminal=false
 Type=Application
 Categories=Application;Office;

troytjh commented on 2022-02-26 07:02 (UTC) (edited on 2022-02-26 07:06 (UTC) by troytjh)

This seemed to work for version 3.2

diff --git a/PKGBUILD b/PKGBUILD
index 0cae84c..80b0c02 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,23 +6,23 @@
 # Original Author: David Fuhr <david.fuhr@web.de>

 pkgname=ganttproject
-_version=3.1
-_build=3100
+_version=3.2
+_build=3200
 pkgver=$_version.$_build
 pkgrel=1
 pkgdesc="A project scheduling application featuring gantt chart, resource management, calendaring."
 arch=('i686' 'x86_64')
 url="https://www.ganttproject.biz/"
 license=("GPL")
-depends=('jre11-openjdk' 'java11-openjfx' 'hicolor-icon-theme')
+depends=('jre-openjdk' 'java-openjfx' 'hicolor-icon-theme')
 makedepends=('unzip')
 source=("https://dl.ganttproject.biz/$pkgname-$pkgver/$pkgname-$pkgver.zip"
        "ganttproject.desktop")

 prepare() {
        # add JavaFX path to startup script
-       sed -i '/^BOOT_CLASS/ aJFX_ARGS="--module-path \/usr\/lib\/jvm\/java-11-openjfx\/lib\/ --add-modules=ALL-MODULE-PATH"' $srcdir/ganttproject-$pkgver/ganttproject
-       sed -i '/^JAVA_ARGS/ s/$DEBUG_ARGS/$DEBUG_ARGS $JFX_ARGS/' $srcdir/ganttproject-$pkgver/ganttproject
+       sed -i '/^BOOT_CLASS/ aJFX_ARGS="--module-path \/usr\/lib\/jvm\/default\/lib\/javafx.base.jar:\/usr\/lib\/jvm\/default\/lib\/javafx.controls.jar:\/usr\/lib\/jvm\/default\/lib\/javafx.graphics.jar:\/usr\/lib\/jvm\/default\/lib\/javafx-swt.jar:\/usr\/lib\/jvm\/default\/lib\/javafx.fxml.jar:\/usr\/lib\/jvm\/default\/lib\/javafx.media.jar:\/usr\/lib\/jvm\/default\/lib\/javafx.swing.jar:\/usr\/lib\/jvm\/default\/lib\/javafx.web.jar --add-modules=javafx.base,javafx.controls,javafx.graphics,javafx.swt,javafx.fxml,javafx.media,javafx.swing,javafx.web"' $srcdir/ganttproject-$pkgver/ganttproject
+       sed -i '/^\"$JAVA_COMMAND\"/ s/$DEBUG_ARGS/$DEBUG_ARGS $JFX_ARGS/' $srcdir/ganttproject-$pkgver/ganttproject
 }

 package() {
@@ -36,5 +36,5 @@ package() {
        ln -s "/opt/$pkgname/ganttproject" "$pkgdir/usr/bin/ganttproject"
 }

-sha256sums=('4e7ea4b8ea50f41afef868b5c080e2ab7cfa28deda890f0a831dfd1717460a6d'
-                       '7f80539115a2ffa518516671596b7e35659d46c91ac39133cc5accda9dec3862')
\ No newline at end of file
+sha256sums=('2774ff53d5823d72569ac03761edb164cf44d31365eda80cfb17bce3cebc86a7'
+            '7f80539115a2ffa518516671596b7e35659d46c91ac39133cc5accda9dec3862')

aromaparanoia commented on 2021-10-15 21:35 (UTC)

Version 3.1.3100 also fails for me. A java process is launched, but there is no UI displayed. Version 3.0.3000 appears to work.

birnenwerfer commented on 2021-08-12 20:34 (UTC)

Hey guys, the program doesn’t start at all after updating everything. If I start it from the terminal I only get some messages about skipped directories, mostly heading to font directories. Do anyone have an idea what the problem is? I also tried modifying the build files as @mynacol described in his post from February.

lightspot21 commented on 2021-06-02 09:58 (UTC)

@riazufila Try again now, I have pushed a new version.

riazufila commented on 2021-05-01 12:16 (UTC) (edited on 2021-05-01 12:19 (UTC) by riazufila)

Why when I try to open a .gan file from an existing GanttProject window, the window to Open Project (Project > Open > Open Other Project) is literally blank white? Anyone know?

gok commented on 2021-02-22 10:41 (UTC)

Thanks @lightspot21 & @SanskritFritz for maintaining this PKGBUILD. For security reasons, would you consider switching to HTTPS in the source field, and to SHA256 for integrity check? (as MD5 and SHA1 are not considered secure algorithms anymore, and upstream does not seem to provide any official checksums anyway) Thanks :-)

SanskritFritz commented on 2021-02-21 15:49 (UTC)

Thanks guys for helping out with this!

lightspot21 commented on 2021-02-20 22:47 (UTC)

@mynacol I'd like to, but what stops me from going to Java 15 or later is that the app as it currently stands needs to have $JAVA_HOME/lib passed in the module path, along with the JavaFX module names. But passing the aforementioned path in the module path and attempting to run results in a LayerInstantiationError, which I found that it's caused due to passing $JAVA_HOME/lib in the first place. If you can help with this, I'm happy to do the necessary changes.

mynacol commented on 2021-02-20 11:23 (UTC)

Thanks, @lightspot21 for the patch supporting the new version. Before updating, please consider changing the java dependencies to more generic ones. According to the official website, Java Runtime 11+ is needed. So no hard dependency on java 11. In summary you could change: jre11-openjdk -> java-runtime>=11 java-openjfx=11 -> java-openjfx>=11

SanskritFritz commented on 2021-02-16 11:08 (UTC)

Could you please do it, I don't use this software. Maybe I should orphan it, but I want to keep it in shape for others. Now this change is beyond my knowledge, so if you don't mind I added you as a co-maintainer.

lightspot21 commented on 2021-02-15 22:25 (UTC) (edited on 2021-02-15 22:28 (UTC) by lightspot21)

@SanskritFritz Hello, this package is now out of date, latest version is 3.0.3000 as of this comment. In the meantime, I have updated the PKGBUILD to include proper dependencies.

Please apply this patch: https://gist.github.com/lightspot21/804e9fde09b46e8653ce1aa4ae67187c

SanskritFritz commented on 2020-01-25 21:18 (UTC)

@founderio Thank you, great contribution!

founderio commented on 2020-01-25 19:43 (UTC)

Hi, this package uses a hardcoded icon path - which prevents icon themes from replacing the icon with a themed variant.

Please apply this patch to fix that: https://gist.github.com/founderio/120eea6f29cb28cff160121c2acd3263

SanskritFritz commented on 2019-02-11 21:04 (UTC) (edited on 2019-02-11 21:04 (UTC) by SanskritFritz)

OK, https://standards.freedesktop.org/desktop-entry-spec/latest/ar01s07.html says

"Field codes must not be used inside a quoted argument, the result of field code expansion inside a quoted argument is undefined."

So I'll remove the quotes now.

bertof commented on 2019-02-11 15:17 (UTC) (edited on 2019-02-11 15:20 (UTC) by bertof)

Can't launch the program from gnome shell.

Changing in the .desktop file from Exec=/opt/ganttproject/ganttproject "%F" to Exec=/opt/ganttproject/ganttproject %F works for me.

Looking at the desktop specification the " seem unnecessary, but I might be wrong.

brasas commented on 2018-11-30 15:00 (UTC)

Minor point, when editing /opt/ganttproject/ganttproject as suggested, do not include the double quote in front of sh...:

sh -c "$JAVA_COMMAND $JAVA_ARGS $@"

biker commented on 2018-10-28 18:00 (UTC)

Hi miuque, starting java with cmd "sh -c "$JAVA_COMMAND $JAVA_ARGS $@" in /opt/ganttproject line 72-77 should solve your issue.

mluque commented on 2018-10-22 13:44 (UTC)

I've installed GanttProject, but in Gnome 3.30, when I click on the corresponding icon the program does not start. I always have to launch GanttProject from the terminal to use it.

SanskritFritz commented on 2018-06-11 21:28 (UTC)

craeckie Thanks, good idea!

craeckie commented on 2018-06-11 15:41 (UTC) (edited on 2018-06-11 15:51 (UTC) by craeckie)

Hi, please apply this patch so that we can open files with ganttproject using a file browser: https://gist.github.com/d50fea3c03cc6092066525902b387401

SanskritFritz commented on 2017-05-06 09:10 (UTC)

tinxy very nice idea, thanks!

tinxy commented on 2017-05-05 10:35 (UTC)

Hi Fritz, please add something like the following line into your PKGBUILD to fix the missing icon: sed -i "s|2\.8\.3|$pkgver|g" ganttproject.desktop

SanskritFritz commented on 2017-05-04 17:57 (UTC)

Yes, thanks for the heads-up.

tinxy commented on 2017-05-04 17:15 (UTC)

I see that you use ganttproject.biz as download server. You might wanna change upstream url accordingly.

SanskritFritz commented on 2016-02-05 14:55 (UTC)

Thanks for the heads-up. Updated the package.

Nadzinator commented on 2016-02-05 13:07 (UTC) (edited on 2016-02-05 13:26 (UTC) by Nadzinator)

I got the following error when trying to build the package: ==> ERROR: license should be an array In the PKGBUILD, the license line was written: license="GPL" Changing the line to the following removed the error, and I was able to build the package succesfully: license=('GPL') I'm sorry if I made any mistakes in etiquette on this post, or if this is not the right place for it. I'm a linux beginner, and this is my first post.

SanskritFritz commented on 2015-03-02 12:33 (UTC)

It works well here: INFO: Searching for plugins in /opt/ganttproject/plugins Try upstream for a solution.

jro commented on 2015-03-02 11:17 (UTC)

fails to start, among other, I see the messages INFORMATION: Searching for plugins in /home/[user]/plugins and SEVERE: No plugins found on the console. Of course, looking for plugins in the user's home directory seems bogus. When I first cd to /opt/ganttproject it starts just fine.

SanskritFritz commented on 2014-04-09 07:25 (UTC)

DaveCode thanks. The Arch packaging standards page you refer to clearly states: Package files should follow these general directory guidelines: /opt/{pkg} Large self-contained packages such as Java, etc. See also https://wiki.archlinux.org/index.php/Java_Package_Guidelines

DaveCode commented on 2014-04-09 04:08 (UTC)

Thanks for this tool. See my notes on /opt under https://aur.archlinux.org/packages/trelby/

SanskritFritz commented on 2014-01-28 14:56 (UTC)

Will do, thanks.

zertyz commented on 2014-01-28 14:54 (UTC)

Please update

dkorzhevin commented on 2013-09-05 12:30 (UTC)

Works great! Thanks!

SanskritFritz commented on 2013-05-07 14:10 (UTC)

Adopted and updated.

fukawi2 commented on 2013-04-11 03:49 (UTC)

Also, usage of $startdir is deprecated and breaks building in chroots. Please update.

fukawi2 commented on 2013-04-11 03:47 (UTC)

==> WARNING: Using a PKGBUILD without a package() function is deprecated.

guoxh commented on 2012-08-21 08:26 (UTC)

md5sums for 2.2.5-r1256: f8b134d1455d73db95a9cf1d0b662eda

Philzli commented on 2012-04-04 09:57 (UTC)

here's mine - http://pastebin.com/D92bQgQC

Philzli commented on 2012-04-04 09:53 (UTC)

Could you maybe run it through namcap and fix the errors?

zertyz commented on 2012-03-19 15:14 (UTC)

Adopted and updated.

rcoit commented on 2012-03-13 17:25 (UTC)

Zertyz If you check you will see that df has orphaned this package. So I do not think he is willing to update it. Also if you check you will see that df has only one other active package in AUR and the has not been updated since 2007. Is there any chance you would be willing to take it over? Thanks Ron

zertyz commented on 2012-03-12 19:07 (UTC)

hi df! would you please consider updating your package to the new release 2.5? You may find useful to base your PKGBUILD on the package "ganttproject-beta-r888" which was based on yours, but with some fixes and adjustments for the 2.5 beta version. cheers, Luiz.

elmurato commented on 2012-01-22 13:19 (UTC)

Thank you for this package, but I found a problem: After installing /opt/ganttproject/ganttproject.sh was not executable. After running chmod +x everything was fine. Maybe this is a problem with the installer?

commented on 2011-07-12 15:56 (UTC)

Equivalent binaries can be found within the package itself, under: <package-root>/plugins/net.sourceforge.ganttproject_2.0.0/data/resources/logos/ icon16.png icon24.png icon32.png icon48.png icon64.png FYI

commented on 2010-12-06 03:11 (UTC)

I found some issues with your tarball. Binaries are usually frowned upon. Take for example: ganttproject/ganttproject16.png ganttproject/ganttproject32.png ganttproject/ganttproject64.png ganttproject/ganttproject96.png Try to find sources for the binaries instead of embedding them. Thank you.

haagch commented on 2010-06-15 11:17 (UTC)

How about a starter in /usr/bin? ln -s /opt/ganttproject/bin/ganttproject /usr/bin/ganttproject ln -s /opt/ganttproject/bin/ganttproject ${pkgdir}/usr/bin/ganttproject or something