[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: successfully(?) installed package but it can't be found/used

From: Julien Lepiller
Subject: Re: successfully(?) installed package but it can't be found/used
Date: Fri, 9 Jul 2021 03:02:12 +0200

Le Thu, 08 Jul 2021 09:35:12 -0500, a écrit :

> Hi,
> I would like to install Artanis v0.5 into my store.  I see the patch  
> 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

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

then: guix environment -m guix.scm


reply via email to

[Prev in Thread] Current Thread [Next in Thread]