From: Jone <yeger9@gmail.com>
To: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
Cc: help-guix@gnu.org, yeger9@gmail.com
Subject: Re: Unexpected results with Guix.
Date: Thu, 07 Nov 2019 03:18:52 +0000 [thread overview]
Message-ID: <5dc362db.1c69fb81.593bc.05d7@mx.google.com> (raw)
In-Reply-To: <20191103063254.q2j5xq7nbnmyfhop@pelzflorian.localdomain>
> Please also try `guix gc --referrers`.
That's right. I wrote a simple script, which shows it:
#!/bin/sh
if [ -z "$1" ]
then exit 1
fi
cprof=$(readlink -f ~/.guix-profile)
init=/gnu/store/*-$1*/
rtest="$(eval echo $init)" # trick!
if [ "$rtest" = "$init" ]
then init=$1
fi
for f in $init
do
f=${f%/}
ref="$(guix gc --referrers $f | grep -v $f)"
if echo "$ref" | grep -q $cprof
then
echo $f in CURRENT profile!
exit
else
echo ● $f 1>&2
if ((${#ref} > 10))
then echo "$ref" | grep --color -e ".*-system" -e "^"
else echo NO REFERRERS 1>&2
fi
echo
fi
## and recursively
for j in $(echo "$ref" | grep -E 'profile$')
do eval $0 $j
done
done
exit
- Results for 'icecat':
~/Desktop> guix-gc-refcount.sh icecat
● /gnu/store/50530hgnzkxgkqciip68dn7v23cslw1c-icecat-60.8.0-guix1
/gnu/store/8x0ipsgl2dhdi7n1psrh8dssv8dh39dd-xdg-desktop-database
/gnu/store/njwpq4ywz17rgvvbdds20cndrgwsrcxs-gtk-icon-themes
/gnu/store/zxqr8afp3rpd2r3g9x41sqg5mx525355-profile
● /gnu/store/zxqr8afp3rpd2r3g9x41sqg5mx525355-profile
NO REFERRERS
- Results for my own package 'wdfs':
guix-gc-refcount.sh wdfs
/gnu/store/7j1zhlwqjmhyvr7mg8il02xvqvd9yfmz-wdfs-1.4.2 in CURRENT profile!
Incomprehensibly..
next prev parent reply other threads:[~2019-11-07 0:18 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-02 16:39 Unexpected results with Guix Jone
2019-11-02 13:50 ` Tobias Geerinckx-Rice
2019-11-02 14:00 ` Tobias Geerinckx-Rice
2019-11-02 18:11 ` Jone
2019-11-02 13:52 ` Pierre Neidhardt
2019-11-02 17:40 ` Jone
2019-11-02 15:02 ` Pierre Neidhardt
2019-11-02 18:49 ` Jone
2019-11-02 18:09 ` pelzflorian (Florian Pelz)
2019-11-03 3:26 ` Jone
2019-11-03 6:32 ` pelzflorian (Florian Pelz)
2019-11-07 3:18 ` Jone [this message]
2019-11-07 6:40 ` pelzflorian (Florian Pelz)
2019-11-07 13:39 ` Jone
2019-11-07 10:51 ` pelzflorian (Florian Pelz)
2019-11-07 11:39 ` pelzflorian (Florian Pelz)
2019-11-07 16:46 ` Jone
2019-11-07 14:53 ` pelzflorian (Florian Pelz)
2019-11-07 14:29 ` Jone
2019-11-02 15:36 ` pelzflorian (Florian Pelz)
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=5dc362db.1c69fb81.593bc.05d7@mx.google.com \
--to=yeger9@gmail.com \
--cc=help-guix@gnu.org \
--cc=pelzflorian@pelzflorian.de \
/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).