From: excalamus--- via <help-guix@gnu.org>
To: Help Guix <help-guix@gnu.org>
Subject: Remove build
Date: Sat, 21 Aug 2021 19:41:28 +0200 (CEST) [thread overview]
Message-ID: <MhdnOkT--3-2@tutanota.com> (raw)
I'm trying to update stenography.scm to use a later version of plover. I made a few changes (given below), some appropriate, others not, and ran guix build -K --file=xc.stenography.scm. It built and runs directly from the store. Great. I want to fix the inappropriate changes and create a proper package. But, how can I remove the build from the store?
It looks like guix gc is what I need. However, it won't delete store items which are "live". I understand "live" to mean "reachable from a root" where a "root" is a symlink returned by guix gc --list-roots. Checking the link corresponding to my latest generation, the build isn't anywhere in bin. I expected this, as it wasn't packaged or added to a profile afaik. The symlinks in /var/guix/profiles/per-user/ahab/guix-profile-80-link/bin all point toward the old version of plover.
ahab@pequod /var/guix/profiles/per-user/ahab/guix-profile-80-link$ fd -L plover
share/doc/plover-4.0.0.dev8
bin/plover
lib/python3.8/site-packages/plover-4.0.0.dev8-py3.8.egg-info
lib/python3.8/site-packages/plover
lib/python3.8/site-packages/plover/gui_qt/messages/plover.pot
lib/python3.8/site-packages/plover/gui_qt/resources/plover.png
lib/python3.8/site-packages/plover/gui_qt/messages/fr/LC_MESSAGES/plover.po
lib/python3.8/site-packages/plover/assets/plover.ico
lib/python3.8/site-packages/plover/assets/plover-icon.svg
lib/python3.8/site-packages/plover/assets/plover.png
lib/python3.8/site-packages/plover_build_utils
Doing info-apropos within Emacs, I found the guix-store-item command. It had this tempting "delete" button which, as far as I could tell, was not documented. I pressed it. To my surprise, it deleted the file. Great. But the manual also says,
"removing files or directories manually may break it beyond repair!"
Have I borked my /gnu/store? How can I, or could I have if it's too late, removed the build?
*** /home/ahab/Projects/my_plover/xc.stenography.scm 2021-08-21 12:19:46.512876928 -0400
--- /home/ahab/.config/guix/current/share/guile/site/3.0/gnu/packages/stenography.scm 1969-12-31 19:00:01.000000000 -0500
***************
*** 17,23 ****
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
! (define-module (plover)
#:use-module (guix build-system python)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
--- 17,23 ----
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
! (define-module (gnu packages stenography)
#:use-module (guix build-system python)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
***************
*** 30,48 ****
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages wxwidgets))
! (define-public xc/plover
(package
(name "plover")
! (version "4.0.0.dev10")
(source
(origin
(method git-fetch)
(uri (git-reference
! (url "https://github.com/openstenoproject/plover")
! (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
! (base32 "1nyllqv4jq4idgn4cp5mypransw3rh3x8c1h9p6ld1anfr3zx7m0"))))
(build-system python-build-system)
(native-inputs
`(("python-mock" ,python-mock)
--- 30,48 ----
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages wxwidgets))
! (define-public plover
(package
(name "plover")
! (version "4.0.0.dev8")
(source
(origin
(method git-fetch)
(uri (git-reference
! (url "https://github.com/openstenoproject/plover")
! (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
! (base32 "1b2ys77bkjsdmyg97i7lq3lj45q56bycvsm06d4rs656kxhvc0a3"))))
(build-system python-build-system)
(native-inputs
`(("python-mock" ,python-mock)
***************
*** 65,68 ****
speeds of 200WPM and beyond.")
(license license:gpl2+)))
- xc/plover
--- 65,67 ----
next reply other threads:[~2021-08-21 17:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-21 17:41 excalamus--- via [this message]
2021-08-21 21:04 ` Remove build Leo Famulari
2021-08-22 13:26 ` excalamus--- via
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=MhdnOkT--3-2@tutanota.com \
--to=help-guix@gnu.org \
--cc=excalamus@tutanota.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).