unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Installing a previous version of a package
@ 2021-03-27  2:40 Bone Baboon
  2021-03-27  8:29 ` Oleg Pykhalov
  2021-04-02  0:57 ` Bone Baboon
  0 siblings, 2 replies; 4+ messages in thread
From: Bone Baboon @ 2021-03-27  2:40 UTC (permalink / raw)
  To: help-guix

I am trying to install a previous version of a package but I am getting
errors.

In this case the current version of openvpn is 2.5.1 and I would like to
install the 2.4.9 version.

openvpn version 2.4.9 was packaged for Guix.
https://git.savannah.gnu.org/cgit/guix.git/commit/gnu/packages/vpn.scm?id=c5a2b70135c9830e9c3051ddf4a096f9a80eb952

My preference is to use a configuration file to install this previous
version of `openvpn`.

When I add openvpn@2.4.9 as a package to my system configuration and run
`sudo guix system reconfigure config.scm` it outputs "error:
openvpn@2.4.9: unbound variable hint: Did you forget a `use-modelue'
form?".

`guix package --install=openvpn@2.4.9` outputs "guix package: error:
openvpn: package not found for version 2.4.9".

Adapting the example in the Inferiors section of the manual I tried
running `guix package --manifest=openvpn-2-4-9.scm`.

The contents of openvpn-2-4-9.scm are:

```
(use-modules (guix inferior)
	     (guix channels)
             (srfi srfi-1))

