Package Details: gnunet 0.17.1-1

Git Clone URL: https://aur.archlinux.org/gnunet.git (read-only, click to copy)
Package Base: gnunet
Description: A framework for secure peer-to-peer networking
Upstream URL: http://gnunet.org
Keywords: Anonymity F2F File-Sharing GNS GNUnet Internet P2P VPN
Licenses: AGPL
Conflicts: gnunet-bin, gnunet-git
Submitter: arojas
Maintainer: grufo (redfish)
Last Packager: grufo
Votes: 6
Popularity: 1.15
First Submitted: 2021-05-08 09:11 (UTC)
Last Updated: 2022-06-13 16:04 (UTC)

Sources (8)

Pinned Comments

grufo commented on 2021-12-30 18:18 (UTC)

After installing the package do not forget to add your user to the gnunet group, with

sudo usermod -aG gnunet "$(whoami)"

If later you want to remove your user from the group, launch:

sudo gpasswd --delete "$(whoami)" gnunet

For information on how to use GNUnet plaese refer to the GNUnet article in the ArchWiki.

Latest Comments

frankspace commented on 2022-03-14 00:25 (UTC)

Sorry for the delay -- yes, it works now, thank you!

grufo commented on 2022-03-03 01:53 (UTC)

@frankspace

The problem should be solved now.

grufo commented on 2022-02-28 03:02 (UTC)

@frankspace

Apparently that error is due to different versions of libtool between who packaged the GNUnet tarball upstream and who uses Arch.

Previously it was easily solvable by launching autoreconf -i, however with this release that will not work, due to a missing file necessary for launching autoreconf -i (the file was restored after the package was released, so version 0.16.1 will not have the same problem).

Solutions:

  1. Install gnunet-git and stick to it (if you do it now it is almost identical to this version)
  2. Or: Try to compile and install this package while you have gnunet-git installed (you will be asked to remove gnunet-git at the end of the process and you will have to say Yes)

frankspace commented on 2022-02-27 23:40 (UTC)

I am getting a compilation error that looks a lot like what @franz encountered. I am building it in a clean chroot without use of any AUR helpers. Compilation fails with the following:

Making install in block
make[2]: Entering directory '/build/gnunet/src/gnunet-0.16.0/src/block'
make[3]: Entering directory '/build/gnunet/src/gnunet-0.16.0/src/block'
 /usr/bin/mkdir -p '/build/gnunet/pkg/gnunet/usr/lib'
 /bin/sh ../../libtool   --mode=install /usr/bin/install -c   libgnunetblock.la libgnunetblockgroup.la '/build/gnunet/pkg/gnunet/usr/lib'
 /usr/bin/mkdir -p '/build/gnunet/pkg/gnunet/usr/lib/gnunet'
 /bin/sh ../../libtool   --mode=install /usr/bin/install -c   libgnunet_plugin_block_test.la '/build/gnunet/pkg/gnunet/usr/lib/gnunet'
