From: asgeir@free.fr
To: gnunet-developers <gnunet-developers@gnu.org>, guix-devel@gnu.org
Subject: Re: [GSoC] Guix + GNUnet: report
Date: Fri, 28 Aug 2015 12:30:12 +0200 (CEST) [thread overview]
Message-ID: <157308597.75901274.1440757812815.JavaMail.root@zimbra53-e8.priv.proxad.net> (raw)
In-Reply-To: <87vbc5wwe6.fsf@gnu.org>
Hello!
Ludovic Courtès writes:
> Could you add a package recipe to Guix for the right version of GNUnet?
Working on it!
> Could you remind me what the right GNUnet command is to check whether
> the thing is actually published and visible?
`gnunet-fs -i` should do the thing, otherwise you can search for your
store-path using its basename. For instance:
$ gnunet-fs -i
/gnu/store/zxfivagcmg1r76v137cfjiyzbqcv8bxh-attr-2.4.46/share/doc/attr/README
/gnu/store/zxfivagcmg1r76v137cfjiyzbqcv8bxh-attr-2.4.46/share/doc/attr/COPYING
/gnu/store/zxfivagcmg1r76v137cfjiyzbqcv8bxh-attr-2.4.46/share/doc/attr/CHANGES.gz
…
$ gnunet-identity -d
testego - GKDCJH769N07V0WXGSMQWMT30HZCR7PGB6TS368WK8624A4537H0
$ gnunet-search gnunet://fs/sks/GKDC…H0/zxfiv…xh-attr-2.4.46
#0:
gnunet-download gnunet://fs/loc/NMR5JZ76WTFZF52B7EBQJDBJZ5WV3W1MXM9YT4SN8…
#1:
gnunet-download gnunet://fs/loc/6ZEY7E5QT9F7PRYKHP19YKE7K7C2VH8WPDFN63R23…
#2:
gnunet-download gnunet://fs/loc/F3QMX8J51EKEM9VDZSB3GTYQFYE1DTP1BCNJGYW68…
#3:
gnunet-download gnunet://fs/loc/2WPBMM7BZMKG9Q70DF837QKGZDAGHWCMW79QB5D58…
#4:
gnunet-download gnunet://fs/loc/6F94CAE022SP1AZX7TSHKGQHGKS290AP0VXHR97GF
> Nitpick: it’s a bit annoying that we have to specify a GNUnet
> configuration file.
Yes, GNUnet programs usually look for `~/.config/gnunet.conf`, and
`publish-gnunet` does the same. Now, maybe `publish-gnunet` could
somehow obtain the config file used by `gnunet-arm`?
> Instead of using ‘file-system-tree’, this variant should probably use
> ‘live-paths’ from (guix store), which returns the list of live store
> items.
Well, `file-system-tree` is only used to recursively index a random
directory’s content (in our case, a single store item). It looked viable
for publishing a single store item, but won’t be good for indexing at
once the entire set of live paths; I should ask the GNUnet team how to
properly index such a huge amount of directories.
On my machine, running `live-paths` takes ~2 seconds, but the
publication of the entire store will probably take much longer anyway.
> BTW, I noticed there’s quite a bunch of global variables that are
> ‘set!’. It would be better to avoid that, but I suppose the
> continuation-passing style that the GNUnet libraries impose makes it
> difficult.
Hopefully, using the “closure” parameters of the GNUnet API in the
bindings should reduce the need for global variables, and improve
elegance of end-user programs.
Finally, the previously mentionned repositories are:
libextractor: https://gnunet.org/svn/Extractor/
GNUnet: https://gnunet.org/svn/gnunet
bindings: http://git.savannah.gnu.org/cgit/guix/gnunet.git
and the commands to get the code:
$ svn co -r 36031 https://gnunet.org/svn/Extractor
$ svn co -r 36242 https://gnunet.org/svn/gnunet
$ git clone http://git.savannah.gnu.org/cgit/guix/gnunet.git
Good afternoon!
--
Rémi
_______________________________________________
GNUnet-developers mailing list
GNUnet-developers@gnu.org
https://lists.gnu.org/mailman/listinfo/gnunet-developers
prev parent reply other threads:[~2015-08-28 10:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1508289362.62730816.1440183680339.JavaMail.root@zimbra53-e8.priv.proxad.net>
2015-08-21 19:05 ` [GSoC] Guix + GNUnet: report asgeir
2015-08-23 21:02 ` Ludovic Courtès
2015-08-28 10:30 ` asgeir [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=157308597.75901274.1440757812815.JavaMail.root@zimbra53-e8.priv.proxad.net \
--to=asgeir@free.fr \
--cc=gnunet-developers@gnu.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).