From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0N8KIvWHqGObMgEAbAwnHQ (envelope-from ) for ; Sun, 25 Dec 2022 18:27:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uFbjIfWHqGM6ewEAauVa8A (envelope-from ) for ; Sun, 25 Dec 2022 18:27:17 +0100 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 E757D41287 for ; Sun, 25 Dec 2022 18:27:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p9UmA-0004Ir-Dj; Sun, 25 Dec 2022 12:27:06 -0500 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 1p9Um6-0004Ib-0w for guix-patches@gnu.org; Sun, 25 Dec 2022 12:27:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p9Um5-0004ul-Ot for guix-patches@gnu.org; Sun, 25 Dec 2022 12:27:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p9Um5-0007JF-IM for guix-patches@gnu.org; Sun, 25 Dec 2022 12:27:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59845] [PATCH 0/4] Add PMB (Integrated Library System) Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Dec 2022 17:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59845 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "yarl baudig" Cc: Julien Lepiller , 59845@debbugs.gnu.org Received: via spool by 59845-submit@debbugs.gnu.org id=B59845.167198919728040 (code B ref 59845); Sun, 25 Dec 2022 17:27:01 +0000 Received: (at 59845) by debbugs.gnu.org; 25 Dec 2022 17:26:37 +0000 Received: from localhost ([127.0.0.1]:50072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9Ulg-0007IA-QU for submit@debbugs.gnu.org; Sun, 25 Dec 2022 12:26:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9Ule-0007Ht-Lr for 59845@debbugs.gnu.org; Sun, 25 Dec 2022 12:26:35 -0500 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 1p9UlY-0004mI-4g; Sun, 25 Dec 2022 12:26:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=qd1m0avPh08yeNWkGmjTv71KCAQ0sxMgDzqbO0S+/Yk=; b=U2U9UStT+eECxOfZAch4 wge/FWj2SQqDDF0y7LoJiHlh8zPUEx6S7gIOjF4tBmicpH88nAejVFQYitORJlvPRU2B6sDTwEiq5 Gyoph5uA+BsdHOhEwDm5lDr4xlFEGkAS44Tt7rI/REqAxVgWQ3CPqYf6GZTe5CV7hrtxfbXqtj0h3 paeXJkx8M8BLHQYO6iztdcnpDCHZbXv3kTMK1Iku0wwFTrTgnNOZfDgNhIj+MGatzyxTnOcEk6PxE RJr9qi2qSzv+3KfGZ3LnYRSVkMiFuQO6Jvmbbjsq1J5/LCsya+v2cp18y3h2YadOUJj2LB5a+f4g7 jpP9mLMTbtDKcw==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9UlX-0001Zq-Fo; Sun, 25 Dec 2022 12:26:27 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 5 =?UTF-8?Q?Niv=C3=B4se?= an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour du Chien 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-pc-linux-gnu Date: Sun, 25 Dec 2022 18:26:25 +0100 In-Reply-To: (yarl baudig's message of "Fri, 23 Dec 2022 09:17:54 +0100 (CET)") Message-ID: <87pmc7wg1q.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671989237; a=rsa-sha256; cv=none; b=esJEohafaJO4VDT1krgGysFFG+d15v5BGDorNFYHHc6oXFV1up/5ae3vGtXNqEIUGqz5+F fUHxv3a47brnAhbVksVh1/hFee8sfmeJMrCs65NXnPpdJhTMq2uflHhgcK40MMesqqCRWL 7RyBSZvuAbVEuEzAs9/EyaACEQ1FBhRwV/Lik26oXanGw/Fldfea/PXlgCmP4wTeLINjmX 7AgqZcTCeDGWPttgHjg2j15IJAv/LgjuCKfpVr3wmUgNVgSa+wKSblxt7jfgyMmteRUORC t6F3YoWwG/pN1bUr1FMNdUcbk0xi7tIbTL6hzZKLjj7PNxZKAv7MGewbzCTbHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=U2U9UStT; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671989237; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qd1m0avPh08yeNWkGmjTv71KCAQ0sxMgDzqbO0S+/Yk=; b=H9AVV3xKOl0mv1rzLVyke7VlVNuMzF4vxD8R1QeAjhywy+M7g6BmR1DMVT31FiJZqTH04u AqrAGGJSzT0vd4YnR4KJULzMe+CHVFLjNz9ZEZIdrmQf1ERut1l3EovqojTpwDlZ6Uvhyr hxp3vOiMszb6Ckn/ra9hDM9v/R10vrde7i7vdS1/SfAt3bzufGsUovrcWP2vl+RGvq0wLY GD73f/tLMPaXmaypkIWj7p+OnN+HQPUBEUl6jJKiNF6iTY7Cz75gprIS8+t4cwlq+lZZa5 Pck/z5Jlhs9oHJJ6yz5vYfvqdEnUlT6CSC5A9JUqqgWLN2UhJVgP/Rr/2pY4Eg== X-Spam-Score: -3.92 X-Migadu-Queue-Id: E757D41287 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=U2U9UStT; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.92 X-TUID: Q7uxbnydaiaw Hi, "yarl baudig" skribis: >> > >> > Now, I see one solution to avoid the copy (and the chown), apart from = the=20 >> very first activation. That's keeping even more state into http-director= y :=20 >> for example a file ".version" with the hash of the pmb package used insi= de.=20 >> That way we know if there's really an upgrade. What do you think? >>=20 >> It sounds like it=E2=80=99s going a bit far in terms of complexity. >>=20 >> Why do we need to copy these files every time? Do they actually have to >> be writable? If not, whatever this copying step is doing could be done >> in a =E2=80=98computed-file=E2=80=99. >>=20 >> Does that make sense? >>=20 > > Hmm no, not really. Yes it has to be writable for the interactive initial= ization through web browser to take place. At least two operations take pla= ce there that need RW : > 1/ renaming of both install.php and install_req.php. > 2/ saving into a file the url and credentials for connexion to the databa= se. Credentials have to be handled out-of-band anyway (keep in mind that /gnu/store is world-readable so in general we cannot have password in transit via the store). > There is no _need_ to copy every time. I did like this in my first patchs= because it was _correct_ (I didn't think about efficiency then). > > That's why I am proposing the solution which copy only for the very fist = activation and for the first activation after a package upgrade (or downgra= de). > > I don't see how we could avoid this. I don't think it's a good idea to tr= y to avoid the interactive installation as it gives informations and option= s on the installation to the user. OK. > Why "computed-file"? Take it with a grain of salt because I still have an incomplete understanding of the initialization process of PMB. My thought was that, if there=E2=80=99s a =E2=80=9Ccomputation=E2=80=9D (co= pying files around, renaming some) that can be done once and for all, then we could do that in =E2=80=98computed-file=E2=80=99. But what you=E2=80=99re saying, IIUC, = is that this is not done =E2=80=9Conce and for all=E2=80=9D. HTH, Ludo=E2=80=99.