libtool: warning: relinking 'libgnunet_plugin_block_test.la'
libtool: warning: relinking 'libgnunetblock.la'
libtool: install: (cd /build/gnunet/src/gnunet-0.16.0/src/block; /bin/sh "/build/gnunet/src/gnunet-0.16.0/libtool"  --silent --tag CC --mode=relink gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -export-dynamic -avoid-version -module -no-undefined -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,--unresolved-symbols=report-all -o libgnunet_plugin_block_test.la -rpath /usr/lib/gnunet plugin_block_test.lo libgnunetblockgroup.la libgnunetblock.la ../../src/util/libgnunetutil.la -lm -inst-prefix-dir /build/gnunet/pkg/gnunet)
libtool: install: (cd /build/gnunet/src/gnunet-0.16.0/src/block; /bin/sh "/build/gnunet/src/gnunet-0.16.0/libtool"  --silent --tag CC --mode=relink gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -export-dynamic -no-undefined -version-info 0:0:0 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,--unresolved-symbols=report-all -o libgnunetblock.la -rpath /usr/lib block.lo ../../src/util/libgnunetutil.la -lm -inst-prefix-dir /build/gnunet/pkg/gnunet)
/usr/bin/ld: warning: libgnunetblock.so.0, needed by /build/gnunet/src/gnunet-0.16.0/src/block/.libs/libgnunetblockgroup.so, not found (try using -rpath or -rpath-link)
libtool: install: /usr/bin/install -c .libs/libgnunetblock.so.0.0.0T /build/gnunet/pkg/gnunet/usr/lib/libgnunetblock.so.0.0.0
libtool: install: (cd /build/gnunet/pkg/gnunet/usr/lib && { ln -s -f libgnunetblock.so.0.0.0 libgnunetblock.so.0 || { rm -f libgnunetblock.so.0 && ln -s libgnunetblock.so.0.0.0 libgnunetblock.so.0; }; })
libtool: install: (cd /build/gnunet/pkg/gnunet/usr/lib && { ln -s -f libgnunetblock.so.0.0.0 libgnunetblock.so || { rm -f libgnunetblock.so && ln -s libgnunetblock.so.0.0.0 libgnunetblock.so; }; })
/usr/bin/ld: /build/gnunet/src/gnunet-0.16.0/src/block/.libs/libgnunetblockgroup.so: undefined reference to `GNUNET_BLOCK_mingle_hash'
libtool: install: /usr/bin/install -c .libs/libgnunetblock.lai /build/gnunet/pkg/gnunet/usr/lib/libgnunetblock.la
collect2: error: ld returned 1 exit status
libtool: warning: relinking 'libgnunetblockgroup.la'
libtool:   error: error: relink 'libgnunet_plugin_block_test.la' with the above command before installing it
make[3]: *** [Makefile:625: install-pluginLTLIBRARIES] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: install: (cd /build/gnunet/src/gnunet-0.16.0/src/block; /bin/sh "/build/gnunet/src/gnunet-0.16.0/libtool"  --silent --tag CC --mode=relink gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-strict-aliasing -Wno-address-of-packed-member -export-dynamic -no-undefined -version-info 0:0:0 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,--unresolved-symbols=report-all -o libgnunetblockgroup.la -rpath /usr/lib bg_bf.lo libgnunetblock.la ../../src/util/libgnunetutil.la -lm -inst-prefix-dir /build/gnunet/pkg/gnunet)
libtool: install: /usr/bin/install -c .libs/libgnunetblockgroup.so.0.0.0T /build/gnunet/pkg/gnunet/usr/lib/libgnunetblockgroup.so.0.0.0
libtool: install: (cd /build/gnunet/pkg/gnunet/usr/lib && { ln -s -f libgnunetblockgroup.so.0.0.0 libgnunetblockgroup.so.0 || { rm -f libgnunetblockgroup.so.0 && ln -s libgnunetblockgroup.so.0.0.0 libgnunetblockgroup.so.0; }; })
libtool: install: (cd /build/gnunet/pkg/gnunet/usr/lib && { ln -s -f libgnunetblockgroup.so.0.0.0 libgnunetblockgroup.so || { rm -f libgnunetblockgroup.so && ln -s libgnunetblockgroup.so.0.0.0 libgnunetblockgroup.so; }; })
libtool: install: /usr/bin/install -c .libs/libgnunetblockgroup.lai /build/gnunet/pkg/gnunet/usr/lib/libgnunetblockgroup.la
libtool: warning: remember to run 'libtool --finish /usr/lib'
make[3]: Leaving directory '/build/gnunet/src/gnunet-0.16.0/src/block'
make[2]: *** [Makefile:812: install-am] Error 2
make[2]: Leaving directory '/build/gnunet/src/gnunet-0.16.0/src/block'
make[1]: *** [Makefile:545: install-recursive] Error 1
make[1]: Leaving directory '/build/gnunet/src/gnunet-0.16.0/src'
make: *** [Makefile:625: install-recursive] Error 1
==> ERROR: A failure occurred in package().
    Aborting...
==> ERROR: Build failed, check /home/frank/artixbuild/frank/build

I tried putting the autoreconf -i line back in, but that just caused compilation to barf immediately with the following:

==> Starting prepare()...
Copying file m4/fcntl-o.m4
Copying file m4/threadlib.m4
Copying file po/Makevars.template
sh: line 1: contrib/get_version.sh: No such file or directory
configure.ac:33: error: AC_INIT should be called with package and version arguments
/usr/share/aclocal-1.16/init.m4:29: AM_INIT_AUTOMAKE is expanded from...
configure.ac:33: the top level
autom4te: error: /usr/bin/m4 failed with exit status: 1
aclocal: error: /usr/bin/autom4te failed with exit status: 1
autoreconf: error: aclocal failed with exit status: 1
==> ERROR: A failure occurred in prepare().
    Aborting...
==> ERROR: Build failed, check /home/frank/artixbuild/frank/build

I'm running Artix rather than Arch, but I can't imagine that should make any meaningful difference. So I'm stumped.

grufo commented on 2021-12-30 18:18 (UTC)

After installing the package do not forget to add your user to the gnunet group, with

sudo usermod -aG gnunet "$(whoami)"

If later you want to remove your user from the group, launch:

sudo gpasswd --delete "$(whoami)" gnunet

For information on how to use GNUnet plaese refer to the GNUnet article in the ArchWiki.

grufo commented on 2021-12-15 23:36 (UTC)

@franz Running autoreconf -i before building seems to solve the problem, and I have updated the PKGBUILD accordingly. Could please check that this solves the problem also for you?

grufo commented on 2021-12-03 01:15 (UTC)

@franz

I know, the same happens to me. But if you try to compile gnunet while gnunet-git is installed, it should compile correctly, or at least it does for me.

I have really no idea why that happens. I have tried to find out, but without success. By looking at the commit history, it seems that version 0.15.4 is almost there, so I hope that this problem will be solved with the new version. I am currently using gnunet-git.

franz commented on 2021-12-02 20:10 (UTC) (edited on 2021-12-02 20:11 (UTC) by franz)

Hi. I couldn't install the package. When I try to do so it gives this error:

$ yay -S gnunet
...
libtool: install: (cd /home/trita/.cache/yay/gnunet/src/gnunet-0.15.3/src/ats; /bin/sh "/home/trita/.cache/yay/gnunet/src/gnunet-0.15.3/libtool"  --silent --tag CC --mode=relink gcc -fno-strict-aliasing -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wno-address-of-packed-member -export-dynamic -avoid-version -module -no-undefined -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,--unresolved-symbols=report-all -o libgnunet_plugin_ats_proportional.la -rpath /usr/lib/gnunet plugin_ats_proportional.lo libgnunetats.la ../../src/statistics/libgnunetstatistics.la ../../src/util/libgnunetutil.la ../../src/nt/libgnunetnt.la -lm -inst-prefix-dir /home/trita/.cache/yay/gnunet/pkg/gnunet)
/usr/bin/ld: warning: libgnunethello.so.0, needed by /home/trita/.cache/yay/gnunet/pkg/gnunet/usr/lib/libgnunetats.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /home/trita/.cache/yay/gnunet/pkg/gnunet/usr/lib/libgnunetats.so: undefined reference to `GNUNET_HELLO_address_cmp'
/usr/bin/ld: /home/trita/.cache/yay/gnunet/pkg/gnunet/usr/lib/libgnunetats.so: undefined reference to `GNUNET_HELLO_address_check_option'
/usr/bin/ld: /home/trita/.cache/yay/gnunet/pkg/gnunet/usr/lib/libgnunetats.so: undefined reference to `GNUNET_HELLO_address_copy'
collect2: error: ld returned 1 exit status
libtool:   error: error: relink 'libgnunet_plugin_ats_proportional.la' with the above command before installing it
make[3]: *** [Makefile:939: install-pluginLTLIBRARIES] Error 1
make[3]: Leaving directory '/home/trita/.cache/yay/gnunet/src/gnunet-0.15.3/src/ats'
make[2]: *** [Makefile:1338: install-am] Error 2
make[2]: Leaving directory '/home/trita/.cache/yay/gnunet/src/gnunet-0.15.3/src/ats'
make[1]: *** [Makefile:560: install-recursive] Error 1
make[1]: Leaving directory '/home/trita/.cache/yay/gnunet/src/gnunet-0.15.3/src'
make: *** [Makefile:641: install-recursive] Error 1
==> ERROR: A failure occurred in package().
    Aborting...
 -> error making: gnunet

