Bug#1001833: guix pull throws "match-error"

2021-12-19 Thread Vagrant Cascadian
On 2021-12-19, alexander barakin wrote:
> 19.12.2021, 21:38, "Vagrant Cascadian" :
>
> On 2021-12-19, alexander barakin wrote:
>
>  17.12.2021, 19:20, "Vagrant Cascadian" :
> Maybe run "guix remove guix" to get back to the version from "guix pull"
> and log out and log in again, and see if that helps...
>
>  
> yes, i tried to do so:
>  
> $ guix --version
> guix (GNU Guix) 1.3.0-16.10ceb3e
> ...
> $ guix remove guix
> ...
> $ hash guix
> $ guix --version
> guix (GNU Guix) 1.2.0
> ...
> $ guix pull
> 
>  
>
> and i got the error described in the bug.

Is ~/.config/guix/current/bin in your $PATH? If you log out and log back
in again, /etc/profile.d/guix.sh should add the right variables to your
path. If $PATH does not contain ~/.config/guix/current/bin, as that is
where "guix pull" installs guix.


live well,
  vagrant


signature.asc
Description: PGP signature


Bug#1001833: guix pull throws "match-error"

2021-12-19 Thread Vagrant Cascadian
On 2021-12-19, alexander barakin wrote:
> 17.12.2021, 19:20, "Vagrant Cascadian" :
>
> try with the commit from v1.3.0 (ideally from a fresh install, or maybe
>
> using --allow-downgrades):
>
>   guix pull --commit=a0178d34f582b50e9bdbb0403943129ae5b560ff
>
> and then:
>
>   guix pull
>
> Though it might get you roughly the same issues.
>
> thank you, your hint helped!
> i described my actions here: https://unix.stackexchange.com/a/683059/110559
> and hope i was not mistaken.

I don't have a stackexchange account or I'd comment there...

The step where you "guix install guix" will always install an older
version of guix than you have through guix pull; that should not be
needed. What were you trying to solve with that step?

Maybe run "guix remove guix" to get back to the version from "guix pull"
and log out and log in again, and see if that helps...


live well,
  vagrant


signature.asc
Description: PGP signature


Bug#1001833: guix pull throws "match-error"

