From: zimoun <zimon.toutoune@gmail.com>
To: Luis Felipe <luis.felipe.la@protonmail.com>,
Joshua Branson <jbranso@dismail.de>
Cc: guix-devel <guix-devel@gnu.org>,
Maxim Cournoyer <maxim.cournoyer@gmail.com>
Subject: Re: ‘xdg-mime-database’ profile hook is slow
Date: Wed, 28 Oct 2020 23:38:52 +0100 [thread overview]
Message-ID: <86blgmyo03.fsf@gmail.com> (raw)
In-Reply-To: <teuOd2Q7Dbrx6oqUwBMU0LqyBVxb35-URBXKJ0OS0xjTrTxUYpoeKt5hTCxbfNWxDVq94Ez3Z2X0K-hPxzHJJczuP8PT8zL-SvDNYu5Bpu0=@protonmail.com>
Dear,
On Wed, 28 Oct 2020 at 21:48, Luis Felipe <luis.felipe.la@protonmail.com> wrote:
>> #+BEGIN_SRC sh :results output :exports both
>> time guix build --check $(guix gc -R $(guix gc --derivers $(readlink -f ~/.guix-profile)) |grep xdg-mime-database.drv)
>> #+END_SRC
>
> I haven't run this command because I don't know what it does (how will
> it affect my profile?), but if you think the results from this command
> would be more useful than what I posted to issue #44053, please let me
> know and I'll run it.
The command will not affect your profile.
1. Get the real file of all the symlinks forest
$ readlink -f ~/.guix-profile
/gnu/store/z32aid8bjbz7ylwbjfh5x6lbg2g7fiv0-profile
2. Get the derivation that generated this file
$ guix gc --derivers /gnu/store/z32aid8bjbz7ylwbjfh5x6lbg2g7fiv0-profile
/gnu/store/wnjk3zsrw6s55hqj0qbbwhx635i5s6n0-profile.drv
3. Get all that it is used by the previous derivation
$ guix gc -R /gnu/store/wnjk3zsrw6s55hqj0qbbwhx635i5s6n0-profile.drv
/gnu/store/z41v36kbd8xa1l2ga2lsaa287yyk7wdb-nasm-2.14.02-guile-builder
/gnu/store/ich43zbavdqphzshfr5q5d00arissxa7-nasm-2.14.02.tar.xz.drv
/gnu/store/0rifkf1snq6fjz7l4dpg5j3i2wgj7gxp-nasm-2.14.02.drv
[...] a **lot** of items
/gnu/store/3x2kak8abb6z2klch72kfff2qxzv00pj-libpng-1.6.37
/gnu/store/3qrm6z400hh66x1kxd4zrbnkkylwcvg8-ca-certificate-bundle.drv
/gnu/store/2jlwri28aycsayql85rfphrks721ny1k-xdg-mime-database.drv
/gnu/store/1i57pf9q71sm7gpqkh15h677794y61dz-profile-builder
/gnu/store/0llx3y194278l5ksr4xh9kc64mh8nn8d-nss-certs-3.52.1
/gnu/store/wnjk3zsrw6s55hqj0qbbwhx635i5s6n0-profile.drv
4. Get only the one you are interested in
$ guix gc -R /gnu/store/wnjk3zsrw6s55hqj0qbbwhx635i5s6n0-profile.drv | grep xdg-mime-database.drv
/gnu/store/2jlwri28aycsayql85rfphrks721ny1k-xdg-mime-database.drv
5. Build again this derivation (--check)
$ time guix build --check /gnu/store/2jlwri28aycsayql85rfphrks721ny1k-xdg-mime-database.drv
The following profile hook will be built:
/gnu/store/2jlwri28aycsayql85rfphrks721ny1k-xdg-mime-database.drv
building XDG MIME database...
successfully built /gnu/store/2jlwri28aycsayql85rfphrks721ny1k-xdg-mime-database.drv
/gnu/store/hrcj1h0hl9f6hm1akh682zj1mhpwbx4c-xdg-mime-database
real 0m3.493s
user 0m0.435s
sys 0m0.066s
Does it make sense?
Well from my POV, the information is #44053 is enough for now. :-)
All the best,
simon
next prev parent reply other threads:[~2020-10-28 22:39 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-12 12:59 Removing/replacing “Guix in action” video from the home page? Ludovic Courtès
2020-10-12 14:31 ` Luis Felipe
2020-10-13 1:17 ` Joshua Branson
2020-10-13 17:19 ` Bonface M. K.
2020-10-13 20:59 ` Joshua Branson
2020-10-14 0:58 ` Bonface M. K.
2020-10-13 20:39 ` Ludovic Courtès
2020-10-14 0:14 ` Luis Felipe
2020-10-14 20:43 ` Joshua Branson
2020-10-16 10:27 ` Ludovic Courtès
2020-10-16 10:36 ` zimoun
2020-10-16 15:26 ` Luis Felipe
2020-10-18 3:42 ` Maxim Cournoyer
2020-10-18 11:13 ` zimoun
2020-10-18 20:55 ` Joshua Branson
2020-10-21 9:49 ` ‘xdg-mime-database’ profile hook is slow Ludovic Courtès
2020-10-21 10:23 ` zimoun
2020-10-27 23:14 ` Joshua Branson
2020-10-28 21:48 ` Luis Felipe
2020-10-28 22:38 ` zimoun [this message]
2020-10-29 12:35 ` Luis Felipe
[not found] ` <87sg9sm2qf.fsf@gnu.org>
2020-11-02 12:53 ` bug#44053: " Ludovic Courtès
2020-11-02 14:04 ` Ludovic Courtès
2020-11-03 23:32 ` zimoun
2020-11-05 14:47 ` Luis Felipe
2020-11-05 16:10 ` zimoun
2020-11-05 17:59 ` Luis Felipe
2020-11-06 12:55 ` zimoun
[not found] ` <87blga3l7e.fsf@gnu.org>
2020-11-06 13:57 ` Luis Felipe
2020-11-08 16:31 ` Ludovic Courtès
2020-11-06 9:12 ` Ludovic Courtès
2020-10-16 20:00 ` Removing/replacing “Guix in action” video from the home page? jbranso
2020-10-16 21:04 ` Luis Felipe
2020-10-28 0:55 ` Joshua Branson
2020-10-28 12:59 ` Tobias Geerinckx-Rice
2020-10-28 21:46 ` jbranso
2020-10-31 21:56 ` Ludovic Courtès
2020-11-01 0:50 ` jbranso
2020-11-03 22:30 ` zimoun
2020-10-16 19:57 ` jbranso
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=86blgmyo03.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=guix-devel@gnu.org \
--cc=jbranso@dismail.de \
--cc=luis.felipe.la@protonmail.com \
--cc=maxim.cournoyer@gmail.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).