From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 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 Message-ID: <20170217144759.5ghqbdpa6cslw6g2@wasp> References: <20170215110210.aphl5delzg6bdmsn@wasp> <87k28r87v9.fsf@elephly.net> <20170215220341.ug7v4i2iq4lgqlbh@wasp> <87inoaa87t.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="bra25fphzx6p4emk" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cejnc-0002AA-KH for guix-devel@gnu.org; Fri, 17 Feb 2017 09:46:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cejnY-0000sd-P7 for guix-devel@gnu.org; Fri, 17 Feb 2017 09:46:16 -0500 Received: from fragranza.investici.org ([2a00:1dc0:2479::19]:43800) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cejnY-0000qz-Gi for guix-devel@gnu.org; Fri, 17 Feb 2017 09:46:12 -0500 Content-Disposition: inline In-Reply-To: <87inoaa87t.fsf@elephly.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: guix-devel@gnu.org --bra25fphzx6p4emk Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, patch file of the package in question attached. On 17-02-16 08:46:46, Ricardo Wurmus wrote: >=20 > ng0 writes: >=20 > > On 17-02-15 22:24:58, Ricardo Wurmus wrote: > >>=20 > >> ng0 writes: > >>=20 > >> > I just picked up gnunet-fuse again and the build behaves strange. > >> > > >> > You have to know that I keep multiple versions of gnunet and relat= ed > >> > packages in my GUIX_PACKAGE_PATH. > >> > Normally I would expect that this: > >> > > >> > + (arguments > >> > + `(#:configure-flags > >> > + (list (string-append "--with-gnunet=3D" > >> > + (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 bei= ng > >> > 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/xbvcn8fqp5l45dh5s32nmqmvbyk= ahq7k-gnunetgf-0.10.17731daf5 > >> > checking for GNUnet util library in /gnu/store/xbvcn8fqp5l45dh5s32= nmqmvbykahq7k-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? > >>=20 > >> Guix doesn=E2=80=99t *look* for any packages, so it doesn=E2=80=99t = need to be clever. > >> You *tell* it what exact package to use. Only packages that you hav= e > >> declared as inputs will be available. To declare a package as an in= put > >> you add *the package itself* (by unquoting a symbol that evaluates t= o a > >> package value). There is no ambiguity, neither at build time nor at > >> runtime of Guix. > >>=20 > >> The confusion here is probably in what package value the symbol in t= he > >> 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 i= n > > there. The package name 'gnunet' is unique: > > > > ng0@wasp ~> guix package --search=3Dgnunet >=20 > 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=E2=80=99re speaking of non-intuitive behaviour = it may > well be that the names differ in this case. >=20 > --=20 > Ricardo >=20 > GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC > https://elephly.net >=20 --=20 ng0 -- https://www.inventati.org/patternsinthechaos/ --bra25fphzx6p4emk Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-Add-gnunet-fuse.patch" >From b01415b2513d40f970269eb33393364d6d18a7e5 Mon Sep 17 00:00:00 2001 From: ng0 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 --bra25fphzx6p4emk--