2021-12-17 Thread Vagrant Cascadian
On 2021-12-17, alexander barakin wrote:
> i have installed package guix (1.2.0-4).
> and try to run guix pull:
>
> [code]
> Updating channel 'guix' from Git repository at 
> 'https://git.savannah.gnu.org/git/guix.git'...
> Building from this channel:
>   guix  https://git.savannah.gnu.org/git/guix.git   b329c21
> Backtrace:
>6 (apply-smob/1 #)
> In ice-9/boot-9.scm:
> 705:2  5 (call-with-prompt _ _ #)
> In ice-9/eval.scm:
> 619:8  4 (_ #(#(#)))
> In guix/ui.scm:
>   2117:12  3 (run-guix-command _ . _)
> In ice-9/boot-9.scm:
> 829:9  2 (catch _ _ # …)
> 829:9  1 (catch _ _ # …)
> 829:9  0 (catch _ _ # …)
>
> ice-9/boot-9.scm:829:9: In procedure catch:
> Throw to key `match-error' with args `("match" "no matching pattern" (
> #:re-export-and-replace (delete)
> #:replace ((define-public* . define-public))
> #:export (content-hash content-hash? content-hash-algorithm content-hash-value
> origin origin? this-origin origin-uri origin-method origin-hash origin-sha256
...
> bag-transitive-target-inputs package-development-inputs package-closure
> default-guile default-guile-derivation set-guile-for-build package-file
> package->derivation package->cross-derivation origin->derivation)))'.
> [/code]
>
> i was able to work around this error:
> [code]
> $ guix pull --branch=version-1.3.0
> [/code]

try with the commit from v1.3.0 (ideally from a fresh install, or maybe
using --allow-downgrades):

  guix pull --commit=a0178d34f582b50e9bdbb0403943129ae5b560ff

and then:

  guix pull

Though it might get you roughly the same issues.

Massive changes were recently merged into guix master, so it wouldn't be
terribly surprising if something incompatible crept in...

I'll try to reproduce the issue, though not sure exactly when I'll get
the chance.


live well,
  vagrant


signature.asc
Description: PGP signature


Bug#1001833: guix pull throws "match-error"

2021-12-17 Thread alexander barakin (aka sash-kan)
Package: guix
Version: 1.2.0-4
Severity: normal

Dear Maintainer,

i have installed package guix (1.2.0-4).
and try to run guix pull:

[code]
Updating channel 'guix' from Git repository at 
'https://git.savannah.gnu.org/git/guix.git'...
Building from this channel:
  guix  https://git.savannah.gnu.org/git/guix.git   b329c21
Backtrace:
   6 (apply-smob/1 #)
In ice-9/boot-9.scm:
705:2  5 (call-with-prompt _ _ #)
In ice-9/eval.scm:
619:8  4 (_ #(#(#)))
In guix/ui.scm:
  2117:12  3 (run-guix-command _ . _)
In ice-9/boot-9.scm:
829:9  2 (catch _ _ # …)
829:9  1 (catch _ _ # …)
829:9  0 (catch _ _ # …)

ice-9/boot-9.scm:829:9: In procedure catch:
Throw to key `match-error' with args `("match" "no matching pattern" (
#:re-export-and-replace (delete)
#:replace ((define-public* . define-public))
#:export (content-hash content-hash? content-hash-algorithm content-hash-value
origin origin? this-origin origin-uri origin-method origin-hash origin-sha256
origin-file-name origin-actual-file-name origin-patches origin-patch-flags
origin-patch-inputs origin-patch-guile origin-snippet origin-modules
base32 base64 package package? this-package package-name package-upstream-name
package-version package-full-name package-source package-build-system
package-arguments package-inputs package-native-inputs package-propagated-inputs
package-outputs package-native-search-paths package-search-paths 
package-replacement
package-synopsis package-description package-license package-home-page
package-supported-systems package-properties package-location
package-definition-location hidden-package hidden-package? package-superseded
deprecated-package package-field-location this-package-input 
this-package-native-input
lookup-package-input lookup-package-native-input lookup-package-propagated-input
lookup-package-direct-input prepend replace modify-inputs package-direct-sources
package-transitive-sources package-direct-inputs package-transitive-inputs
package-transitive-target-inputs package-transitive-native-inputs
package-transitive-propagated-inputs package-transitive-native-search-paths
package-transitive-supported-systems package-mapping package-input-rewriting
package-input-rewriting/spec package-source-derivation package-derivation
package-cross-derivation package-output package-grafts 
package-patched-vulnerabilities
package-with-patches package-with-extra-patches package-with-c-toolchain
package/inherit transitive-input-references %supported-systems %hurd-systems
%cuirass-supported-systems supported-package? &package-error package-error?
package-error-package &package-input-error package-input-error?
package-error-invalid-input &package-cross-build-system-error
package-cross-build-system-error? package->bag bag->derivation bag-direct-inputs
bag-transitive-inputs bag-transitive-host-inputs bag-transitive-build-inputs
bag-transitive-target-inputs package-development-inputs package-closure
default-guile default-guile-derivation set-guile-for-build package-file
package->derivation package->cross-derivation origin->derivation)))'.
[/code]

i was able to work around this error:
[code]
$ guix pull --branch=version-1.3.0
[/code]

but even after that I couldn't get updates from master:
[code]
$ guix pull
Updating channel 'guix' from Git repository at 
'https://git.savannah.gnu.org/git/guix.git'...
guix pull: error: aborting update of channel 'guix' to commit 
a9abb75dc87c0fe532905746912a39250d97293f, which is not a descendant of 
aa34d4d28dfe25ba47d5800d05000fb7221788c0
hint: This could indicate that the channel has been tampered with and is trying 
to force a roll-back,
preventing you from getting the latest updates.  If you think this is not the 
case, explicitly
allow non-forward updates.
[/code]

and this command generates exactly the same error as described at the beginning:
$ guix pull --allow-downgrades

as far as i understand, in order for "guix pull" to work,
it is necessary to update the guix and guile* packages.


-- System Information:
Debian Release: 11.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-9-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages guix depends on:
ii  guile-2.2   2.2.7+1-6
ii  guile-2.2-libs  2.2.7+1-6
ii  guile-gcrypt0.3.0-3
ii  guile-git   0.4.0-3
ii  guile-gnutls3.7.1-5
ii  guile-json  4.3.2-2
ii  guile-lzlib 0.0.2-2
ii  guile-sqlite3   0.1.3-2
ii  guile-ssh   0.13.1-4
ii  guile-zlib  0.0.1-3
ii  libbz2-1.0  1.0.8-4
ii  libc6   2.31-13+deb11u2
ii  libgcc-s1   10.2.1-6
ii  libgcrypt20 1.8.7-6
ii  libsqlite3-03.34.1-3
ii  libssh-dev  0.9.5-1+deb11u1
ii  libstdc++6