I'm on Manjaro x64 with Linux 5.14.

I could install gnunet-git OK, but not gnunet.

Thx

tleydxdy commented on 2021-08-24 02:20 (UTC)

@grufo okay, that is great news

grufo commented on 2021-08-24 02:09 (UTC)

@tleydxdy

When you created this package gnunet was still in the official repositories. But it had become a problematic package, slowly diverging from the upstream code, and nobody was taking the trouble to have a look at the handbook. So it had a lot of issues and dead code.

Recently I have adopted the package, I have cleaned it as much as I could, and I hope I will be able to keep it up to date.

P.S. I have just created a paragraph in the ArchWiki about the single-user setup.

tleydxdy commented on 2021-08-24 01:50 (UTC)

@grufo great, just to mention, iirc when I made this package I pretty much had to use the handbook and write the PKGBUILD from scratch, i don't recall what was the problem exactly now, but I see that the PKGBUILD are still quite different, so I'm not sure. as long as you tested and it works that's great.

grufo commented on 2021-08-24 01:38 (UTC)

@tleydxdy

the service file is supposed to be run by your user

If all the fuss was about adding a systemd/user service to the package (which is not a bad idea) we can add it to the gnunet package (I just did it).

I guess this package does not make much sense now.

tleydxdy commented on 2021-08-23 21:03 (UTC)

@grufo the service file is supposed to be run by your user, see https://wiki.archlinux.org/title/systemd/User also this package is intended to follow https://docs.gnunet.org/handbook/gnunet.html#The-Single_002dUser-Setup rather than setting up gnunet as a system service which is on the next section in the handbook

grufo commented on 2021-08-23 19:48 (UTC)

What is the purpose of this package? It is called gnunet-user and the description says “single user config“, but the package ships no configuration whatsoever and gnunet.service launches gnunet-arm -s as root (!) – not as current user – which is something that should be always avoided.

Why should anyone install this package instead of gnunet?

grufo commented on 2021-08-23 16:15 (UTC)

Version 0.15.1 is already out (http://ftp.gnu.org/gnu/gnunet/gnunet-0.15.1.tar.gz), but unfortunately file src/testing/testing_cmds.h is missing and the package does not compile.

  CC       testing_api_cmd_local_test_finished.lo
testing_api_cmd_local_test_finished.c:29:10: fatal error: testing_cmds.h: No such file or directory
   29 | #include "testing_cmds.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.

It should be a matter of hours or, at most, days before they find out. In the meanwhile you can stick to the current version (0.15.0), or use the gnunet-git package, where src/testing/testing_cmds.h is not missing at the moment.