(define channels
  (append
   (list
    (channel
     (name 'openvpn)
     (url "https://git.savannah.gnu.org/git/guix.git")
     (commit "c5a2b70135c9830e9c3051ddf4a096f9a80eb952")))
   %default-channels))
   
(define inferior
  (inferior-for-channels channels))

(packages->manifest
 (list
  (first
   (lookup-inferior-packages inferior "openvpn")))
```

The output error message I recieve is:

```
Updating channel 'openvpn' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Computing Guix derivation for 'x86_64-linux'... /
Computing Guix derivation for 'x86_64-linux'... |
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
The following derivations will be built:
   /gnu/store/c5zsr6rx26rqzz7b3v7174fik4d2j144-profile.drv
   /gnu/store/r0l7d1yghcs41gil9bif5f9znsi9km66-guix-c5a2b7013.drv
   /gnu/store/2p7h0dk2nghs0z83pd7c2nj8k2iz30sv-guix-daemon.drv
   /gnu/store/z3lam5sd9f8q981150x2c8m9vahal9w3-guix-command.drv
   /gnu/store/h0z13lkc7z3252cgdp2mjsm9wa6a813a-guix-module-union.drv
   /gnu/store/z2hch4y67hyl6ii5ia2ccrw68al3652z-guix-c5a2b7013-modules.drv
   /gnu/store/1fawp89d2np2fpv9cs7hfa9wmms5xhnk-guix-system-tests-modules.drv
   /gnu/store/fcjqwq8y6sm1bcip830wr397yrj1lkq9-guix-system-tests.drv
   /gnu/store/c9937mh7sw0an79ap3cfcckn011gh39h-guix-packages-base.drv
   /gnu/store/w3229vmzf5620pkcn785xfw1ahl3jhri-config.scm.drv
   /gnu/store/rgd4qsf0aylwni4svliwa984hisj59fj-guix-extra.drv
   /gnu/store/cc8j1h0c9a55wl4awll9i4gqmsp1m8pm-guix-packages.drv
   /gnu/store/d8j8wm8adsa5h4i5ha8h9rjbm0wcwh23-guix-system.drv
   /gnu/store/ql90fvj22wqgrq0j0kh6gcm5wqfp06hh-guix-cli.drv
   /gnu/store/1m2ig3khpl9rdqz331n261h885yqfx03-guix-core-modules.drv
   /gnu/store/3ynb45v73v41wzzrkwcbl2ay53r6ss20-guix-config-modules.drv
   /gnu/store/vn3n565qdzcnxbm64kaira7f4hsimmsj-guix-config-source.drv
   /gnu/store/n26c9kviin49vdya29rqk2qzjj11l7mq-config.scm.drv
   /gnu/store/zvxnbhf6h1x5giih0z7c8a8la0zp2f06-guix-config.drv
   /gnu/store/4a7a6g2wa74xl556070sc0wwp8i1g9ka-guix-packages-base-modules.drv
   /gnu/store/jr3mfycc4776rr4qhifmwpshni47qf87-guix-extra-modules.drv
   /gnu/store/m2xh9xsrnarim5dk9kkjwa4plnhavriv-guix-cli-modules.drv
   /gnu/store/xrdyzp3dis96hgvv7b338fn4d0lkgrpi-guix-system-modules.drv
   /gnu/store/ypdpqkhicfg69x5sgvsyxi759pamgji8-guix-packages-modules.drv
   /gnu/store/wqhpk46g4z072mvmzhl8sr1drj0fzg7a-guix-manual.drv
   /gnu/store/dn7w2x43z6v3qjca68gh5ks7kcvriwb0-guix-translated-texinfo.drv
   /gnu/store/3lawhq0bp02s4h3a23p58b2fqs32xxmf-profile.drv
   /gnu/store/s9vwn36n87kjpb97fsxfhal6k7r87b9g-inferior-script.scm.drv
11.2 MB will be downloaded:
   /gnu/store/4k0p5q582p5q2p79iaxdjk4awg3xwmpj-module-import-compiled
   /gnu/store/i8shcznhx47150k8pa6k06690slpvb75-guix-locale-guix-packages
   /gnu/store/jqr5bz89gfwhxcndnhq333dyclvkq7ws-lzlib-1.11
   /gnu/store/s3p090y7wxww4qv6amg1dxy75mbkc8dp-module-import-compiled
   /gnu/store/jaandxqy7yf5b1i3kipzqqklz63h90bf-module-import-compiled
   /gnu/store/5z5gh71wzyf6x0qpflqsvwyv657gsdaf-guix-core
   /gnu/store/s5dmqc1pslsmmq2qjkj4pqvcvwpg6qn4-guix-core-source
   /gnu/store/4fsvcpq3ypd8vykf89szv37cw4bbm64f-guile-gcrypt-0.2.1
   /gnu/store/8214d32y4xd2ivf7hssr60hb2ccncg4c-guile-sqlite3-0.1.0
   /gnu/store/pv6ii8gfp3y04qhp3cxbm4xj1g3p86l2-module-import-compiled
   /gnu/store/4idbjrljcjwxlfwr0k6qg10gi9m55v6f-guile-json-3.5.0
   /gnu/store/a5548wn9s7gbs9xakiaadjx6jq1mfsya-guile3.0-gnutls-3.6.12
   /gnu/store/w3jgqyx6q8vlc1znvy8n6k6y0ysspmm1-guix-locale-guix
   /gnu/store/paf4dmxasqvp1i1d1px6wybmiwrydpdc-guile-3.0.2
The following grafts will be made:
   /gnu/store/lvwvzy9hbjvb5w5nxng7pmb169zc6h9m-guile-git-0.3.0.drv
   /gnu/store/9l6m0d8rapnwhhfs0x7vj6yqj5wizv2h-libgit2-1.0.0.drv
The following profile hooks will be built:
   /gnu/store/9ksymmv1clk4nc3g1jgzb2r142g54zld-manual-database.drv
   /gnu/store/nf6gwhy96w30pnnzyl4c6f70qyzcmd0y-info-dir.drv
   /gnu/store/w0cakl36fivj7q3jc9nh0cdcpmzz6fhs-ca-certificate-bundle.drv
   /gnu/store/wjq1vmwknv8whir61q0kc41rk4v1alrl-fonts-dir.drv
   /gnu/store/yplpl8nk0kf3n6i3dr3igm0pcbzj3n87-guix-package-cache.drv
The following derivations will be built:
   /gnu/store/c5zsr6rx26rqzz7b3v7174fik4d2j144-profile.drv
   /gnu/store/r0l7d1yghcs41gil9bif5f9znsi9km66-guix-c5a2b7013.drv
   /gnu/store/2p7h0dk2nghs0z83pd7c2nj8k2iz30sv-guix-daemon.drv
   /gnu/store/qp2ybrj4fnd33vhka8va5zfiwi8c159x-guile-3.0.2.drv
   /gnu/store/f5xmifmrwprnxwxa31z3dj3rcvrq777r-libatomic-ops-7.6.10.drv
   /gnu/store/vxdyapa3jlzrsgqjx5q5ixx86rpgj8i8-libatomic_ops-7.6.10.tar.gz.drv
   /gnu/store/q65qm57zrgbgwc4w0rhkzp3c3liiznic-guile-3.0.2.tar.xz.drv
   /gnu/store/6i012slcsvhy83lgxxhf3j54c6n7yk05-guile-3.0.2.tar.xz.drv
   /gnu/store/z3lam5sd9f8q981150x2c8m9vahal9w3-guix-command.drv
   /gnu/store/07hgyf947z325vk0xva3ppnsclmhp9pm-guix-locale-guix.drv
   /gnu/store/j7f5l7i6n61jp9w8p5ysxk160syrhyzp-module-import-compiled.drv
   /gnu/store/h0z13lkc7z3252cgdp2mjsm9wa6a813a-guix-module-union.drv
   /gnu/store/6w38a0kv5hpllpid74plvrkfbj0bscnq-guile3.0-gnutls-3.6.12.drv
   /gnu/store/kh1z9zkyarlk2c7p9xs0v8im2pmkikni-gnutls-3.6.12.tar.xz.drv
   /gnu/store/zirjdi7jbi9ad6486d8gsrn5zj1gz5g4-gnutls-3.6.12.tar.xz.drv
   /gnu/store/c9bcvcs8vfxbb3bjfnf6xz8fn0q3mpzg-guile-json-3.5.0.drv
   /gnu/store/ljvb88m45v5spy3awkgbx0xq5w4k0i3s-module-import-compiled.drv
   /gnu/store/mvmqvfydvydlgvx8m7z93yjl6lz11mp4-guile-sqlite3-0.1.0.drv
   /gnu/store/wfi3q8lp67v7k32p03vgn3bx6rrdvyhh-guile-sqlite3-0.1.0.tar.xz.drv
   /gnu/store/74gn6ag9l6ncyy01b26dr2hvbhv8g5ri-guile-sqlite3-0.1.0-checkout.drv
   /gnu/store/0jwirhxyyab70vwkg12fwmv9qhv5rf1g-module-import-compiled.drv
   /gnu/store/xdyq0m533k8l25bnvfm2lyfyf7r8mbhf-module-import.drv
   /gnu/store/mpqhrvsdybnm71l48padl504sqwi3nwr-config.scm.drv
   /gnu/store/y7hynmkiyhazm0jh13rxbilnlmmsn23a-gnutls-3.6.13.drv
   /gnu/store/n0s97hxqqgf97sdyzab4i8xlgmjz3bq6-gnutls-3.6.13.tar.xz.drv
   /gnu/store/avx51cfs50b0hmh2239z4q1rqf16a8vr-gnutls-3.6.13.tar.xz.drv
   /gnu/store/8qlc09v0hx507mmklrza55i1cw2xmxd4-module-import.drv
   /gnu/store/y7hynmkiyhazm0jh13rxbilnlmmsn23a-gnutls-3.6.13.drv
   /gnu/store/wddllyji3cg5hx2bk047nl220p4mgrpl-guile-gcrypt-0.2.1.drv
   /gnu/store/xyx7qn8r9wa3ap3wmlwhv74kw29gaajp-guile-gcrypt-0.2.1-checkout.drv
   /gnu/store/z2hch4y67hyl6ii5ia2ccrw68al3652z-guix-c5a2b7013-modules.drv
   /gnu/store/1fawp89d2np2fpv9cs7hfa9wmms5xhnk-guix-system-tests-modules.drv
   /gnu/store/fcjqwq8y6sm1bcip830wr397yrj1lkq9-guix-system-tests.drv
   /gnu/store/c9937mh7sw0an79ap3cfcckn011gh39h-guix-packages-base.drv
   /gnu/store/m155y877jvgvcrccqbjp72c8dimjlz21-guix-core-source.drv
   /gnu/store/w3229vmzf5620pkcn785xfw1ahl3jhri-config.scm.drv
   /gnu/store/rgd4qsf0aylwni4svliwa984hisj59fj-guix-extra.drv
   /gnu/store/vbvnh3x7phkgf1svlz25gq5d6fdb0cdv-guix-core.drv
   /gnu/store/vg359kcb0vdk4gfdprj7vy9728cv60gp-module-import-compiled.drv
   /gnu/store/cc8j1h0c9a55wl4awll9i4gqmsp1m8pm-guix-packages.drv
   /gnu/store/d8j8wm8adsa5h4i5ha8h9rjbm0wcwh23-guix-system.drv
   /gnu/store/ql90fvj22wqgrq0j0kh6gcm5wqfp06hh-guix-cli.drv
   /gnu/store/1m2ig3khpl9rdqz331n261h885yqfx03-guix-core-modules.drv
   /gnu/store/3ynb45v73v41wzzrkwcbl2ay53r6ss20-guix-config-modules.drv
   /gnu/store/vn3n565qdzcnxbm64kaira7f4hsimmsj-guix-config-source.drv
   /gnu/store/n26c9kviin49vdya29rqk2qzjj11l7mq-config.scm.drv
   /gnu/store/l07ywn8zbmy94gpwrxjkshdl4j168kwd-lzlib-1.11.drv
   /gnu/store/nglsdvxrgr3pz5d84szyl9swyjg12vxz-lzlib-1.11.tar.gz.drv
   /gnu/store/zvxnbhf6h1x5giih0z7c8a8la0zp2f06-guix-config.drv
   /gnu/store/4a7a6g2wa74xl556070sc0wwp8i1g9ka-guix-packages-base-modules.drv
   /gnu/store/jr3mfycc4776rr4qhifmwpshni47qf87-guix-extra-modules.drv
   /gnu/store/m2xh9xsrnarim5dk9kkjwa4plnhavriv-guix-cli-modules.drv
   /gnu/store/xrdyzp3dis96hgvv7b338fn4d0lkgrpi-guix-system-modules.drv
   /gnu/store/ypdpqkhicfg69x5sgvsyxi759pamgji8-guix-packages-modules.drv
   /gnu/store/x31jbznpjhkllqb6siasgl9rl7b1spsq-guix-locale-guix-packages.drv
   /gnu/store/wqhpk46g4z072mvmzhl8sr1drj0fzg7a-guix-manual.drv
   /gnu/store/dn7w2x43z6v3qjca68gh5ks7kcvriwb0-guix-translated-texinfo.drv
   /gnu/store/d3sxk2ix6hnjp3dy1gavarhhzpnibszy-module-import-compiled.drv
   /gnu/store/3lawhq0bp02s4h3a23p58b2fqs32xxmf-profile.drv
   /gnu/store/s9vwn36n87kjpb97fsxfhal6k7r87b9g-inferior-script.scm.drv

Backtrace:
           9 (primitive-load "/home/user/.config/guix/current/bin/guix")
In guix/ui.scm:
  2164:12  8 (run-guix-command _ . _)
In ice-9/boot-9.scm:
  1736:10  7 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
  1731:15  6 (with-exception-handler #<procedure 7fe060270480 at ice-9/boot-9.scm:1815:7 (exn)> _ #:unwind? _ # _)
In guix/scripts/package.scm:
  1087:10  5 (_)
In guix/status.scm:
    779:4  4 (call-with-status-report _ _)
In guix/store.scm:
   1305:8  3 (call-with-build-handler _ _)
   1305:8  2 (call-with-build-handler #<procedure 7fe0602770c0 at guix/ui.scm:1171:2 (continue store things mode)> _)
In unknown file:
           1 (_ #t)
In ice-9/boot-9.scm:
  1669:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1669:16: In procedure raise-exception:
Wrong type (expecting resumable continuation): #<vm-continuation 7fe04c37dd20>
```


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Installing a previous version of a package
  2021-03-27  2:40 Installing a previous version of a package Bone Baboon
@ 2021-03-27  8:29 ` Oleg Pykhalov
  2021-03-27 15:03   ` Bone Baboon
  2021-04-02  0:57 ` Bone Baboon
  1 sibling, 1 reply; 4+ messages in thread
From: Oleg Pykhalov @ 2021-03-27  8:29 UTC (permalink / raw)
  To: Bone Baboon; +Cc: help-guix

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

Hi,

Bone Baboon <bone.baboon@disroot.org> writes:

[…]

> (define channels
>   (append
>    (list
>     (channel
>      (name 'openvpn)
             ^^^^^^^^

I'm not sure that's the issue, but could you try 'guix instead?

>      (url "https://git.savannah.gnu.org/git/guix.git")
>      (commit "c5a2b70135c9830e9c3051ddf4a096f9a80eb952")))
>    %default-channels))
     ^^^^^^^^^^^^^^^^^

Don't need this in case you define 'guix channel above.

Oleg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Installing a previous version of a package
  2021-03-27  8:29 ` Oleg Pykhalov
@ 2021-03-27 15:03   ` Bone Baboon
  0 siblings, 0 replies; 4+ messages in thread
From: Bone Baboon @ 2021-03-27 15:03 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: help-guix


Oleg Pykhalov writes:

>> (define channels
>>   (append
>>    (list
>>     (channel
>>      (name 'openvpn)
>              ^^^^^^^^
>
> I'm not sure that's the issue, but could you try 'guix instead?
>
>>      (url "https://git.savannah.gnu.org/git/guix.git")
>>      (commit "c5a2b70135c9830e9c3051ddf4a096f9a80eb952")))
>>    %default-channels))
>      ^^^^^^^^^^^^^^^^^
>
> Don't need this in case you define 'guix channel above.

Thank you for the suggestion.

I get the same error if I change channels to be:

```
(define channels
  (list
    (channel
      (name 'guix)
      (url "https://git.savannah.gnu.org/git/guix.git")
      (commit "c5a2b70135c9830e9c3051ddf4a096f9a80eb952"))))
```


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Installing a previous version of a package
  2021-03-27  2:40 Installing a previous version of a package Bone Baboon
  2021-03-27  8:29 ` Oleg Pykhalov
@ 2021-04-02  0:57 ` Bone Baboon
  1 sibling, 0 replies; 4+ messages in thread
From: Bone Baboon @ 2021-04-02  0:57 UTC (permalink / raw)
  To: help-guix


How do others install a specific previous version of a package using
their system configuration and the `guix system reconfigure config.scm`
command?

I have been able to get a previous version of a package installed in
this case the 2.4.9 version of openvpn.

The command I used was:
`guix package --install-from-file=openvpn-2-4-9.scm`

The contents of `openvpn-2-4-9.scm` is below.  It is based on the
openvpn part of `guix/gnu/packages/vpn.scm` at the git commit that
defined version 2.4.9 of openvpn. 

```
(use-modules ((guix licenses) #:prefix license:)
	     (guix packages)
	     (guix download)
	     (guix git-download)
	     (guix build-system cmake)
	     (guix build-system gnu)
	     (guix build-system linux-module)
	     (guix build-system python)
	     (gnu packages)
	     (gnu packages admin)
	     (gnu packages base)
	     (gnu packages bash)
	     (gnu packages check)
	     (gnu packages dns)
	     (gnu packages autotools)
	     (gnu packages compression)
	     (gnu packages gettext)
	     (gnu packages gnupg)
	     (gnu packages guile)
	     (gnu packages libevent)
	     (gnu packages linux)
	     (gnu packages nss)
	     (gnu packages perl)
	     (gnu packages pkg-config)
	     (gnu packages python)
	     (gnu packages python-xyz)
	     (gnu packages tls)
	     (gnu packages xml))

(package
 (name "openvpn")
 (version "2.4.9")
 (source (origin
          (method url-fetch)
          (uri (string-append
                "https://swupdate.openvpn.org/community/releases/openvpn-"
                version ".tar.xz"))
          (sha256
           (base32
            "1qpbllwlha7cffsd5dlddb8rl22g9rar5zflkz1wrcllhvfkl7v4"))))
 (build-system gnu-build-system)
 (arguments
  '(#:configure-flags '("--enable-iproute2=yes")))
 (native-inputs
  `(("iproute2" ,iproute)))
 (inputs
  `(("lz4" ,lz4)
    ("lzo" ,lzo)
    ("openssl" ,openssl)
    ("linux-pam" ,linux-pam)))
 (home-page "https://openvpn.net/")
 (synopsis "Virtual private network daemon")
 (description
  "OpenVPN implements virtual private network (@dfn{VPN}) techniques
for creating secure point-to-point or site-to-site connections in routed or
bridged configurations and remote access facilities.  It uses a custom
security protocol that utilizes SSL/TLS for key exchange.  It is capable of
traversing network address translators (@dfn{NAT}s) and firewalls.")
 (license license:gpl2))
```


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-02  0:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-27  2:40 Installing a previous version of a package Bone Baboon
2021-03-27  8:29 ` Oleg Pykhalov
2021-03-27 15:03   ` Bone Baboon
2021-04-02  0:57 ` Bone Baboon

unofficial mirror of help-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git