From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cABkKzDzmV/YCgAA0tVLHw (envelope-from ) for ; Wed, 28 Oct 2020 22:39:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OK8UJzDzmV9WMQAAbx9fmQ (envelope-from ) for ; Wed, 28 Oct 2020 22:39:44 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 33FC59403CA for ; Wed, 28 Oct 2020 22:39:44 +0000 (UTC) Received: from localhost ([::1]:36810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXu6Y-0002FN-JA for larch@yhetil.org; Wed, 28 Oct 2020 18:39:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXu5q-0002F1-I9 for guix-devel@gnu.org; Wed, 28 Oct 2020 18:38:58 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:37244) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXu5o-0002PT-ND; Wed, 28 Oct 2020 18:38:57 -0400 Received: by mail-wm1-x329.google.com with SMTP id c16so757510wmd.2; Wed, 28 Oct 2020 15:38:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=jV1lNpvVgE35nsx9tUNf4yAzVBhXez3ZnBjT5lRoPG4=; b=epeJNnH33hv5D3QVfz/Tq2OmYN+Z3YURt2qhwGslsXIpkExf/8Su02Y314EARYnG9I WNu8tzYOETncuBO99FLUrZeDFSHBhEiLd66t+QPwlBN0E5aYWyFD1f6aqRAwSmEct/Nd Unn9qkLhV+fa0NGDmqYYpVyZedUkJREpDn6NvR/06kZRSsSLjaAWWMHyR7PwGXqL5DlU bpYxbynH4cUWEXCEKc1CM1YJaXyAxdJcSAGLs9nQgndFwRLfXEmclrDZ1KJr0SFa+fl4 /KQtjdDHFDmVCPNOJZGfkTF4BjBan4XcSm0pZsH5ZPUwefY/w934nLFyH1JpLLMhIWRo /cUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=jV1lNpvVgE35nsx9tUNf4yAzVBhXez3ZnBjT5lRoPG4=; b=pOMNhUmdk+sBQxjRREIWaZe9LEs9003L9tO+AfbgnVe5SJ32dvVOT3g4yIkauB1LdG tIcWI+0hvAdsa1cAwliAMsNVVnGUtTQJNoQ5c+VdsCwNM5YpnA0ybN/SqM6qo+y4oOat Y0j2JmRDhbpAz9Zac29Hu2MqCw7SnrPva+0pIdaQpW1zTeSToEWopLCV/tbaeE9fI7f/ 0SxKN+X/3F72zhuHFOYwyrxHnrFkg+BY52naYV1KIpxN928OnmXCTuPDfQvDypnMb0jV lHSarbd9niEhPxcqwCvQNeF8GlfqVRDHBu8Ggf9fJNYvdTZomS+UvU6FJqZLyCTAUpFR 4r8w== X-Gm-Message-State: AOAM5326RJGHbAWmjQBtnm69mAdRx94T5g+oRX4V+FNTsCsTo/tu4tqC ifICJwBOXHony673P5GMKnA= X-Google-Smtp-Source: ABdhPJxP8nX0AfZrfjUp84xMOQ5gsNLAGuIC9jpl3lrVWyFz141vgVGJG0ryigggP84y3ZAmrNBCQQ== X-Received: by 2002:a1c:5585:: with SMTP id j127mr1142613wmb.90.1603924734673; Wed, 28 Oct 2020 15:38:54 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id y10sm1379617wru.94.2020.10.28.15.38.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 15:38:54 -0700 (PDT) From: zimoun To: Luis Felipe , Joshua Branson Subject: Re: =?utf-8?Q?=E2=80=98xdg-mime-database=E2=80=99?= profile hook is slow In-Reply-To: References: <87o8l7pple.fsf@gnu.org> <87o8l279eb.fsf@gnu.org> <4JD1z15e92ccv6WXcMS5IiNJnDwR6P3bkIwtPWLUPYDVCUHYDoekpifyj3GQtnEq1LCKftbL-FV1hp162A1mid2EmjLMbWlxQ05aE9vGyf0=@protonmail.com> <87v9f842uu.fsf@gmail.com> <87v9f7gspm.fsf@dismail.de> <874kmn9adz.fsf_-_@gnu.org> <87ft5zqn2a.fsf@dismail.de> Date: Wed, 28 Oct 2020 23:38:52 +0100 Message-ID: <86blgmyo03.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x329.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_BTC_ID=0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel , Maxim Cournoyer Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=epeJNnH3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: 1.59 X-TUID: SmBdrc2S8vUa Dear, On Wed, 28 Oct 2020 at 21:48, Luis Felipe 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