From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: A package picks up a non-master package - bug or intentional? Date: Wed, 15 Feb 2017 22:03:41 +0000 Message-ID: <20170215220341.ug7v4i2iq4lgqlbh@wasp> References: <20170215110210.aphl5delzg6bdmsn@wasp> <87k28r87v9.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ce7eS-00061z-6b for guix-devel@gnu.org; Wed, 15 Feb 2017 17:02:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ce7eO-0002Jx-3F for guix-devel@gnu.org; Wed, 15 Feb 2017 17:02:16 -0500 Received: from perdizione.investici.org ([94.23.50.208]:47077) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ce7eN-0002J7-Lh for guix-devel@gnu.org; Wed, 15 Feb 2017 17:02:12 -0500 Content-Disposition: inline In-Reply-To: <87k28r87v9.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 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 related > > 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 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/xbvcn8fqp5l45dh5s32nmqmvbykahq= 7k-gnunetgf-0.10.17731daf5 > > checking for GNUnet util library in /gnu/store/xbvcn8fqp5l45dh5s32nmq= mvbykahq7k-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 nee= d 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. >=20 > 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 th= e > 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=3Dgnunet name: gnunet version: 0.10.1 outputs: out systems: x86_64-linux i686-linux armhf-linux mips64el-linux dependencies: bluez-5.43 glib-2.50.2 glpk-4.61 gmp-6.1.1 gnurl-7.52.1 + gnutls-3.5.4 gst-plugins-base-1.10.3 gstreamer-1.10.3 jansson-2.9 + libextractor-1.3 libgcrypt-1.7.3 libidn-1.33 libltdl-2.4.6 + libmicrohttpd-0.9.52 libogg-1.3.2 libunistring-0.9.6 nss-3.27.1 openssl= -1.0.2j + opus-1.1.4 perl-5.24.0 pkg-config-0.29 pulseaudio-9.0 python-2.7.12 + sqlite-3.14.1 zlib-1.2.8 location: gnu/packages/gnunet.scm:263:2 name: gnunet-fuse version: 0.10.17731daf5 outputs: out debug systems: x86_64-linux i686-linux armhf-linux mips64el-linux dependencies: autoconf-2.69 automake-1.15 fuse-2.9.6 gettext-0.19.8.1 + gnunetgf-0.10.17731daf5 libtool-2.4.6 pkg-config-0.29 location: /home/ng0/src/packages/ng0/packages/gnunet.scm:337:4 name: gnunet-gtk version: 0.10.1 outputs: out systems: x86_64-linux i686-linux armhf-linux mips64el-linux dependencies: glade-3.20.0 gnunet-0.10.1 gtk+-3.22.6 libextractor-1.3 + libgcrypt-1.7.3 libglade-2.6.4 libunique-3.0.2 pkg-config-0.29 qrencode= -3.4.4 location: gnu/packages/gnunet.scm:368:2 name: gnunet-gtk version: 0.10.1 outputs: out systems: x86_64-linux i686-linux armhf-linux mips64el-linux dependencies: glade-3.20.0 gnunet-0.10.1 gtk+-3.22.6 libextractor-1.3 + libgcrypt-1.7.3 libglade-2.6.4 libunique-3.0.2 pkg-config-0.29 qrencode= -3.4.4 location: gnu/packages/gnunet.scm:368:2 name: gnunet-gtkg version: 0.10.17731daf5 outputs: out debug systems: x86_64-linux i686-linux armhf-linux mips64el-linux dependencies: autoconf-2.69 automake-1.15 gettext-0.19.8.1 glade-3.20.0 + gnunetg-0.10.17731daf5 gnutls-3.5.4 gsettings-desktop-schemas-3.22.0 + gtk+-3.22.6 libextractor-1.3 libgcrypt-1.7.3 libglade-2.6.4 libtool-2.4= .6 + libunique-3.0.2 pkg-config-0.29 qrencode-3.4.4 location: /home/ng0/src/packages/ng0/packages/gnunet.scm:288:4 name: gnunetg version: 0.10.17731daf5 outputs: out debug systems: x86_64-linux i686-linux armhf-linux mips64el-linux dependencies: autoconf-2.69 automake-1.15 bluez-5.43 gettext-0.19.8.1 + glib-2.50.2 glpk-4.61 gmp-6.1.1 gnurl-7.52.1 gnutls-3.5.4 + gst-plugins-base-1.10.3 gstreamer-1.10.3 jansson-2.9 libextractor-1.3 + libgcrypt-1.7.3 libidn-1.33 libltdl-2.4.6 libmicrohttpd-0.9.52 libogg-1= .3.2 + libtool-2.4.6 libunistring-0.9.6 miniupnpc-2.0.20161216 ncurses-6.0 nss= -3.27.1 + openssl-1.0.2j opus-1.1.4 perl-5.24.0 pkg-config-0.29 pulseaudio-9.0 + python-2.7.12 sqlite-3.14.1 zlib-1.2.8 location: /home/ng0/src/packages/ng0/packages/gnunet.scm:58:4 name: gnunetgf version: 0.10.17731daf5 outputs: out debug systems: x86_64-linux i686-linux armhf-linux mips64el-linux dependencies: autoconf-2.69 automake-1.15 bluez-5.43 gettext-0.19.8.1 + glib-2.50.2 glpk-4.61 gmp-6.1.1 gnurl-7.52.1 gnutls-3.5.4 + gst-plugins-base-1.10.3 gstreamer-1.10.3 jansson-2.9 libextractor-1.3 + libgcrypt-1.7.3 libidn-1.33 libltdl-2.4.6 libmicrohttpd-0.9.52 libogg-1= .3.2 + libtool-2.4.6 libunistring-0.9.6 miniupnpc-2.0.20161216 mysql-5.7.17 + ncurses-6.0 nss-3.27.1 openssl-1.0.2j opus-1.1.4 perl-5.24.0 pkg-config= -0.29 + postgresql-9.5.6 pulseaudio-9.0 python-2.7.12 sqlite-3.14.1 zlib-1.2.8 location: /home/ng0/src/packages/ng0/packages/gnunet.scm:164:2 name: gnunetgft version: 0.10.17731daf5 outputs: out debug systems: x86_64-linux i686-linux armhf-linux mips64el-linux dependencies: autoconf-2.69 automake-1.15 bluez-5.43 gettext-0.19.8.1 + glib-2.50.2 glpk-4.61 gmp-6.1.1 gnurl-7.52.1 gnutls-3.5.4 + gst-plugins-base-1.10.3 gstreamer-1.10.3 jansson-2.9 libextractor-1.3 + libgcrypt-1.7.3 libidn-1.33 libltdl-2.4.6 libmicrohttpd-0.9.52 libogg-1= .3.2 + libtool-2.4.6 libunistring-0.9.6 miniupnpc-2.0.20161216 ncurses-6.0 nss= -3.27.1 + openssl-1.0.2j opus-1.1.4 perl-5.24.0 pkg-config-0.29 pulseaudio-9.0 + python-2.7.12 sqlite-3.14.1 zlib-1.2.8 location: /home/ng0/src/packages/ng0/packages/gnunet.scm:202:2 name: gnunetgftl version: 0.10.17731daf5 outputs: out debug systems: x86_64-linux i686-linux armhf-linux mips64el-linux dependencies: autoconf-2.69 automake-1.15 bluez-5.43 gettext-0.19.8.1 + glib-2.50.2 glpk-4.61 gmp-6.1.1 gnurl-7.52.1 gnutls-3.5.4 + gst-plugins-base-1.10.3 gstreamer-1.10.3 jansson-2.9 libextractor-1.3 + libgcrypt-1.7.3 libidn-1.33 libltdl-2.4.6 libmicrohttpd-0.9.52 libogg-1= .3.2 + libressl-2.5.0 libtool-2.4.6 libunistring-0.9.6 miniupnpc-2.0.20161216 + ncurses-6.0 nss-3.27.1 opus-1.1.4 perl-5.24.0 pkg-config-0.29 postgresq= l-9.5.6 + pulseaudio-9.0 python-2.7.12 sqlite-3.14.1 zlib-1.2.8 location: /home/ng0/src/packages/ng0/packages/gnunet.scm:375:2 name: gnunetgftn version: 0.10.17731daf5 outputs: out debug systems: x86_64-linux i686-linux armhf-linux mips64el-linux dependencies: autoconf-2.69 automake-1.15 bluez-5.43 gettext-0.19.8.1 + glib-2.50.2 glpk-4.61 gmp-6.1.1 gnurl-7.52.1 gnutls-3.5.4 + gst-plugins-base-1.10.3 gstreamer-1.10.3 jansson-2.9 libextractor-1.3 + libgcrypt-1.7.3 libidn-1.33 libltdl-2.4.6 libmicrohttpd-0.9.52 libogg-1= .3.2 + libtool-2.4.6 libunistring-0.9.6 miniupnpc-2.0.20161216 ncurses-6.0 nss= -3.27.1 + openssl-1.0.2j opus-1.1.4 perl-5.24.0 pkg-config-0.29 pulseaudio-9.0 + python-2.7.12 sqlite-3.14.1 zlib-1.2.8 location: /home/ng0/src/packages/ng0/packages/gnunet.scm:245:2 name: gnunetgpg version: 0.10.17731daf5 outputs: out debug systems: x86_64-linux i686-linux armhf-linux mips64el-linux dependencies: autoconf-2.69 automake-1.15 bluez-5.43 gettext-0.19.8.1 + glib-2.50.2 glpk-4.61 gmp-6.1.1 gnurl-7.52.1 gnutls-3.5.4 + gst-plugins-base-1.10.3 gstreamer-1.10.3 jansson-2.9 libextractor-1.3 + libgcrypt-1.7.3 libidn-1.33 libltdl-2.4.6 libmicrohttpd-0.9.52 libogg-1= .3.2 + libtool-2.4.6 libunistring-0.9.6 miniupnpc-2.0.20161216 ncurses-6.0 nss= -3.27.1 + openssl-1.0.2j opus-1.1.4 perl-5.24.0 pkg-config-0.29 postgresql-9.5.6 + pulseaudio-9.0 python-2.7.12 sqlite-3.14.1 zlib-1.2.8 location: /home/ng0/src/packages/ng0/packages/gnunet.scm:155:2 name: guile-gnunet version: 0.0.383eac2 outputs: out systems: x86_64-linux i686-linux armhf-linux mips64el-linux dependencies: autoconf-wrapper-2.69 automake-1.15 gnunet-0.10.1 guile-2.0= .12 + pkg-config-0.29 location: gnu/packages/gnunet.scm:333:4 =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/