Package Details: freenet 0.7.5.1485-2

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 (skydrome)
Last Packager: skydrome
Votes: 178
Popularity: 0.029673
First Submitted: 2009-04-17 16:46
Last Updated: 2020-03-26 05:35

Dependencies (8)

Required by (0)

Sources (12)

Pinned Comments

skydrome commented on 2020-02-15 20:21

https://freenetproject.org/freenet-build-1485-released.html

Changes to the package:

  • Git verifies the signed tag now, you will have to import the freenet developers key from https://freenetproject.org/assets/keyring.gpg ** or gpg --recv-keys FD6C57F9
  • Includes the Library plugin
  • /opt/freenet folder permissions updated, youll likely see warnings about it when updating. Systemd will change them on its own. Install the package twice and you shouldnt see the warnings again if it changed them correctly.
  • freenet.ini.pacnew can be ignored unless you want a fresh install, only updated for new installations ** New installs will have opennet disabled until you manually enable it
  • wrapper.config.pacnew should be updated if youve made local changes to yours
  • freenet doesnt overwrite our newest geoip db anymore

Latest Comments

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

HiJack88 commented on 2019-03-03 20:11

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

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