From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 29 19:19:19 2025 Received: (at submit) by debbugs.gnu.org; 29 Apr 2025 23:19:19 +0000 Received: from localhost ([127.0.0.1]:37314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u9uER-0004Jz-9l for submit@debbugs.gnu.org; Tue, 29 Apr 2025 19:19:19 -0400 Received: from lists.gnu.org ([2001:470:142::17]:47660) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u9uEN-0004JX-Or for submit@debbugs.gnu.org; Tue, 29 Apr 2025 19:19:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u9uEH-0005Ho-6V for bug-guix@gnu.org; Tue, 29 Apr 2025 19:19:09 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u9uEF-0000EJ-EL for bug-guix@gnu.org; Tue, 29 Apr 2025 19:19:08 -0400 Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-2ff694d2d4dso5954043a91.0 for ; Tue, 29 Apr 2025 16:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745968745; x=1746573545; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=oD3NkCDMH5xcDhHf57BhTIJdKrE/MjYnhRUByZX2hRU=; b=WpdlYcJsB4JS1XWaJz0KGSCk185HUf2GVtkUBPA7gU/VLu/UOc+5zwxt4ehZ23kz3c FobWlS5jFG7dxosM7JawKeF5WWO4zVwPr2dNjjDitnzPcEeuuc/PIZIQ3GI/C2J8A15O mIMBi2EgVFZt8ajId1lPwn0hdXd2kS33cIUinqGsYjpdqzmrYHws6Ui2BeG9UXmnk/Mv 8YkXiJY5t2gbtr+qIZaVpBKvo2C6CJudEFR4/BiiYoIrrmYXcLkPZshy09hlt6X9hfpE m9LfCJ/+E+AelwqlNFYb8a8PSfEc0X9EFL7kycEeA/Yx1LyizYGnpMiPRqIgA+7SwoBz x+xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745968745; x=1746573545; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=oD3NkCDMH5xcDhHf57BhTIJdKrE/MjYnhRUByZX2hRU=; b=GglKr7xE2sYrOXgqKS86Femfs47+scrwVGaecEjl329LlRrsME5t4z0OkcL8IEHL1X 1LI5QlQvBAAt0skuXoTCFIvc5dou9ZGpihUxVWpSxNL75DsT9k1FZfkgvSgKfEgwSmCM XmJPMixKZ8qGAFi0ZUwwRo9BWXdMuYh6Yai4yzcOZsg6k5UExZ5nKhRjGi9kNommOBGW AGJZvq95Q+qa2woCUM1M7zYHLvo5Go1QIRzhMdcw/f8znwE+bBp3Sbmcr+39Pz3SxNjW Rxb2jFp5UI1K2Trn0gTAmffLoE8LSEGDa42Gnn0UeIEAFT5i5jylGCZAuwcqLmI8wYAZ CfsA== X-Gm-Message-State: AOJu0YzUgPEzVdslMA1EJTmMZsuJm9LfCTM6zoIyUCfpPd/Rmm6iHML4 f9PCAaDAL929j6pvchUZfXK1Sy3riU9RzaAvz+pnciX16YjRf27s4m76pA== X-Gm-Gg: ASbGncsSCCOIvmTa6tdBcx5bvyjrPqMyo9gEtzXLtcpn/NCSwrawWdjdA4pSAGSls8R 5WRWM1RgWQ8QjL6kS55Vn7GLyIwFU8Yu7zpezhX4aFqvRcnf144hQvXJpCzK+LJNMnvezGfMaTJ OVL2LY1IHVt6CPCsjiPUq34zXY+HNUExqVuN5osGkdCAm10cDdx0cZOyQFFUZeNwEel3SJHK/WY rcGWtUjFiKZbjxI44INduPsr8LLuqHqO02o4G9rk/Qj5HCkpCozzT+t4dJagrmlzILggdQtFHfQ aCJr4taVmzSnk1VgPszO6IavljF2qQGL/A6y0Fk= X-Google-Smtp-Source: AGHT+IEBTNnHLAx/axQTcVAvveT7jtC1L2l/kwVZtYESHoVKRCLP22fAMpbsg0twoiLqWq3W0ORyFg== X-Received: by 2002:a17:90b:2c84:b0:308:637c:74f2 with SMTP id 98e67ed59e1d1-30a3330d5e9mr1235972a91.17.1745968745037; Tue, 29 Apr 2025 16:19:05 -0700 (PDT) Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-30a34a6090fsm120071a91.47.2025.04.29.16.19.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Apr 2025 16:19:04 -0700 (PDT) From: Maxim Cournoyer To: bug-guix Subject: [guix-daemon] Build user's pw_dir != HOME Date: Wed, 30 Apr 2025 08:19:02 +0900 Message-ID: <87jz72a74p.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=maxim.cournoyer@gmail.com; helo=mail-pj1-x1032.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit 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.0 (/) Hi, There is a discrepancy in our build environment, where the build user's directory is set to '/' while HOME is set to '/homeless-shelter'. Normally both should match, and it trips some test suite that assumes this to be the case, as with libssh's [0]. Perhaps '/homeless-shelter' could be made to more simply be '/', or pw_dir could be made to be '/homeless-shelter'. What do you think? [0] https://gitlab.com/libssh/libssh-mirror/-/issues/302#note_2475036715 -- Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Thu May 01 07:49:18 2025 Received: (at 78152) by debbugs.gnu.org; 1 May 2025 11:49:18 +0000 Received: from localhost ([127.0.0.1]:49240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uASPm-0003G7-7g for submit@debbugs.gnu.org; Thu, 01 May 2025 07:49:18 -0400 Received: from wolfsden.cz ([37.205.8.62]:33272) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1uASPi-0003Fh-U8 for 78152@debbugs.gnu.org; Thu, 01 May 2025 07:49:16 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 4A0DA394CC7; Thu, 1 May 2025 11:49:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1746100151; bh=haSOMG7QKatYYy02fHhFobiJs3Hrf1OPLA9/y2kBQME=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=Yk5jVTHJGK1ouSSNSIRJuDxEcqJDXtqPEVLYikCz0nzNIfjtjKPP04sAhOtWmc0ak SgO1YD2pEYYq1Gp6DmyUWD3ivzUksdKljZ8jQy/KdsPeRivdVDOlS+YWVixqPiotis mQ3Ewr6pPaK5WlvyBS72RV8XGIdB54foePX+6VbomRV0ByWFQBTFo7LQ2YWf5a3u+E RENEmGZkQvb2eVdh8CyU5GNyeKtNqA4pi8vtvwbcGY++94vSAgFFDU5HZJwZZ2YgDg t4orrINrwNaemIn61dOEq/DKVTCr2RhnmBNZ/fgs09yFWDioEEW4cm77o844vSImrK 4U1dhpp67FInVGEQZ12WYvx5+bzsuD3nfTq0IT42/XYt7R0hiLwsI2hbG7tE3fXbc0 7h2umgaFxIsc1C8IWmBrZD8RKqlAcTUJUjHikdXZvp8MDqopvcTpHzY9WsIXKxotM8 Wivgi3ZHF/ly/iDh2ibPQBEJE8wgbtYsA/tScgRCMhGeS/7TFYlLDBus989jjZJTVp WaEyCieg89nRu7bOubkKKg//uKhTsCp7M05b8cQCURyNBD+J8J2U091tIafgAxOP7P 6UNpLgsF7rqW6rtjOlyNLyGM9x+LhkAUFf45+jr2MmLwWFlz1yNBa+eJh2ijOfv2Dv axTTFNUVlDsJUijsZ0O4FXfM= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 0D8B1394550; Thu, 1 May 2025 11:49:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1746100150; bh=haSOMG7QKatYYy02fHhFobiJs3Hrf1OPLA9/y2kBQME=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=CNQgyyuJHOJ480ek1YmxnlkLU8VoFQwaUvX4i448q0Z2blbc1oH/wMiV1/oKExvTA pFK9Sgkmm5eepq5Ap0HCmxJlr6aTzN4JNcPv4RsYIG280YMIu6zqkeAqAEcEAxfqTK 0gznHDZlHzOKtWIHRM0YjQfjoavvopsLmA+wbhuH1lFfrp9+dOIa0H8ytxzqNknZW8 a3mAeDQfujwe3+UUskfs7ek5b7DmKbJorAICnJwPmDOV3FvyVXpOSjKPcWUfliJpAf XBgxJQKabjvpIQQguPUEokHq0gPPf4kGD3+JkARSHZ9nC7UVugWuUMc+r6RjEsYUXG stcLo57wC/IXbD3TPypFVsQOuY9q/QU9LrcLcH1qs2B8Uwkbz0dakuGsvXBg3zuBue YIr5r/yLtTFFCMgU8r2zb+XGjrC78BSca+6Nx19clIe3bf3/cwRZjjsA1vD4JgswTi WgSnY21QnBM3YGEqwBCGKlDpocdVoM3JkFd9UA4jtow6G1d1SJWxHX6249t/sTT46m 5P4Zpw1GV0DlnbUwVYqvxFS6iUDp6iewWi5oZuv/MBg/18ytUniI1mQ4Vvry/N/htF C5F9LSvirOArE/q4688thsdu7i4POKKRkKm1yHIvZUXxQf9GfM4aTxV6k68xeqwi4w F+WvF+URtA+maytgC3ifYSfU= From: Tomas Volf <~@wolfsden.cz> To: Maxim Cournoyer Subject: Re: bug#78152: [guix-daemon] Build user's pw_dir != HOME In-Reply-To: <87jz72a74p.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 30 Apr 2025 08:19:02 +0900") References: <87jz72a74p.fsf@gmail.com> Date: Thu, 01 May 2025 13:49:09 +0200 Message-ID: <87msbw5z62.fsf@wolfsden.cz> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78152 Cc: 78152@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: -1.0 (-) Maxim Cournoyer writes: > Hi, > > There is a discrepancy in our build environment, where the build user's > directory is set to '/' while HOME is set to '/homeless-shelter'. > Normally both should match, and it trips some test suite that assumes > this to be the case, as with libssh's [0]. > > Perhaps '/homeless-shelter' could be made to more simply be '/', or > pw_dir could be made to be '/homeless-shelter'. > > What do you think? I would prefer the latter. I know this is just the build container, but it still would likely be preferable not to litter / with garbage. IMO. > > [0] https://gitlab.com/libssh/libssh-mirror/-/issues/302#note_2475036715 -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. From debbugs-submit-bounces@debbugs.gnu.org Thu May 01 08:06:15 2025 Received: (at 78152) by debbugs.gnu.org; 1 May 2025 12:06:15 +0000 Received: from localhost ([127.0.0.1]:49343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uASgA-0004JT-NJ for submit@debbugs.gnu.org; Thu, 01 May 2025 08:06:15 -0400 Received: from ditigal.xyz ([2a01:4f8:1c1b:6a1c::]:36618 helo=mail.ditigal.xyz) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uASg5-0004HW-CF for 78152@debbugs.gnu.org; Thu, 01 May 2025 08:06:11 -0400 Received: by cerebrum (OpenSMTPD) with ESMTPSA id ca4d9e4d (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Thu, 1 May 2025 12:06:00 +0000 (UTC) From: Rutherther To: 78152@debbugs.gnu.org Subject: Re: [guix-daemon] Build user's pw_dir != HOME In-Reply-To: <87msbw5z62.fsf@wolfsden.cz> Date: Thu, 01 May 2025 14:05:58 +0200 Message-ID: <875xik8rix.fsf@ditigal.xyz> MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ditigal.xyz; i=@ditigal.xyz; q=dns/txt; s=20240917; t=1746101160; h=from : to : cc : subject : in-reply-to : date : message-id : mime-version : content-type : from; bh=XzxA8jONW+vC2lTRC43i8BNSMFlPw5ScXmODn99W3cg=; b=LXV1YC8UYzAuHdRZuiWXOpzJEQYZVA8zR1mL9IbRHlqWFIC5qKPhkrj/6XWjA4M/CqZ7s XxDe6w1XdI6HzHLiabae5GsZgQuqu6KB8jXcm4556KXnTLn0YHexafxjNY79dkTqoBpka/u yWWSGsYHCaRbSQJ3qM6bbk/57JVdV88= X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 78152 Cc: Tomas Volf <~@wolfsden.cz>, Maxim Cournoyer 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.5 (/) Hi, imo the latter approach is better, because the advantage of using /homeless-shelter is that you can clearly see it in error log if the package you're building tries to use the HOME. If it was just /, we would lose the ability to tell why the package chose to access something under root of the filesystem - is it accessing a hard coded path or accessing $HOME? From debbugs-submit-bounces@debbugs.gnu.org Fri May 02 02:00:30 2025 Received: (at 78152) by debbugs.gnu.org; 2 May 2025 06:00:30 +0000 Received: from localhost ([127.0.0.1]:55665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uAjRm-0000tC-9b for submit@debbugs.gnu.org; Fri, 02 May 2025 02:00:30 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:56718) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uAjRi-0000sc-OJ for 78152@debbugs.gnu.org; Fri, 02 May 2025 02:00:27 -0400 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-22435603572so19617605ad.1 for <78152@debbugs.gnu.org>; Thu, 01 May 2025 23:00:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746165619; x=1746770419; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=IjdRTc7+JgeDh8QzSPa+WMjRwpskWsJONL4Zua+gXnc=; b=YXHb0D1FgxXglHJ3hp8/bWSZyfAw2DXUNq++5qiGJGgI7rsoErgcBO+jsknoxm1ntO ha0GEX1o5xusxGWRtLH5w7x2IF/wQ/EMXonzynf/bx/S7GF7euUSANOrpJDsX7Ms3PqW xlfGPgBpjbBThw4NRylm0x4XrMNJVF5i4Gym5YZuRZRh5Xeh8kv2E/VrSXuqhiIfFxnb 1wMEY0ksfMy4++MtnG/D9ACmZQODoInUM/jO7JbsHNslcvUKRpe0nnllzwjHlo5W0fE3 cex79bphlU1ymsD4ePE9yEM0uRTh9HO0M1TyQSOxJXKeI8nW8o6cKfJK26b5B5XazeOG c14Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746165619; x=1746770419; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IjdRTc7+JgeDh8QzSPa+WMjRwpskWsJONL4Zua+gXnc=; b=TcI+Y6Y8O7pL82VVR77xjAKlsWtirkNegEujLsBghC9cB01hyMOe3oIlkp3MGwrEiz zx8oEdFh6V4sTyOL9uaL9ydUK6y6K9OcseWn7+ERjvs+yj15tcOXkkMR2Rkddj2qeA83 0mUV/a0HShXnJ5AyREeYLnzea8Iugr8nWGX0CfhF/wJY9ECmdsZiyHTVZsSpKGjhs4Tx oAD9Xc6d7SVN+zZWPpsgD7ejfURnpK42yFLoy9lRzTLEY4a48YnviSfh519yuhEhjam1 yOW/HrArR1phdNu4GLrbCdEsYb34Wydlf1elY9d/7NMRou4h4Q5IwxwQ4PqI4XbQ+0n6 +e/Q== X-Gm-Message-State: AOJu0Yz0RmCbTp7O+daHeAPUHOkccnwxdZqwYUqs8LAV2/Svs4wUB85j e0++NwJHjDXbtW52mZ1scbPrK8G/wyZ9JuY7XeXF+jLH0vHIT7iqmMrHfBex X-Gm-Gg: ASbGnctkILvR8JS2747qU8+oFo3+qB4T/Ii4+8gKasiD+EsAaXGKcfEloRbN3BliRqN UDi3zRHXR5KYnGvt3COotyvukhk/zxR8ZkLTc+plA6qH8oRLDyg5M1j9GA7fBJRgyZ149hfG4rY +y1tSkXy6Mo1I8LiJ4yJgPqiy/un9rRpbk3ROOT7GoxUJlzUdL5JRNByH6dBcrJLRlodJys8q/D ++ZVNKL9CQN5vAfOulbJyqBhws3iE1FYvmAzalrJ+ck//eV+33OQXigRgflgLdkouAMevC1XdT3 zuUH4TwPCsRo9H1+IQJMvOJCEJKPKdpvj1D5CYLa1IFsOcIq6sjj8Tcah8X/ X-Google-Smtp-Source: AGHT+IEsj+7kSat4Xd1WvFqdCb0C+KHN1oAbAg4lB2qeTUTj4KjroXL43KVl5iSiKi1D2AHi919cbg== X-Received: by 2002:a17:903:2f91:b0:224:191d:8a87 with SMTP id d9443c01a7336-22e1034418bmr24587295ad.26.1746165619422; Thu, 01 May 2025 23:00:19 -0700 (PDT) Received: from localhost.localdomain ([2405:6586:be0:0:83c8:d31d:2cec:f542]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22e1085bdc6sm6309315ad.59.2025.05.01.23.00.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 May 2025 23:00:18 -0700 (PDT) From: Maxim Cournoyer To: 78152@debbugs.gnu.org Subject: [PATCH] nix: Ensure the nixbld user directory matches HOME. Date: Fri, 2 May 2025 14:58:01 +0900 Message-ID: <9f50d11d367d014b06ae5d3a52a714c95043d518.1746165481.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-Debbugs-Cc: Maxim Cournoyer , Tomas Volf <~@wolfsden.cz>, Rutherther Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78152 Cc: Maxim Cournoyer 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: -1.0 (-) * nix/libstore/build.cc (DerivationGoal::startBuilder) : Adjust build user directory. Fixes: Change-Id: I242940195e49b2ee9544e9e5211a6598f682cbfe --- The fix was tested by: 1. Exiting all 'guix shell' envs then # herd stop guix-daemon 2. sudo -E ./pre-inst-env guix-daemon --build-users-group guixbuild \ --max-silent-time 3600 --timeout 86400 --log-compression none \ --discover=no --substitute-urls \ 'https://bordeaux.guix.gnu.org https://ci.guix.gnu.org' --max-jobs=10 & 3. Apply the following diff: modified gnu/packages/ssh.scm @@ -182,13 +182,7 @@ (define-public libssh ;; Test sources. (substitute* '("tests/server/test_server/default_cb.c") (("\"/bin/sh\"") - (format #f "~s" (which "sh")))))) - (add-before 'check 'prepare-for-tests - ;; A few test rely on the assumption that HOME == user's pw_dir, - ;; which is not satisfied in Guix, where `pw_dir' is '/' while - ;; HOME is '/homeless-shelter'. - (lambda _ - (setenv "HOME" "/")))))) + (format #f "~s" (which "sh"))))))))) (native-inputs (list cmocka)) (inputs (list bash-minimal mit-krb5 openssl zlib)) (synopsis "SSH client library") 4. Building it successfully: ./pre-inst-env guix build libssh nix/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc index a1f39d9a8bf..2cf2a7d06c2 100644 --- a/nix/libstore/build.cc +++ b/nix/libstore/build.cc @@ -1845,7 +1845,7 @@ void DerivationGoal::startBuilder() writeFile(chrootRootDir + "/etc/passwd", (format( - "nixbld:x:%1%:%2%:Nix build user:/:/noshell\n" + "nixbld:x:%1%:%2%:Nix build user:/homeless-shelter:/noshell\n" "nobody:x:65534:65534:Nobody:/:/noshell\n") % (buildUser.enabled() ? buildUser.getUID() : guestUID) % (buildUser.enabled() ? buildUser.getGID() : guestGID)).str()); base-commit: b2b7d2a3275d5ba866ae7fecac928ed4bd416beb -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Fri May 02 11:57:19 2025 Received: (at 78152) by debbugs.gnu.org; 2 May 2025 15:57:19 +0000 Received: from localhost ([127.0.0.1]:60716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uAslL-0003Np-AU for submit@debbugs.gnu.org; Fri, 02 May 2025 11:57:19 -0400 Received: from wolfsden.cz ([37.205.8.62]:37068) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1uAslG-0003NX-Ds for 78152@debbugs.gnu.org; Fri, 02 May 2025 11:57:16 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 87092399DFF; Fri, 2 May 2025 15:57:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1746201432; bh=XUR4sDHzgFZZWo1geJdXeozkJ2F7vPFC+Z7xtrjdT0w=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=WbvOwfW42dAJGP4XFeZGDdVnCgtSVBFtT52gGz+Put2IVueMLUOmFS9Sg/E3w3nbW 4o3829/I+Yh76nQtTNScikxvhFDEOL+5LHX9AC3kTNNvS9Lap6GfIiGciXqQNuAO7a kSj7A33t2hQ68hvJBetfEQn9qiGksDYj8eyFs5AMUwYTUiJyNnKIXeWBCxYWRvQuWp Da9RiRvUN8vxVP0rQgBW3UOpcEaIHd34dVLMU9kKgKpe8U5tCvzuM6lTxzQi9jcKSQ l5BcLeJXjo2DzQCwcJSwPRcDx0o66m5lwWbfh/89FCAjCSHA8svxpt/mxSD1M5neEI TI8ps6LgyoyUyWA3THxk5HPgNtVFcLXIG8L5odpjnixuFC/wTn0TCG1N7qNhEnUgjL AVxN+j4bzmwrhhVNjJxozPMOEfeKAnIl1Pu5JJa6f7CmU+3UUhPp9KicGuU8Ey5f/P UIN4GjlJVZRItnA2hLRb/4FdPoVhDe2y97K+j1A/b2kN8Ks3pBVqGck2DpxK1EFRVN +m6K/V5kYUW+VZ4/lu5DheMrJD10TEMsGaJNY8yPLyiUiBJYLZMRnnxPPOWFbYjdop I1XWEoQ6+JsuzANyn6LMNLm+aeOzMWBJd3Cv57OIz89WbaYDtU+zfvv0/ShH5iIhtA bJAxDzEGtBC4+C6LWdyj2Y88= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id A30E739B13E; Fri, 2 May 2025 15:57:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1746201431; bh=XUR4sDHzgFZZWo1geJdXeozkJ2F7vPFC+Z7xtrjdT0w=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=kTIwwoo6/emVpV8sSplMHzrOHjzTQvV5qwyVRojftipQugRJNnbtthZmClAJwVU/F vzYYIefMLP5SqEN6JjoTY0RWdpEycqvM5ICyK6Mo8NW6dB9ic762miT0PZAIb2mgBt WEflbORl72CWGWxLxEQ6H4j7LABwFemOBlojyenNAiNoE3XJ20jEr/YHo3H6pTkvGQ BvUe2JHBJUfsCBRPsHf/3eiiFKvYrQe37yOQ9LwEIQnxLQaD3Rc6/jNWe4vp9bvkMD 29UhImV0ig3p46A5VWxiSqL7fpZoMkQfeJqurCL2KTUKIALQRIlgK0+AjZZVcK+jPj NzB5UtLyTK3FyxER0frQcZVPzzPyqdqh0oGBecZle8QneeTuG3JtrpofAKbOfH3UQc RecyswaCl5UZx6Br2s+g3MA6koZetIaE11/qenFkJn2v9y4jBGF/If3xXNXWSAWBk5 yzqxMZLsjq3Y6HBphVV5OQ7neDeLFnhuz+g3TtumYRQ7X7f2i9e0ZKskkMMRJ+OkHL QYQjgyyYh2lOv0zbXujarhEN6Hzgi8myZlgFan196wzFMQUhhI2IF+DmtCOsJD8oNZ q5RRgPEHNyP5gaGAF6PILeB0SYebt/bGfoI1iA2JZX4YfKr6SA5f/i6XihnTftjbBK gXPelCYlSh31/SzjXIZ1Z5Xk= From: Tomas Volf <~@wolfsden.cz> To: Maxim Cournoyer Subject: Re: bug#78152: [PATCH] nix: Ensure the nixbld user directory matches HOME. In-Reply-To: <9f50d11d367d014b06ae5d3a52a714c95043d518.1746165481.git.maxim.cournoyer@gmail.com> (Maxim Cournoyer's message of "Fri, 2 May 2025 14:58:01 +0900") References: <87jz72a74p.fsf@gmail.com> <9f50d11d367d014b06ae5d3a52a714c95043d518.1746165481.git.maxim.cournoyer@gmail.com> Date: Fri, 02 May 2025 17:57:10 +0200 Message-ID: <87ldrf2eg9.fsf@wolfsden.cz> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78152 Cc: 78152@debbugs.gnu.org, Rutherther 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: -1.0 (-) Maxim Cournoyer writes: > * nix/libstore/build.cc (DerivationGoal::startBuilder) > : Adjust build user directory. > > Fixes: > Change-Id: I242940195e49b2ee9544e9e5211a6598f682cbfe > --- > The fix was tested by: > > 1. Exiting all 'guix shell' envs then # herd stop guix-daemon > > 2. sudo -E ./pre-inst-env guix-daemon --build-users-group guixbuild \ > --max-silent-time 3600 --timeout 86400 --log-compression none \ > --discover=no --substitute-urls \ > 'https://bordeaux.guix.gnu.org https://ci.guix.gnu.org' --max-jobs=10 & > > 3. Apply the following diff: > modified gnu/packages/ssh.scm > @@ -182,13 +182,7 @@ (define-public libssh > ;; Test sources. > (substitute* '("tests/server/test_server/default_cb.c") > (("\"/bin/sh\"") > - (format #f "~s" (which "sh")))))) > - (add-before 'check 'prepare-for-tests > - ;; A few test rely on the assumption that HOME == user's pw_dir, > - ;; which is not satisfied in Guix, where `pw_dir' is '/' while > - ;; HOME is '/homeless-shelter'. > - (lambda _ > - (setenv "HOME" "/")))))) > + (format #f "~s" (which "sh"))))))))) > (native-inputs (list cmocka)) > (inputs (list bash-minimal mit-krb5 openssl zlib)) > (synopsis "SSH client library") > > 4. Building it successfully: ./pre-inst-env guix build libssh > nix/libstore/build.cc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc > index a1f39d9a8bf..2cf2a7d06c2 100644 > --- a/nix/libstore/build.cc > +++ b/nix/libstore/build.cc > @@ -1845,7 +1845,7 @@ void DerivationGoal::startBuilder() > > writeFile(chrootRootDir + "/etc/passwd", > (format( > - "nixbld:x:%1%:%2%:Nix build user:/:/noshell\n" > + "nixbld:x:%1%:%2%:Nix build user:/homeless-shelter:/noshell\n" > "nobody:x:65534:65534:Nobody:/:/noshell\n") > % (buildUser.enabled() ? buildUser.getUID() : guestUID) > % (buildUser.enabled() ? buildUser.getGID() : guestGID)).str()); > > base-commit: b2b7d2a3275d5ba866ae7fecac928ed4bd416beb LGTM. Reviewed-by: Tomas Volf <~@wolfsden.cz> -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. From debbugs-submit-bounces@debbugs.gnu.org Mon May 05 11:35:17 2025 Received: (at 78152) by debbugs.gnu.org; 5 May 2025 15:35:17 +0000 Received: from localhost ([127.0.0.1]:41787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uBxqe-0005rv-Pu for submit@debbugs.gnu.org; Mon, 05 May 2025 11:35:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34288) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uBxqU-0005k7-Fo for 78152@debbugs.gnu.org; Mon, 05 May 2025 11:35:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uBxqP-0001rn-6c; Mon, 05 May 2025 11:35:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=inZaW1sCiOf7vdvhzXloz9MYMdw//FOeT9ebmQuE/K4=; b=H+WTncxflO0ecO9uh9Gi +2KiV7jUwE7gvsaUyW0anueBWYo21pWXHIFW58sfkn0FVEhdvxaVCCvS3XqJsox4sV1oFsXLmscE3 IysaPpDDVlp4R8Zoc0fuQuBste8eKmT3kKqrAmj5WTXKeV8u7jXj+7HXtnsa3Wv3ayy0h7z5yTMQr iXZG86U4MI9ZLocM2Vy6jeQa6Ilcx6mbd3DJN/frqFMHP4fJ1sr7MBS5qjE5O95eoTGo/K6JFDZCG XnriGCw3rvqhGE19TTVTW8IPdGYSOiMZNw2vPmPVaz1VLWiRIMAzGov8v6K9qEPi6V/fvTbxJdrqQ qEWbejkKazEXCQ==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#78152: [guix-daemon] Build user's pw_dir != HOME In-Reply-To: <87jz72a74p.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 30 Apr 2025 08:19:02 +0900") References: <87jz72a74p.fsf@gmail.com> Date: Mon, 05 May 2025 14:54:51 +0200 Message-ID: <874ixz5ias.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78152 Cc: 78152@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: -3.3 (---) Hi Maxim, Maxim Cournoyer writes: > There is a discrepancy in our build environment, where the build user's > directory is set to '/' while HOME is set to '/homeless-shelter'. > Normally both should match, and it trips some test suite that assumes > this to be the case, as with libssh's [0]. > > Perhaps '/homeless-shelter' could be made to more simply be '/', or > pw_dir could be made to be '/homeless-shelter'. > > What do you think? As a rule of thumb, the build environment should never change so that things that derivations that succeeded one day still succeed years later. So my take is that we should live with this discrepancy forever and ever. (Note that the unprivileged daemon does introduce some discrepancies, and this is something we should fix as much as possible.) Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue May 06 22:15:49 2025 Received: (at 78152-done) by debbugs.gnu.org; 7 May 2025 02:15:50 +0000 Received: from localhost ([127.0.0.1]:37006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uCUK5-0007rN-Gt for submit@debbugs.gnu.org; Tue, 06 May 2025 22:15:49 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:49379) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uCUK3-0007r9-0i for 78152-done@debbugs.gnu.org; Tue, 06 May 2025 22:15:47 -0400 Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-30332dfc820so7414825a91.2 for <78152-done@debbugs.gnu.org>; Tue, 06 May 2025 19:15:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746584140; x=1747188940; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7h0YCwR5sqWE/tXj3raQgQ3IXpzse7lutuUfih/PDN0=; b=DB6rGLnnpb7A7PeY2X+Lb4uJ9WjgIgBr/YJAdETPI6oLEPN51XGY30qsL2w1/mpTFY inIvslGI1R5Qtmj+wSMNG8is7JIeY9ECRlyjLI8Dqq10T2WTJTLRRDLsjwP9aANYSpWt MX05mrQEERyY2Dmel2q3ZECrdR6E0Y5ZkY5fQ1VmmWyJ7JsMFdDNdEgF0SgRchMtgxbA ORXMMRHgISllB8zCFAxPRQFFpscckrmuu/atWSvG4enp1MMtXhibug6pwLoY+ox5Qxbx szZn6SA/pYQjHsXFmz7ax4IcRYRCI+J2pC/cr2YPOv74LWAIQPszIZAmDWLyOhQK7kog sNGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746584140; x=1747188940; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=7h0YCwR5sqWE/tXj3raQgQ3IXpzse7lutuUfih/PDN0=; b=frcI3AezNxJoQLY5G3ofyQCvdlArmbnvURl2ro8T/1evf5MnYx8MAnZJnDVfPZbhvQ jMLQffO60WmuhtCDXGTj4lbbCvTP0vJm8pAMxiG+YdGNhGXDGEgJdQIucbm9gid2f395 6mQ+JCxReNbDNG+J5926ju0Mbf6uxOYZHf9gB+rSyptcx4AXXb5kAgvv5+k18slYrwP8 mcI8GwXxgK25fn90ysgdLMn30FLybpnPCEUTmYNBcD+j/FCmPvISx5lssp9vpdNpquL9 10T/vwbfPZICwUHITSgIo/rjIR5SQmAgiRQ2WSPTWaaN92DVZ1GVLHB4P1dxvQc4+kqT YGGA== X-Gm-Message-State: AOJu0YwukadjBTvrmf59PrzZ4Hj0uhVzCsIaO8r7AqAPMZD3GjElofPd AXswnz5p4gombzkyBs0wp3pZWZo1KAdZ8aIlcdoYRG1tykTIkt4qFDLVag== X-Gm-Gg: ASbGncvKbcyFfLg3IIGMlzLJ4kKExmjjLwLP5eS6BZW5PdYVhDmhWDFKstCAUYotLOU M+V89FrbhWlnTxCvHq3hPLaX2Ry4WaBSYvLIivxUPX5Rp3NWgWedn7GqLMkmhXedeM8+J7Sg1ik vw1Lvx2bn+dXbHH1g0xdKiip/OwwyOqKAhTEdmy/RFd5r88y9zrOw0xF8cnbneszxG7oysWcWgp 1lraU0auQRGcn4ES346FgdQl1w+gi56iT50exFyRDL7FZQYb3vBGdK8OWHa/K8/tdNYG67cD4Vi TEegbmHJsdjKyUWm4yVsYWMg4KCw2Oy03Lfs/6c= X-Google-Smtp-Source: AGHT+IEnrqOieVQh+Tr3q42iv3kaeoh8q3yk9jQ86o3LZ/8X1pzhLZCqehAMVAIThZQ5sR2ehWTJgA== X-Received: by 2002:a17:90b:3ecd:b0:308:7270:d6ea with SMTP id 98e67ed59e1d1-30aac2553a9mr2497357a91.30.1746584140284; Tue, 06 May 2025 19:15:40 -0700 (PDT) Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-30aaebec93bsm635607a91.20.2025.05.06.19.15.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 May 2025 19:15:39 -0700 (PDT) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#78152: [guix-daemon] Build user's pw_dir != HOME In-Reply-To: <874ixz5ias.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 05 May 2025 14:54:51 +0200") References: <87jz72a74p.fsf@gmail.com> <874ixz5ias.fsf@gnu.org> Date: Wed, 07 May 2025 11:15:37 +0900 Message-ID: <87cyclupx2.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78152-done Cc: 78152-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: -1.0 (-) Hi Ludovic, Ludovic Court=C3=A8s writes: > Hi Maxim, > > Maxim Cournoyer writes: > >> There is a discrepancy in our build environment, where the build user's >> directory is set to '/' while HOME is set to '/homeless-shelter'. >> Normally both should match, and it trips some test suite that assumes >> this to be the case, as with libssh's [0]. >> >> Perhaps '/homeless-shelter' could be made to more simply be '/', or >> pw_dir could be made to be '/homeless-shelter'. >> >> What do you think? > > As a rule of thumb, the build environment should never change so that > things that derivations that succeeded one day still succeed years > later. > > So my take is that we should live with this discrepancy forever and > ever. I was worried you'd say this :-). But it's true, that it could be annoying to have something fail with old daemon and pass with newer ones, or vice-versa when using time-machine. > (Note that the unprivileged daemon does introduce some discrepancies, > and this is something we should fix as much as possible.) Hm, perhaps if the 'as much as possible' !=3D 'everything', we could use this breaking opportunity to bundle a few changes like this one? A way that could perhaps be used here would be to bump the daemon's version, and expose this to the build so that some phases code can be conditional to the daemon version. Not very elegant, but it'd at least allow us fixing this kind of issue in the daemon. I'll close this issue for now, but if you have some thoughts on the above idea, feel free to continue this discussion here! --=20 Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Wed May 07 04:57:56 2025 Received: (at 78152-done) by debbugs.gnu.org; 7 May 2025 08:57:56 +0000 Received: from localhost ([127.0.0.1]:40470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uCabD-0005BQ-Vk for submit@debbugs.gnu.org; Wed, 07 May 2025 04:57:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48392) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uCabB-0005BC-3W for 78152-done@debbugs.gnu.org; Wed, 07 May 2025 04:57:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uCab5-0001WZ-KZ; Wed, 07 May 2025 04:57:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=2Vd6uXUr6izVsZ9l3+HvBVv+ryP6ybTUc+ik/0nb3iY=; b=LQQ24Klfco/PUCMjPueb pm7+AgqAzA1rFdMVrLYGdt4B41b39wglU1jUOTo3rXB7/UTtz21wXeTarpsbs9KKzTpe+3l3rdFGG lccVuKcL21j9cwPoE2PPQ78mnXziMN2jnYNsHLt5GIeVq0tUT1qbExgD0BgDsPPgyDZQlgyH55esd hdqVcl2Yql1R5dwiB8Q2mOpR94SoYZG/iCiR+3zcs6FMGsLIOQXrzf82Zomxbmd1LclF4k8ykzv5v kCXOeYZ5DmWmruSdHPvKRGT/qS69tTc9xqfbpigMPUjg7HoJlB/dspI8Oss9P3OyswtJROZwSmZ8Q C5Etnsij5l9Uwg==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#78152: [guix-daemon] Build user's pw_dir != HOME In-Reply-To: <87cyclupx2.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 07 May 2025 11:15:37 +0900") References: <87jz72a74p.fsf@gmail.com> <874ixz5ias.fsf@gnu.org> <87cyclupx2.fsf@gmail.com> User-Agent: mu4e 1.12.9; emacs 29.4 X-URL: https://people.bordeaux.inria.fr/lcourtes/ X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu X-Revolutionary-Date: Octidi 18 =?utf-8?Q?Flor=C3=A9al?= an 233 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de la Corbeille-d'or Date: Wed, 07 May 2025 10:54:26 +0200 Message-ID: <87r0107qd9.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78152-done Cc: 78152-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: -3.3 (---) Hello, Maxim Cournoyer writes: >> (Note that the unprivileged daemon does introduce some discrepancies, >> and this is something we should fix as much as possible.) > > Hm, perhaps if the 'as much as possible' !=3D 'everything', we could use > this breaking opportunity to bundle a few changes like this one? I would rather not (especially since this particular issue hasn=E2=80=99t b= een a problem until now, and for only one package). But overall it=E2=80=99s tri= cky: some discrepancies are unavoidable. So the real question is how likely it is that package build systems and test suites will behave differently because of these discrepancies, and often it=E2=80=99s really hard to tell upfront. > A way that could perhaps be used here would be to bump the daemon's > version, and expose this to the build so that some phases code can be > conditional to the daemon version. Not very elegant, but it'd at least > allow us fixing this kind of issue in the daemon. I would prefer not to as this goes against the model where we assume the build environment to be set in stone. But I don=E2=80=99t know, we=E2=80=99ll have to think through it. Thanks, Ludo=E2=80=99. From unknown Sat Jun 14 03:54:08 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, 04 Jun 2025 11:24:19 +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