all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ng0 <contact.ng0@cryptolab.net>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: gnunet-fuse (was: Re: A package picks up a non-master package - bug or intentional?)
Date: Fri, 17 Feb 2017 14:47:59 +0000	[thread overview]
Message-ID: <20170217144759.5ghqbdpa6cslw6g2@wasp> (raw)
In-Reply-To: <87inoaa87t.fsf@elephly.net>

[-- Attachment #1: Type: text/plain, Size: 2964 bytes --]

Hi,

patch file of the package in question attached.

On 17-02-16 08:46:46, Ricardo Wurmus wrote:
> 
> ng0 <contact.ng0@cryptolab.net> writes:
> 
> > On 17-02-15 22:24:58, Ricardo Wurmus wrote:
> >> 
> >> ng0 <contact.ng0@cryptolab.net> writes:
> >> 
> >> > I just picked up gnunet-fuse again and the build behaves strange.
> >> >
> >> > You have to know that I keep multiple versions of gnunet and related
> >> > packages in my GUIX_PACKAGE_PATH.
> >> > Normally I would expect that this:
> >> >
> >> > +    (arguments
> >> > +     `(#:configure-flags
> >> > +       (list (string-append "--with-gnunet="
> >> > +                            (assoc-ref %build-inputs "gnunet")))))
> >> >
> >> > just picks up the gnunet from within the master tree the package
> >> > definition itself is in.
> >> > But as I recently have build "gnunetgf-0.10.17731daf5" this is being
> >> > picked up instead as you can see here:
> >> >
> >> > checking fuse.h usability... yes
> >> > checking fuse.h presence... yes
> >> > checking for fuse.h... yes
> >> > checking for GNUnet core... /gnu/store/xbvcn8fqp5l45dh5s32nmqmvbykahq7k-gnunetgf-0.10.17731daf5
> >> > checking for GNUnet util library in /gnu/store/xbvcn8fqp5l45dh5s32nmqmvbykahq7k-gnunetgf-0.10.17731daf5... checking for gnunet/gnunet_util_lib.h... no
> >> > configure: error: gnunet-fuse requires GNUnet
> >> > phase `configure' failed after 2.8 seconds
> >> >
> >> >
> >> > I wonder.. why? Is Guix just not clever enough and picks the first
> >> > fitting "gnunet" it finds and if already available its store path?
> >> 
> >> Guix doesn’t *look* for any packages, so it doesn’t need to be clever.
> >> You *tell* it what exact package to use.  Only packages that you have
> >> declared as inputs will be available.  To declare a package as an input
> >> you add *the package itself* (by unquoting a symbol that evaluates to a
> >> package value).  There is no ambiguity, neither at build time nor at
> >> runtime of Guix.
> >> 
> >> The confusion here is probably in what package value the symbol in the
> >> inputs resolves to.  And this depends on the modules that are loaded.
> >> We would need to see the full package definition and see what values the
> >> package variables correspond to.
> >
> > Okay, I will send the patch tomorrow.
> >
> > This is inside (gnu packages gnunet), so my personal modules aren't in
> > there. The package name 'gnunet' is unique:
> >
> > ng0@wasp ~> guix package --search=gnunet
> 
> What matters is not the package name but the name (and value) of the
> Scheme variable that is referenced in the inputs.  They are often
> identical, but since we’re speaking of non-intuitive behaviour it may
> well be that the names differ in this case.
> 
> -- 
> Ricardo
> 
> GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
> https://elephly.net
> 

-- 
ng0 -- https://www.inventati.org/patternsinthechaos/

[-- Attachment #2: 0001-gnu-Add-gnunet-fuse.patch --]
[-- Type: text/plain, Size: 1681 bytes --]

From b01415b2513d40f970269eb33393364d6d18a7e5 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Mon, 19 Sep 2016 16:23:53 +0000
Subject: [PATCH] gnu: Add gnunet-fuse.

* gnu/packages/gnunet.scm (gnunet-fuse): New variable.
---
 gnu/packages/gnunet.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/gnunet.scm b/gnu/packages/gnunet.scm
index a4514a7f4..27ed58b6a 100644
--- a/gnu/packages/gnunet.scm
+++ b/gnu/packages/gnunet.scm
@@ -393,3 +393,32 @@ services.")
      `(("pkg-config" ,pkg-config)
        ("libglade" ,libglade)))
     (synopsis "Graphical front-end tools for GNUnet")))
+
+(define-public gnunet-fuse
+  (package
+    (name "gnunet-fuse")
+    (version "0.10.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnu/gnunet/gnunet-fuse-"
+                                  version ".tar.gz"))
+              (sha256
+               (base32
+                "0ggc2gkyd6qvd4a9z84xbynq5jajbldbx6qkh79k9zjiycz2ffbb"))))
+    (arguments
+     `(#:configure-flags
+       (list (string-append "--with-gnunet="
+                            (assoc-ref %build-inputs "gnunet")))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("gnunet" ,gnunet)
+       ("fuse" ,fuse)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (synopsis "Mount directories which are published on GNUnet")
+    (description
+     "GNUnet-fuse allows you to mount directories published on GNUnet
+as read-only file-systems on operating systems that support the
+FUSE API).")
+    (license license:gpl3+)
+    (home-page "https://gnunet.org/")))
-- 
2.11.1


  reply	other threads:[~2017-02-17 14:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-15 11:02 A package picks up a non-master package - bug or intentional? ng0
2017-02-15 21:24 ` Ricardo Wurmus
2017-02-15 22:03   ` ng0
2017-02-16  7:46     ` Ricardo Wurmus
2017-02-17 14:47       ` ng0 [this message]
2017-02-17 16:10         ` gnunet-fuse (was: Re: A package picks up a non-master package - bug or intentional?) Ricardo Wurmus
2017-02-17 16:21           ` ng0

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170217144759.5ghqbdpa6cslw6g2@wasp \
    --to=contact.ng0@cryptolab.net \
    --cc=guix-devel@gnu.org \
    --cc=rekado@elephly.net \
    /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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.