Re: "Unsupported manifest format" error, likely corrupt store
Don't bother with guix refresh, it's meant for huix devs. If you have a previous generation of your profile, you could try and switch to it (guix package --roll-back), but you said that didn't work. You can also switch manually by repeating the steps Guix would take behind the scenes, manually. You'll notice that ~/.guix-profile is a symlink to /var/guix/profiles/per-user/tyler/guix-profile. It itself is a symlink to the current generation, a file such as guix-profile-17-link. Change that last symlink to point to the previous generation instead, such as guix-profile-16-link. That's all you need to switch generation. Hopefully, that generation's manifest is not corrupted. Le 26 novembre 2022 22:34:11 GMT+01:00, Tyler Wolf via a écrit : >Hello, > >Yesterday my PC lost power and when I turned it back on I started getting the >error "guix package: unsupported manifest format". > >I have tried using "guix time-machine" to revert to a working commit and try >again but this does not work. I have also tried a roll-back. > >I then can see that my ~/.guix-profile/manifest is empty, thus I think it is >safe to say that this is where the issue is originating, however I am unable >to rewrite this file, so I was wondering if there was any fix to this? > >I have tried everything that I can think of to repopulate this file, running >guix pull as well as pulling certain past commits that worked, however nothing >is fixing this error. Running pull works without errors, but the problem >persists. > >I think that my store must be corrupt, as if I run guix gc --verify=contents I >get a lot of path was modified, expected hash x, got y errors. I have tried >fixing this using repair flag for gc but it is unable to repair these. > >I also used the command "guix refresh" and saw that many packages needed to be >refreshed, however I cannot finish this command as I get the following error: > >Backtrace: >13 (primitive-load "/home/tyler/.config/guix/current/bin/g…") >In guix/ui.scm: >2275:7 12 (run-guix . _) >2238:10 11 (run-guix-command _ . _) >In ice-9/boot-9.scm: >1752:10 10 (with-exception-handler _ _ #:unwind? _ # _) >1752:10 9 (with-exception-handler _ _ #:unwind? _ # _) >In guix/store.scm: >661:37 8 (thunk) >2170:25 7 (run-with-store # …) >In guix/scripts/refresh.scm: >567:14 6 (_ _) >In srfi/srfi-1.scm: >634:9 5 (for-each # …) >In guix/scripts/refresh.scm: >367:10 4 (check-for-package-update # …) >In srfi/srfi-1.scm: >858:15 3 (any1 # …) >In guix/gnu-maintenance.scm: >842:10 2 (_ _ . _) >In ice-9/boot-9.scm: >1685:16 1 (raise-exception _ #:continuable? _) >1685:16 0 (raise-exception _ #:continuable? _) > >Any help would be greatly appreciated. > >Thanks,Tyler Wolf
"Unsupported manifest format" error, likely corrupt store
Hello, Yesterday my PC lost power and when I turned it back on I started getting the error "guix package: unsupported manifest format". I have tried using "guix time-machine" to revert to a working commit and try again but this does not work. I have also tried a roll-back. I then can see that my ~/.guix-profile/manifest is empty, thus I think it is safe to say that this is where the issue is originating, however I am unable to rewrite this file, so I was wondering if there was any fix to this? I have tried everything that I can think of to repopulate this file, running guix pull as well as pulling certain past commits that worked, however nothing is fixing this error. Running pull works without errors, but the problem persists. I think that my store must be corrupt, as if I run guix gc --verify=contents I get a lot of path was modified, expected hash x, got y errors. I have tried fixing this using repair flag for gc but it is unable to repair these. I also used the command "guix refresh" and saw that many packages needed to be refreshed, however I cannot finish this command as I get the following error: Backtrace: 13 (primitive-load "/home/tyler/.config/guix/current/bin/g…") In guix/ui.scm: 2275:7 12 (run-guix . _) 2238:10 11 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 10 (with-exception-handler _ _ #:unwind? _ # _) 1752:10 9 (with-exception-handler _ _ #:unwind? _ # _) In guix/store.scm: 661:37 8 (thunk) 2170:25 7 (run-with-store # …) In guix/scripts/refresh.scm: 567:14 6 (_ _) In srfi/srfi-1.scm: 634:9 5 (for-each # …) In guix/scripts/refresh.scm: 367:10 4 (check-for-package-update # …) In srfi/srfi-1.scm: 858:15 3 (any1 # …) In guix/gnu-maintenance.scm: 842:10 2 (_ _ . _) In ice-9/boot-9.scm: 1685:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) Any help would be greatly appreciated. Thanks,Tyler Wolf
Adding files to base-initrd
Is there a way to add extra files to base-initrd in guix system configuration? The use case I have in mind is adding a key file for my encrypted drive to the initrd so that I would only have to enter my password once. Now I have to enter it once for GRUB and then once again for linux. - Saku Laesvuori signature.asc Description: PGP signature
Re: use guix shell with a file (e.g. tissue.scm)
:) I have always appreciated Arun's design choices. His inputs regarding Skribilo and Xapian mark him down as a man of exquisite taste. You should consider joining those mailinglists. On 26-11-2022 15:38, Giovanni Biscuolo wrote: Hi, I just want to share with you a temporary solution for users who wish to try out tissue or other packages before they are included in Guix upstream. ...and yes, unlike me advanced Guix users may find this obvious :-) Put this file in your preferred directory (~/guix/unpackaged/ in the example below) and then: --8<---cut here---start->8--- guix shell -f ~/guix/unpackaged/tissue.scm -- tissue help --8<---cut here---end--->8--- The first time the package(s) gets compiled, so it'll take as time as needed, from the second time onwards the guix shell cache will do its job and the command will run immediatly. With this trick you can use Guix to install tissue [1] and use it for your project - or tissue issues [2] - before tissue is packaged in Guix. «One Guix to rule them all» :-D Happy hacking! [1] even on foreign distros obviuosly [2] web view: https://issues.genenetwork.org/?type=open-issue -- Jonathan McHugh indieterminacy@libre.brussels
tilix tilix tilix
starting phase `check' _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created. ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c demos/gtkD/TestWindow/TestText.d -ofdemos/gtkD/TestWindow/TestText.o ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c demos/gtkD/TestWindow/TTextView.d -ofdemos/gtkD/TestWindow/TTextView.o ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c demos/gtkD/TestWindow/TestDrawingArea.d -ofdemos/gtkD/TestWindow/TestDrawingArea.o ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c demos/gtkD/TestWindow/TestTreeView.d -ofdemos/gtkD/TestWindow/TestTreeView.o ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c demos/gtkD/TestWindow/TestScales.d -ofdemos/gtkD/TestWindow/TestScales.o ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c demos/gtkD/TestWindow/TEditableCells.d -ofdemos/gtkD/TestWindow/TEditableCells.o ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c demos/gtkD/TestWindow/TestAspectFrame.d -ofdemos/gtkD/TestWindow/TestAspectFrame.o ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c demos/gtkD/TestWindow/TestImage.d -ofdemos/gtkD/TestWindow/TestImage.o demos/gtkD/TestWindow/TestAspectFrame.d(34): Error: import `TestAspectFrame.TestDrawingArea` is used as a type make: *** [GNUmakefile:257: demos/gtkD/TestWindow/TestAspectFrame.o] Error 1 make: *** Waiting for unfinished jobs Test suite failed, dumping logs. error: in phase 'check': uncaught exception: %exception #< program: "make" arguments: ("test" "-j" "4" "DC=ldc2" "prefix=/gnu/store/rq4gswaiq0yx3mk4zr03hi5hzxk00fji-gtkd-3.9.0" "libdir=/gnu/store/rq4gswaiq0yx3mk4zr03hi5hzxk00fji-gtkd-3.9.0/lib") exit-status: 2 term-signal: #f stop-signal: #f> phase `check' failed after 8.1 seconds command "make" "test" "-j" "4" "DC=ldc2" "prefix=/gnu/store/rq4gswaiq0yx3mk4zr03hi5hzxk00fji-gtkd-3.9.0" "libdir=/gnu/store/rq4gswaiq0yx3mk4zr03hi5hzxk00fji-gtkd-3.9.0/lib" failed with status 2 note: keeping build directory `/tmp/guix-build-gtkd-3.9.0.drv-0' builder for `/gnu/store/3sxy95m74p3sijpfdrjla88mnllfzsbb-gtkd-3.9.0.drv' failed with exit code 1 build of /gnu/store/3sxy95m74p3sijpfdrjla88mnllfzsbb-gtkd-3.9.0.drv failed View build log at '/var/log/guix/drvs/3s/xy95m74p3sijpfdrjla88mnllfzsbb-gtkd-3.9.0.drv.gz'. cannot build derivation `/gnu/store/yis8nw1k9akhvwlbci9yzkva2g0cw190-tilix-1.9.5.drv': 1 dependencies couldn't be built guix build: error: build of `/gnu/store/yis8nw1k9akhvwlbci9yzkva2g0cw190-tilix-1.9.5.drv' failed WDYT (define-public tilix (package (name "tilix") (version "1.9.5") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/gnunn1/tilix;) (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0sb1hypg2276y8c2a5vivrkcxp70swddvhnd9h273if3kv6j879r" (build-system meson-build-system) (arguments '(#:tests? #f #:configure-flags '("-Dbuildtype=debugoptimized"))) (inputs (list dbus gettext-minimal dconf gsettings-desktop-schemas gtkd libsecret libunwind)) (native-inputs (list desktop-file-utils ldc pkg-config python-wrapper appstream)) (home-page "https://gnunn1.github.io/tilix-web/;) (synopsis "Tiling terminal emulator following the Gnome Human Interface Guidelines") (description "Tilix is a tiling terminal emulator following the Gnome Human Interface Guidelines.") (license license:mpl2.0)))
use guix shell with a file (e.g. tissue.scm)
Hi, I just want to share with you a temporary solution for users who wish to try out tissue or other packages before they are included in Guix upstream. ...and yes, unlike me advanced Guix users may find this obvious :-) Put this file (use-modules (gnu packages autotools) (gnu packages gettext) (gnu packages guile) (gnu packages guile-xyz) ((gnu packages skribilo) #:prefix guix:) (guix build-system gnu) (guix gexp) (guix packages) (guix git-download) ((guix licenses) #:prefix license:)) (define skribilo-latest (let ((commit "621eb1945aec8f26f5aee4bdf896f2434e145182") (revision "1")) (package (inherit guix:skribilo) (name "skribilo") (version (git-version "0.9.5" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://git.systemreboot.net/skribilo;) (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "16rdcvszl9x183y32hjdwns0lkrvkmwd2fsshymspb12k4cxj6i4" (native-inputs `(("autoconf" ,autoconf) ("automake" ,automake) ("gettext" ,gnu-gettext) ,@(package-native-inputs guix:skribilo)) (define tissue (let ((commit "6d6285d071132960835f848a1703faaea2356937") (revision "3")) (package (name "tissue") (version (git-version "0.1.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://git.systemreboot.net/tissue;) (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "1dlcy7m4gz1vmklyny4mxky9822q5hjc4qdmn42yf2qvh8xy62g5" (build-system gnu-build-system) (arguments (list #:make-flags #~(list (string-append "prefix=" #$output)) #:modules `(((guix build guile-build-system) #:select (target-guile-effective-version)) ,@%gnu-build-system-modules) #:phases (with-imported-modules '((guix build guile-build-system)) #~(modify-phases %standard-phases (replace 'patch-source-shebangs (lambda* (#:key inputs #:allow-other-keys) (substitute* "bin/tissue" (("^exec guile") (string-append "exec " (search-input-file inputs "/bin/guile")) (delete 'configure) (add-after 'install 'wrap (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (effective-version (target-guile-effective-version))) (wrap-program (string-append out "/bin/tissue") `("GUILE_LOAD_PATH" prefix (,(string-append out "/share/guile/site/" effective-version) ,(getenv "GUILE_LOAD_PATH"))) `("GUILE_LOAD_COMPILED_PATH" prefix (,(string-append out "/lib/guile/" effective-version "/site-ccache") ,(getenv "GUILE_LOAD_COMPILED_PATH"))) (inputs (list guile-3.0 guile-filesystem guile-git guile-xapian)) (propagated-inputs (list skribilo-latest)) (home-page "https://tissue.systemreboot.net;) (synopsis "Text based issue tracker") (description "tissue is a text based issue tracker.") (license license:gpl3+ tissue in your preferred directory (~/guix/unpackaged/ in the example below) and then: --8<---cut here---start->8--- guix shell -f ~/guix/unpackaged/tissue.scm -- tissue help --8<---cut here---end--->8--- The first time the package(s) gets compiled, so it'll take as time as needed, from the second time onwards the guix shell cache will do its job and the command will run immediatly. With this trick you can use Guix to install tissue [1] and use it for your project - or tissue issues [2] - before tissue is packaged in Guix. «One Guix to rule them all» :-D Happy hacking! [1] even on foreign distros obviuosly [2] web view: https://issues.genenetwork.org/?type=open-issue -- Giovanni Biscuolo Xelera IT Infrastructures signature.asc Description: PGP signature
Emacs Impatient Mode File Access
Hi! I wrote a package for https://github.com/skeeto/impatient-mode It works to the point where I get a list of “Public Buffers” with one item as expected on http://localhost:8080/imp/, but when I click “test.html”, I get: error: (file-missing Opening input file No such file or directory /gnu/store/dszh53pr1a76ff6jqzhxs7krkmgdic2m-emacs-impatient-20200723.2117/share/emacs/site-lisp/impatient-20200723.2117/index.html) Now what to do? The package: --- (define-module (emacs-impatient) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system emacs) #:use-module (gnu packages emacs-xyz)) (define-public emacs-impatient (package (name "emacs-impatient") (version "20200723.2117") (source (origin (method url-fetch) (uri (string-append "https://melpa.org/packages/impatient-mode-; version ".tar")) (sha256 (base32 "03c1dfygjlb5pzaafapv0y2mvcjlq9lhavbdqqwjv203lbs8fc66" (build-system emacs-build-system) (propagated-inputs (list emacs-simple-httpd emacs-htmlize)) (home-page "https://github.com/skeeto/impatient-mode;) (synopsis "Emacs mode for live-viewing changes to HTML in a browser") (description "See the effect of your HTML as you type it.") (license license:public-domain))) --- Thanks!