unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: info@labsolns.com
Cc: help-guix@gnu.org
Subject: Re: successfully(?) installed package but it can't be found/used
Date: Fri, 9 Jul 2021 03:02:12 +0200	[thread overview]
Message-ID: <20210709030212.0c058ee4@tachikoma.lepiller.eu> (raw)
In-Reply-To: <20210708093512.Horde.Jjc5tUsiF-7s-m0PhSJHUkt@labsolns.com>

Le Thu, 08 Jul 2021 09:35:12 -0500,
info@labsolns.com a écrit :

> Hi,
> 
> I would like to install Artanis v0.5 into my store.  I see the patch  
> https://issues.guix.gnu.org/46885#0 and incorporate the changes into
> a local guix.scm (pasted at the end of this message). I do not change
> guile-xyz.scm.  The install seems to complete without error:
> 
> $ guix package --install-from-file=guix.scm
> guix package: warning: Consider running 'guix pull' followed by
> 'guix package -u' to get up-to-date packages and security updates.
> 
> The following package will be upgraded:
>     artanis 0.4.1 → 0.5

When you do that, it temporarily (for the duration of the command) add
the new artanis to the list of available packages guix knows about, so
it can install the new artanis.

> 
> However when I search for artanis:
> 
> $ guix package -s artanis
> name: artanis
> version: 0.4.1
> outputs: out
> systems: x86_64-linux i686-linux etc. etc.

Since the package was only available temporarily to guix, it can't find
it anymore. You'll have to use the same file everytime you want to
refer to the package.

> If I search the store there are many artanis-0.5 files, sample below:
> 
> $find /gnu/store -wholename *artanis-0.5*
> 
> /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/mvc/view.go
> /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/mvc/controller.go
> /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/irregex.go
> /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/ssql.go
> /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/fprm.go
> /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/third-party
> /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/third-party/csv.go
> /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/debug.go
> /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/commands.go
> /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/page.go
> /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/artanis.go
> /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/bin
> /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/bin/art
> /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/bin/.art-real
> /gnu/store/b6g0wiw56gqjsj6ik9g53g5q9npwzkv8-profile/share/doc/artanis-0.5.......

You installed artanis before, so no wonder the result is in the store.
However, note that a store path is not the same thing as a package,
it's only the result of building a package or something else.

> 
> If I try to create an ad hoc environment:
> 
> $ guix environment --ad-hoc artanis@0.5
> guix environment: error: artanis: package not found for version 0.5

again, you'd have to use the file so guix knows about the newer artanis
package. However, with an environment, you'll need something else,
because the best you can do is using -l (to load the file), and that
creates an environment with the *dependencies* of the package specified
by the file: guix environment -l guix.scm would give you all you need
to *build* artanis. My suggestion would be to change guix.scm into a
manifest:

(define-public artanis ...)
(packages->manifest (list artanis))

then: guix environment -m guix.scm

HTH!


      reply	other threads:[~2021-07-09  1:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-08 14:35 successfully(?) installed package but it can't be found/used info
2021-07-09  1:02 ` Julien Lepiller [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=20210709030212.0c058ee4@tachikoma.lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=help-guix@gnu.org \
    --cc=info@labsolns.com \
    /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.
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).