From unknown Thu Jun 19 14:09:21 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#77869 <77869@debbugs.gnu.org> To: bug#77869 <77869@debbugs.gnu.org> Subject: Status: how can artanis support minimal mode? Reply-To: bug#77869 <77869@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:09:21 +0000 retitle 77869 how can artanis support minimal mode? reassign 77869 guix submitter 77869 "R.W.Flurando" severity 77869 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 17 11:10:57 2025 Received: (at submit) by debbugs.gnu.org; 17 Apr 2025 15:10:57 +0000 Received: from localhost ([127.0.0.1]:48110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u5QtE-0001ql-Mm for submit@debbugs.gnu.org; Thu, 17 Apr 2025 11:10:57 -0400 Received: from lists.gnu.org ([2001:470:142::17]:41408) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u5Qka-0000sm-FY for submit@debbugs.gnu.org; Thu, 17 Apr 2025 11:02:02 -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 1u5QkU-000488-VR for bug-guix@gnu.org; Thu, 17 Apr 2025 11:01:55 -0400 Received: from latitanza.investici.org ([82.94.249.234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u5QkR-0008HT-J9 for bug-guix@gnu.org; Thu, 17 Apr 2025 11:01:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1744902105; bh=E3qVEYmCyHGrdEIjpL8MGwjglepxaSTGiC1WcaaWbh8=; h=From:To:Subject:Date:From; b=euIby/oLNJS2AnBo3g/aabo6dKkBdNesIboHZcsJrg5s/dZxEzVBkYCyRZSgh7yTc sJF/HvVHYy+RFX+DE78HEUN+h9Sqy8DxMCQks6SpLVfEFzGYk0FDtws82cFwXlUTLT dDdQBwG9DC1MVNbbDB7RN9yX6PTxLoZI9y5s/OXI= Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4Zdh1j70znzGp6J for ; Thu, 17 Apr 2025 15:01:45 +0000 (UTC) Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: rw-flurando@inventati.org) by localhost (Postfix) with ESMTPSA id 4Zdh1j2N88zGp4C for ; Thu, 17 Apr 2025 15:01:45 +0000 (UTC) From: "R.W.Flurando" To: bug-guix@gnu.org Subject: how can artanis support minimal mode? Date: Thu, 17 Apr 2025 23:01:32 +0800 Message-ID: <87o6wuess3.fsf@inventati.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=82.94.249.234; envelope-from=rw-flurando@inventati.org; helo=latitanza.investici.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 17 Apr 2025 11:10:53 -0400 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.1 (/) It has really been a long time that gnu artanis, the lovely python flask or rust rocket equivalance in guile, can not run under minimal mode here, in guix system I consider this a bug instead of any sort of wish list because this behaviour is definitely below expectation having checked the package definition this afternoon and examined part of artanis source code for nearly a whole day, I found that there is code dealting with the config files in guix package definition > (substitute* "Makefile" ;set the root of config files to OUT > ((" /etc") (string-append " " out "/etc"))) but it does not work even though artanis derivation folder is populated with correct files then because inside artanis it is hardcoded to check "/etc/artanis/artanis.conf", one can find the definition of *default-conf-file* inside the "artanis/config.scm" file now my question is what is the best way to solve this undesired nasty behaviour? in my opinion the main fault is artanis hardcoded the default path assuming fhs as well, instead of using more flexible ways since the maintainer of artanis is a gnu constributor, I wonder if anyone would finally reach him/her/they up and adapt a better way that support the specified config folder at build/install phases or is it the guix side's responsibility to figure out some walkaround as there are a lot of packages out there assuming fhs and even hardcoding /usr/local/share -- we can't just shut the door to them right? For the former solution, it might be more appropriate for a senior contributor to chat with the contributor... For the latter solution, is it realistic to modify the phase to patch or somehow change the *default-conf-file* related stuff before actually getting the derivation? (I guess changing it to "etc/artanis.conf" would work if the derivation folder is in its loadpath, but of course just a guess anyway!) forking artanis is not desired just for this, since most folks might use art work instead of minimal mode hope for a fix or guidance about source patching "on the fly" really don't like falling back to things like > python3 -m http.server every time I need a quick api server. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 17 20:06:13 2025 Received: (at 77869) by debbugs.gnu.org; 18 Apr 2025 00:06:14 +0000 Received: from localhost ([127.0.0.1]:48931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u5ZFF-00067n-6E for submit@debbugs.gnu.org; Thu, 17 Apr 2025 20:06:13 -0400 Received: from latitanza.investici.org ([2001:888:2000:56::19]:21115) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u5ZFA-00066p-Ax for 77869@debbugs.gnu.org; Thu, 17 Apr 2025 20:06:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1744934766; bh=j7XZ2qvmirURmc9im7mzhBBLxKVwbmij9v8lCajtmaQ=; h=From:To:Subject:In-Reply-To:Date:From; b=DiXkF+eeTC43I3ZqlaJ8zVrv+TEJHh8Eb4PD65FGdkFtB3s6K7IeyR/KjegSGpRz4 3FRbx0sc9nRIGCoZZWQAiqcGOo9J26XWjBr5+23f1AhfcrfvTN5OUuS4OhepIc8or3 uaWKjA/xDQNXqPxK/ai9ZvzpzGtjAW7eauILNYCQ= Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4Zdw5p4VbPzGp3c for <77869@debbugs.gnu.org>; Fri, 18 Apr 2025 00:06:06 +0000 (UTC) Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: rw-flurando@inventati.org) by localhost (Postfix) with ESMTPSA id 4Zdw5n71x1zGp5d for <77869@debbugs.gnu.org>; Fri, 18 Apr 2025 00:06:05 +0000 (UTC) From: "R.W.Flurando" To: 77869@debbugs.gnu.org Subject: Re: bug#77869: Acknowledgement (how can artanis support minimal mode?) In-Reply-To: GNU bug Tracking System's message of "Thu, 17 Apr 2025 15:11:04 +0000 (8 hours, 48 minutes, 22 seconds ago)" Date: Fri, 18 Apr 2025 08:05:53 +0800 Message-ID: <871ptqnxjy.fsf@inventati.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 77869 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.7 (-) to add something the artanis Makefile.in has checks of DESTDIR when installing or uninstalling and and it do respect DESTDIR for the /etc/artanis/artanis.conf I wonder whether the *default-conf-file* is really hardcoded seemingly it is then what will happen if I do ask for a DESTDIR? Since the store path would be clear only when the hash has been computed, it might be a egg-and-chicken problem which means one cannot specify the correct DESTDIR even if artanis config module respect this as well No idea how to use the gnu autotools so I can't try them out now wish for someone to look in maybe a wrapper (generating artanis and artanis.real derivations in the end) could be supplied? From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 18 03:03:20 2025 Received: (at 77869) by debbugs.gnu.org; 18 Apr 2025 07:03:20 +0000 Received: from localhost ([127.0.0.1]:49460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u5fkt-0005th-1s for submit@debbugs.gnu.org; Fri, 18 Apr 2025 03:03:20 -0400 Received: from devianza.investici.org ([198.167.222.108]:47647) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u5fko-0005sV-4x for 77869@debbugs.gnu.org; Fri, 18 Apr 2025 03:03:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1744959792; bh=5U2Pk6PmL0Gn+ovK7NQ3yhaZPJwPbTpSt3GAiB5UOKg=; h=From:To:Subject:Date:From; b=cNzb8VfqWmupeQadnbvcZ1c1hqEBP8LcLUDchAC60ovB+XjYtTH1RIbRMw5YV6+vL McMf9sCFJ70amMqhvmRsA7W942S5EcmjMBHjgMRCKrX6MBZlm5MqxMzzzCuViIXW78 DhUwYauh1w1Js5rIjtIWvX+9z5ln8uJo/ey5pPBA= Received: from mx2.investici.org (unknown [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id 4Zf5M40lYNz6vK5 for <77869@debbugs.gnu.org>; Fri, 18 Apr 2025 07:03:12 +0000 (UTC) Received: from [198.167.222.108] (mx2.investici.org [198.167.222.108]) (Authenticated sender: rw-flurando@inventati.org) by localhost (Postfix) with ESMTPSA id 4Zf5M03BHMz6vJK for <77869@debbugs.gnu.org>; Fri, 18 Apr 2025 07:03:05 +0000 (UTC) From: "R.W.Flurando" To: 77869@debbugs.gnu.org Subject: personal walkaround before upstream fix Date: Fri, 18 Apr 2025 15:02:48 +0800 Message-ID: <87ldrygdev.fsf@inventati.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 77869 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.7 (-) after trying a lot and compiling a bunch withmy 10y ago pc I got a walkaround with patches and custom package definition for those who wanna check, see > https://codeberg.org/rw-flurando/Dotfile in the package/guile-xyz/ folder basically speaking, I changed the (init-config) procedure in the artanis/config.scm to check the place where guix put profiles at a path like /home/bob/.guix-profile/etc/artanis.conf (no idea if installing the patched artanis with guix home profile would work or not because I haven't experiment yet) also, for minimal mode, we have to disable i18n since init-i18n would assume there is a sys/json or similar folder in the current working directory, which is unrealistic for minimal mode so the second patch is to add a switch in init-server to skip the call to init-i18n now, with this walkaround, artanis works well in minimal mode as long as I call (init-server #:i18n? #f) instead of (init-server) need further experiment to check whether the normal behaviour without these two patches are influnced and whether installing in the home profile instead of package list works as well feel free to inform better solution or reach codeberg.org to see my dotfile repo. Have a nice day!