Package Details: freerouting 1.9.0-2

Git Clone URL: https://aur.archlinux.org/freerouting.git (read-only, click to copy)
Package Base: freerouting
Description: Advanced PCB autorouter
Upstream URL: https://github.com/freerouting/freerouting
Keywords: autorouting pcb pcb-design routing
Licenses: GPL-3.0-only
Submitter: dviktor
Maintainer: mrrb (Misaka13514)
Last Packager: Misaka13514
Votes: 7
Popularity: 0.87
First Submitted: 2020-04-11 16:14 (UTC)
Last Updated: 2024-01-18 14:29 (UTC)

Dependencies (3)

Required by (0)

Sources (3)

Pinned Comments

mrrb commented on 2022-10-23 14:25 (UTC) (edited on 2023-11-01 09:42 (UTC) by mrrb)

NO LONGER NEEDED! Thanks, @Misaka13514 !


Don't forget to set active JDK to version 17 before running makepkg:

$ sudo archlinux-java set java-17-openjdk

Latest Comments

1 2 Next › Last »

Misaka13514 commented on 2023-10-16 16:16 (UTC) (edited on 2023-11-01 00:57 (UTC) by Misaka13514)

diff --git a/PKGBUILD b/PKGBUILD
index 900d48b..353c25a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,28 +3,28 @@
 # Contributor: Daniel Plank <tyrolyean@semi-professional.net>

 pkgname=freerouting
-pkgver=1.8.0
+pkgver=1.9.0
+_jrever=17
+_jdkver=17
 pkgrel=1
 pkgdesc="Advanced PCB autorouter"
-arch=('i686' 'x86_64')
+arch=('any')
 url="https://github.com/freerouting/freerouting"
 license=('GPL3')
-depends=('jre17-openjdk>=17')
-makedepends=('jdk17-openjdk>=17' git)
+depends=("java-runtime=${_jrever}")
+makedepends=("java-environment-openjdk=${_jdkver}")
 optdepends=('kicad: for use with PCB editor')
-source=("https://github.com/${pkgname}/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
         "freerouting.sh"
         "freerouting.desktop")
-sha512sums=('18110b33815d115966e5688a6b6869e07b75611773285ca1173b241cd7766b03a628365f5dc96fc24a7734f901b94faae176519e161b1b6efdd8852b9f274e14'
-            '0a43367f8a9168a94176041f665dbc278b40fcc7a6e6d5c978fcd49081245e030e7b9524056e6fa5acf593d744dd58c25d6d8303b7b2ea6128f6016d05aa28ef'
+sha512sums=('ed51eeaaa1315b3fb4311f4f0a74e64266492b2a8e6aff69179911e31b8c612825c7783228a0dddc8f06fc92962f426ccb7f6305d8ff7537a0009f82841a8ab0'
+            '3ff1a906c3f02e0e0077599cfad8082fa11c8b321e90b3e466b70969b44c4675ac6df6b898fda4d2b17d9f263787d319dab6c836a37b1ff4737f715730819ce3'
             '1eeacc544cd6081a9cef03424e505177972c65dc13d1379989889c0ed7419ed1b76013d48d160d0b74932aec1170ca1535b103f4266024b7f35e9656a11281f5')

 build() {
-  echo "$(tput setaf 196)$(tput bold)Don't forget to set active JDK to 17 version before running makepkg:"
-  echo "  sudo archlinux-java set java-17-openjdk$(tput sgr0)"
-
   cd "${pkgname}-${pkgver}"

+  export PATH="/usr/lib/jvm/java-${_jdkver}-openjdk/bin:$PATH"
   ./gradlew assemble
 }

diff --git a/freerouting.sh b/freerouting.sh
index fa77acf..d508b1d 100755
--- a/freerouting.sh
+++ b/freerouting.sh
@@ -1,5 +1,6 @@
 #!/usr/bin/bash

+export PATH="/usr/lib/jvm/java-17-openjdk/bin/:$PATH"
 java -jar /usr/lib/freerouting/freerouting-executable.jar "$@"

 exit 0

mrrb commented on 2022-11-14 22:59 (UTC) (edited on 2022-11-14 22:59 (UTC) by mrrb)

@dreieck

It seems that you need to use java 17 to correctly build the package (maybe you are running java 19?). $ archlinux-java get && sudo archlinux-java set java-17-openjdk

About gradle, freerouting uses a gradle wrapper (gradlew) to reliably build it, thus, the correct version is automatically downloaded.

BTW, I have tested the system gradle version (v7.5.1), and It seems to work, but I think that it is better to use the version the package is designed for.

Regards!

dreieck commented on 2022-11-14 08:38 (UTC)

If the specific https://services.gradle.org/distributions/gradle-7.3-bin.zip is needed (and not thje gradle from Arch Linux can be used via the makedepends array):

Can you then download it via the source-array, please?

If this really is not possible, can you make sure everything needed to build the package is present when build() starts, i.e. use prepare()?

Regards!

dreieck commented on 2022-11-14 08:36 (UTC)

build() fails for me:

==> Starting build()...
Downloading https://services.gradle.org/distributions/gradle-7.3-bin.zip
...........10%...........20%...........30%...........40%...........50%...........60%...........70%...........80%...........90%...........100%

Welcome to Gradle 7.3!

Here are the highlights of this release:
[...]

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* Where:
Settings file '/home/felics/.cache/yay/freerouting/src/freerouting-1.6.2/settings.gradle'

* What went wrong:
Could not compile settings file '/home/felics/.cache/yay/freerouting/src/freerouting-1.6.2/settings.gradle'.
> startup failed:
  General error during conversion: Unsupported class file major version 63

  java.lang.IllegalArgumentException: Unsupported class file major version 63
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:199)
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:180)
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166)
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:287)
        at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:81)
[...]
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
        at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:61)
        at java.base/java.lang.Thread.run(Thread.java:1589)

  1 error


* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 1s
==> ERROR: A failure occurred in build().

Regards!

mrrb commented on 2022-10-23 14:25 (UTC) (edited on 2023-11-01 09:42 (UTC) by mrrb)

NO LONGER NEEDED! Thanks, @Misaka13514 !


Don't forget to set active JDK to version 17 before running makepkg:

$ sudo archlinux-java set java-17-openjdk

mrrb commented on 2022-10-23 14:22 (UTC)

Since version 1.6.0, freerouting needs Java >= 17

hatred commented on 2022-06-01 03:31 (UTC)

Is it possible to point JAVA dependency as java-runtime-openjdk>=11 instead of jre11-openjdk>=11? Same for build dependency but for jdk: java-environment-openjdk>=11

I have jre-openjdk/jdk-openjdk installed that exports version 18 that compatible with Freerouting, but system now requires two JAVA packages installed.

CSC commented on 2020-05-11 08:40 (UTC)

Thanks a lot. :-)

dviktor commented on 2020-05-11 08:08 (UTC)

@icewind should be working now

@CSC done

dviktor commented on 2020-05-11 08:07 (UTC)

Don't forget to set active JDK to 11 version before running makepkg:

$ sudo archlinux-java set java-11-openjdk