Package Details: freenet 0.7.5.1483-2

Git Clone URL: https://aur.archlinux.org/freenet.git (read-only)
Package Base: freenet
Description: An encrypted network without censorship
Upstream URL: https://freenetproject.org
Keywords: anonymous censorship encrypted freenet network
Licenses: GPL2
Submitter: Xemertix
Maintainer: Thynix (skydrome)
Last Packager: Thynix
Votes: 176
Popularity: 0.060172
First Submitted: 2009-04-17 16:46
Last Updated: 2019-01-20 10:17

Required by (1)

Sources (11)

Latest Comments

1 2 3 4 5 6 ... Next › Last »

Thynix commented on 2019-01-20 10:18

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

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

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

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

jihem: Downgrading gradle working, thank you

jihem commented on 2018-12-28 14:16

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

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

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

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

Artefact2 commented on 2018-10-04 17:10

I made a .service file with a bit more hardening, in case you don't fully trust the software to be free of vulnerabilities (which is good practice, especially for network-facing daemons): https://paste.debian.net/plainh/3f0c06a5