From unknown Fri Jun 20 05:30:19 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#15890 <15890@debbugs.gnu.org> To: bug#15890 <15890@debbugs.gnu.org> Subject: Status: Please provide a way to delete old build directories. Reply-To: bug#15890 <15890@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:30:19 +0000 retitle 15890 Please provide a way to delete old build directories. reassign 15890 guix submitter 15890 John Darrington severity 15890 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 14 03:15:23 2013 Received: (at submit) by debbugs.gnu.org; 14 Nov 2013 08:15:23 +0000 Received: from localhost ([127.0.0.1]:51339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vgs5C-0002Fx-7v for submit@debbugs.gnu.org; Thu, 14 Nov 2013 03:15:22 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34704) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vgs58-0002Fg-FI for submit@debbugs.gnu.org; Thu, 14 Nov 2013 03:15:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vgs4y-0004uy-Dq for submit@debbugs.gnu.org; Thu, 14 Nov 2013 03:15:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgs4y-0004ur-Ap for submit@debbugs.gnu.org; Thu, 14 Nov 2013 03:15:08 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgs4t-0002uQ-I9 for bug-guix@gnu.org; Thu, 14 Nov 2013 03:15:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vgs4o-0004d0-Kq for bug-guix@gnu.org; Thu, 14 Nov 2013 03:15:03 -0500 Received: from de.cellform.com ([88.217.224.109]:33761 helo=jocasta.intra) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgs4o-0004ce-8U for bug-guix@gnu.org; Thu, 14 Nov 2013 03:14:58 -0500 Received: from jocasta.intra (localhost [127.0.0.1]) by jocasta.intra (8.14.4/8.14.4/Debian-4) with ESMTP id rAE8Etc4012191 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 14 Nov 2013 09:14:55 +0100 Received: (from john@localhost) by jocasta.intra (8.14.4/8.14.4/Submit) id rAE8Esxb012190 for bug-guix@gnu.org; Thu, 14 Nov 2013 09:14:54 +0100 Date: Thu, 14 Nov 2013 09:14:54 +0100 From: John Darrington To: bug-guix@gnu.org Subject: Please provide a way to delete old build directories. Message-ID: <20131114081454.GA11819@jocasta.intra> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable When packages are built using guix build --keep-failed the build directories are created in /tmp/nix* (as they should be). But it is impossible to delete these directories without special priviliges. The user who called guix build --keep-failed cannot delete them because they are owned by guix-builder Can we please either: 1. Have a command (or option to guix gc) to remove them ; OR 2. Arrange for the ownership of such directories to be changed to the calli= ng user,=20 after the build has finished. J' --=20 PGP Public key ID: 1024D/2DE827B3=20 fingerprint =3D 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://sks-keyservers.net or any PGP keyserver for public key. --nFreZHaLTZJo0R7j Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlKEhn4ACgkQimdxnC3oJ7PfGQCfe5MHOLTBsDEDmwRHG8AHvVYQ epsAn3MUMiI6mu7TKD2L9ijx4g4wpmlO =/Obv -----END PGP SIGNATURE----- --nFreZHaLTZJo0R7j-- From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 10 16:58:58 2013 Received: (at 15890) by debbugs.gnu.org; 10 Dec 2013 21:58:58 +0000 Received: from localhost ([127.0.0.1]:42318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqVKT-0002nW-5G for submit@debbugs.gnu.org; Tue, 10 Dec 2013 16:58:57 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:2936) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VqVKP-0002nL-7K for 15890@debbugs.gnu.org; Tue, 10 Dec 2013 16:58:55 -0500 X-IronPort-AV: E=Sophos;i="4.93,867,1378850400"; d="scan'208";a="40344830" Received: from reverse-83.fdn.fr (HELO pluto) ([80.67.176.83]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA; 10 Dec 2013 22:58:51 +0100 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: John Darrington Subject: Re: bug#15890: Please provide a way to delete old build directories. References: <20131114081454.GA11819@jocasta.intra> Date: Tue, 10 Dec 2013 22:58:51 +0100 In-Reply-To: <20131114081454.GA11819@jocasta.intra> (John Darrington's message of "Thu, 14 Nov 2013 09:14:54 +0100") Message-ID: <87ob4otlk4.fsf@gnu.org> User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: 15890 Cc: 15890@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) John Darrington skribis: > When packages are built using guix build --keep-failed the build director= ies > are created in /tmp/nix* (as they should be). > > But it is impossible to delete these directories without special privilig= es. > The user who called guix build --keep-failed cannot delete them because t= hey > are owned by guix-builder > > Can we please either: > > 1. Have a command (or option to guix gc) to remove them ; OR > > 2. Arrange for the ownership of such directories to be changed to the cal= ling user,=20 > after the build has finished. I agree. I would go for solution #2. (Note that this will have to be submitted to the Nix project, since the C++ code under nix/ is imported from there.) Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 12 23:31:16 2014 Received: (at control) by debbugs.gnu.org; 13 Apr 2014 03:31:17 +0000 Received: from localhost ([127.0.0.1]:46582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZB8V-0006VE-Bv for submit@debbugs.gnu.org; Sat, 12 Apr 2014 23:31:15 -0400 Received: from world.peace.net ([96.39.62.75]:37826 ident=hope1) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZB8R-0006V0-I5 for control@debbugs.gnu.org; Sat, 12 Apr 2014 23:31:12 -0400 Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WZB8F-0006AP-Kk; Sat, 12 Apr 2014 23:31:00 -0400 From: Mark H Weaver To: control@debbugs.gnu.org Date: Sat, 12 Apr 2014 23:29:43 -0400 Message-ID: <87k3atewk8.fsf@yeeloong.lan> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: severity 15890 wishlist severity 17208 wishlist severity 17150 minor severity 17202 minor thanks [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: severity 15890 wishlist severity 17208 wishlist severity 17150 minor severity 17202 minor thanks [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject severity 15890 wishlist severity 17208 wishlist severity 17150 minor severity 17202 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 07 03:56:45 2016 Received: (at 15890) by debbugs.gnu.org; 7 Nov 2016 08:56:45 +0000 Received: from localhost ([127.0.0.1]:47481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3fjR-0007uX-6Y for submit@debbugs.gnu.org; Mon, 07 Nov 2016 03:56:45 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:42477) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3fjP-0007uM-HN for 15890@debbugs.gnu.org; Mon, 07 Nov 2016 03:56:44 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3tC5sQ3z0yz3hnL5 for <15890@debbugs.gnu.org>; Mon, 7 Nov 2016 09:56:42 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3tC5sQ2LrHzvlBW for <15890@debbugs.gnu.org>; Mon, 7 Nov 2016 09:56:42 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id IbDEuhHjWA4M for <15890@debbugs.gnu.org>; Mon, 7 Nov 2016 09:56:40 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-188-174-152-0.dynamic.mnet-online.de [188.174.152.0]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for <15890@debbugs.gnu.org>; Mon, 7 Nov 2016 09:56:39 +0100 (CET) Received: from [192.168.110.2] (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 500C56069E for <15890@debbugs.gnu.org>; Mon, 7 Nov 2016 09:56:39 +0100 (CET) To: 15890@debbugs.gnu.org From: Hartmut Goebel Subject: Re: bug#15890: Please provide a way to delete old build directories. Organization: crazy-compilers.com Message-ID: <582041C7.4080902@crazy-compilers.com> Date: Mon, 7 Nov 2016 09:56:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 15890 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hi, any news on this? Did anybody pass this to the Nix project? Arrange for the ownership of such directories to be changed to the calling user, after the build has finished Would also allow for easily debugging build (by entering the environment and restart the build). -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 09:45:07 2016 Received: (at 15890) by debbugs.gnu.org; 9 Nov 2016 14:45:07 +0000 Received: from localhost ([127.0.0.1]:50611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4U7b-00023e-HD for submit@debbugs.gnu.org; Wed, 09 Nov 2016 09:45:07 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4U7W-00022q-3V for 15890@debbugs.gnu.org; Wed, 09 Nov 2016 09:45:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4U7J-0006Hs-Pq for 15890@debbugs.gnu.org; Wed, 09 Nov 2016 09:44:52 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4U7J-0006Ho-MZ; Wed, 09 Nov 2016 09:44:45 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:56492 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1c4U7J-0007GF-4O; Wed, 09 Nov 2016 09:44:45 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Hartmut Goebel Subject: Re: bug#15890: Please provide a way to delete old build directories. References: <20131114081454.GA11819@jocasta.intra> <582041C7.4080902@crazy-compilers.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 19 Brumaire an 225 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Wed, 09 Nov 2016 15:44:42 +0100 In-Reply-To: <582041C7.4080902@crazy-compilers.com> (Hartmut Goebel's message of "Mon, 7 Nov 2016 09:56:39 +0100") Message-ID: <87inrwaf1h.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.9 (-------) X-Debbugs-Envelope-To: 15890 Cc: 15890@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.9 (-------) Hi, Hartmut Goebel skribis: > any news on this? Did anybody pass this to the Nix project? No, but it shouldn=E2=80=99t be too hard: look for =E2=80=98settings.keepFa= iled=E2=80=99 in libstore/build.cc and drop a chown -R in there. We need to propagate the UID of the client who connected to the daemon, though. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 25 05:56:17 2017 Received: (at 15890-done) by debbugs.gnu.org; 25 Jan 2017 10:56:17 +0000 Received: from localhost ([127.0.0.1]:41571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWLFQ-00021w-OR for submit@debbugs.gnu.org; Wed, 25 Jan 2017 05:56:16 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWLFO-00021j-Re for 15890-done@debbugs.gnu.org; Wed, 25 Jan 2017 05:56:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWLFH-0001u1-Sg for 15890-done@debbugs.gnu.org; Wed, 25 Jan 2017 05:56:09 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWLFH-0001tw-PO; Wed, 25 Jan 2017 05:56:07 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:39260 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cWLFH-0003su-77; Wed, 25 Jan 2017 05:56:07 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: John Darrington Subject: Re: bug#15890: Please provide a way to delete old build directories. References: <20131114081454.GA11819@jocasta.intra> Date: Wed, 25 Jan 2017 11:56:05 +0100 In-Reply-To: <20131114081454.GA11819@jocasta.intra> (John Darrington's message of "Thu, 14 Nov 2013 09:14:54 +0100") Message-ID: <87a8af2yt6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.2 (--------) X-Debbugs-Envelope-To: 15890-done Cc: 15890-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.2 (--------) John Darrington skribis: > When packages are built using guix build --keep-failed the build director= ies > are created in /tmp/nix* (as they should be). > > But it is impossible to delete these directories without special privilig= es. > The user who called guix build --keep-failed cannot delete them because t= hey > are owned by guix-builder > > Can we please either: > > 1. Have a command (or option to guix gc) to remove them ; OR > > 2. Arrange for the ownership of such directories to be changed to the cal= ling user,=20 > after the build has finished. This was fixed by Hartmut in commit 2608e40988ba8cf51723fe0d21bdedf6b3997c9c. Ludo=E2=80=99. From unknown Fri Jun 20 05:30:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 22 Feb 2017 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator