Package Details: freenet 0.7.5.1497-1

Git Clone URL: https://aur.archlinux.org/freenet.git (read-only, click to copy)
Package Base: freenet
Description: A peer-to-peer platform for censorship-resistant communication and publishing
Upstream URL: https://freenetproject.org
Keywords: anonymous censorship encrypted freenet network
Licenses: GPL2
Submitter: Xemertix
Maintainer: Thynix
Last Packager: skydrome
Votes: 183
Popularity: 0.185407
First Submitted: 2009-04-17 16:46 (UTC)
Last Updated: 2023-03-05 00:21 (UTC)

Dependencies (7)

Required by (0)

Sources (8)

Pinned Comments

amanvg commented on 2020-10-13 08:32 (UTC)

if you are having issues with the key, run this command:

curl -sS https://freenetproject.org/assets/keyring.gpg | gpg --import -

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 18 Next › Last »

HiJack88 commented on 2019-03-03 20:11 (UTC)

Hi all,

unfortunatey i keep getting a build error.

snipp:

==> Starting build()... ==> Building Freenet...

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine java version from '11.0.2'.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org ==> ERROR: A failure occurred in build(). Aborting...


I'm using Antergos Linux with KDE Plasma v5 with all lates updates. My computer is a Lenovo ThinkPad T510 with 8 GB RAM and 512 GB SSD by Samsung.

All further dependencies (java-service-wrapper, java-hamcrest, junit) are already installed.

Can you tell me what i'm doing wrong?

Regards

Thynix commented on 2019-01-20 10:18 (UTC) (edited on 2019-01-20 10:23 (UTC) by Thynix)

I've applied your patch, 14mRh4X0r. Thanks!

I was hoping to figure out a way to use the pre-built jar, as it's a reproducible build, but the build also downloads the dependency jars the package uses, so that'd be a bigger task.

I feel I should also mention what security settings are in place for the wrapper. As set by fred/gradle/wrapper/wrapper.properties the distribution is downloaded over HTTPS and distributionSha256Sum is set so if the checksum is wrong it'll fail the build. The official checksum list is https://gradle.org/release-checksums/, and the build uses 4.2.1 as of this writing.

Thynix commented on 2019-01-20 09:54 (UTC)

The reason the build fails with Gradle 5 is that Witness - the Gradle plugin the build uses to verify dependencies after fetching them - uses a deprecated function that was finally removed in Gradle 5.

14mRh4X0r commented on 2019-01-07 15:34 (UTC)

Using the gradle wrapper in the repo makes sure the build always works. However, this does download the specified gradle version from gradle.org.

diff --git a/PKGBUILD b/PKGBUILD
index 27b71ba..ee78f0c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,7 +22,7 @@ license=('GPL2')
 arch=('i686' 'x86_64')
 install='freenet.install'
 depends=('java-runtime>=8' 'gmp' 'java-service-wrapper')
-makedepends=('java-environment>=8' 'apache-ant' 'gradle' 'git' 'java-hamcrest' 'zip')
+makedepends=('java-environment>=8' 'apache-ant' 'git' 'java-hamcrest' 'zip')
 checkdepends=('junit')
 backup=('opt/freenet/wrapper.config'
         'opt/freenet/conf/freenet.ini')
@@ -70,7 +70,7 @@ build() {
     export GRADLE_OPTS="-Dfile.encoding=UTF-8"

     msg "Building Freenet..."
-    gradle copyRuntimeLibs
+    ./gradlew copyRuntimeLibs

     build_plugins
 }
@@ -97,7 +97,7 @@ check() {

     # these tests use alot of memory and can cause OOM's
     rm -f test/freenet/client/async/{*Storage,ClientRequestSelector}Test.java
-    gradle test
+    ./gradlew test
 }

 package() {

tydynrain commented on 2019-01-01 21:04 (UTC)

I got the same build error as klore when trying to build 1483. jihem's suggestion of downgrading to gradle 4.10.2 fixed the issue for me as well.

klore commented on 2018-12-30 19:18 (UTC)

jihem: Downgrading gradle working, thank you

jihem commented on 2018-12-28 14:16 (UTC)

klore: I was able to fix this bug by downgrading the package gradle to 4.10.2.

I think the maintainer should replace the dependency gradle with gradle4.

klore commented on 2018-12-24 15:08 (UTC)

hi, i can't compile 2018-12-24

FAILURE: Build failed with an exception.

  • Where: Build file '/tmp/yaourt-tmp-user/aur-freenet/src/fred/build.gradle' line: 16

  • What went wrong: A problem occurred evaluating root project 'fred'.

    Failed to apply plugin [id 'witness'] Could not find method leftShift() for arguments [org.whispersystems.witness.WitnessPlugin$_apply_closure4@23766c12] on task ':calculateChecksums' of type org.gradle.api.DefaultTask.

  • 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 20s

skydrome commented on 2018-10-11 04:27 (UTC)

I was using a custom version of apache-ant and didnt see they change updated their package. Thanks, its good now.

tydynrain commented on 2018-10-11 03:01 (UTC) (edited on 2018-10-11 03:11 (UTC) by tydynrain)

I just tried to build the latest version (0.7.5.1481-2), and it went successfully until it stopped with this, using my aursync repo:

/home/tydynrain/.cache/aursync/freenet/PKGBUILD: line 79: /etc/profile.d/apache-ant.sh: No such file or directory