From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OHFmIoNkpWNMWAAAbAwnHQ (envelope-from ) for ; Fri, 23 Dec 2022 09:19:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KH2iIYNkpWPhGAAAG6o9tA (envelope-from ) for ; Fri, 23 Dec 2022 09:19:15 +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 36A9028DB1 for ; Fri, 23 Dec 2022 09:19:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8dGj-0005iW-2B; Fri, 23 Dec 2022 03:19:05 -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 1p8dGg-0005hd-Lc for guix-patches@gnu.org; Fri, 23 Dec 2022 03:19: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 1p8dGg-0006Ro-DQ for guix-patches@gnu.org; Fri, 23 Dec 2022 03:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p8dGg-0004Z9-1H for guix-patches@gnu.org; Fri, 23 Dec 2022 03:19:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59845] [PATCH 0/4] Add PMB (Integrated Library System) References: <20221205214838.27594-1-yarl-baudig@mailoo.org> Resent-From: "yarl baudig" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Dec 2022 08:19:02 +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: ludo@gnu.org Cc: Julien Lepiller , 59845@debbugs.gnu.org Received: via spool by 59845-submit@debbugs.gnu.org id=B59845.167178349117542 (code B ref 59845); Fri, 23 Dec 2022 08:19:02 +0000 Received: (at 59845) by debbugs.gnu.org; 23 Dec 2022 08:18:11 +0000 Received: from localhost ([127.0.0.1]:36816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8dFr-0004Ys-8M for submit@debbugs.gnu.org; Fri, 23 Dec 2022 03:18:11 -0500 Received: from msg-2.mailo.com ([213.182.54.12]:44438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8dFp-0004Yl-M8 for 59845@debbugs.gnu.org; Fri, 23 Dec 2022 03:18:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailoo.org; s=mailo; t=1671783474; bh=8PPbU6az/lfjMeMOJiv8HocgIKenfuqhcxlXKf+rDBY=; h=X-EA-Auth:From:To:Cc:Date:Subject:MIME-Version:X-Mailer: Message-ID:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=l5RkciF5/MXR+krTKdIL1Sjs9S7rCeSJisiPve+4JDj2wJ7EkRywiaRKoQflx9hrd B7b+7LcalxAJioST0RplsRza1D67QQzgJI0J8IR/DY53AFIMNP2dsfs0NUB1B0Ij/T MTDeMVYKjoWpsLVFMvdBrSHrOKONndzoH+CUd2J0= Received: by www.mailo.com with http webmail; Fri, 23 Dec 2022 09:17:54 +0100 (CET) X-EA-Auth: WsxY16deJsJp4ePfs5wEA1G4ARW1/HRzRdPxEGq6omIvAxMh8YiZzYQ/dOILzSGLFRlAsJzFu5Z4L1l5+OWTU7Ta7aqLdVze From: "yarl baudig" Date: Fri, 23 Dec 2022 09:17:54 +0100 (CET) X-Priority: 3 MIME-Version: 1.0 X-Mailer: COMS/EA22.05/r20221103 Message-ID: In-Reply-To: <87bknv12q3.fsf@gnu.org> 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=1671783555; a=rsa-sha256; cv=none; b=T/sdkkStjALALF4GWJc5DWy/WJPMh3ZcsHoQdZqbFPatP1lf4Ksmd9hCyNIBITeXaMFV5f 9tNpl9m2zs6TXr+qfseYuG+EMKjpJtHJ+tyShrrMd0flJETGQuOW1/58O9hmsj88rU8eT/ /dsoC0iWlkXR2K+LDJA53lOLSMZ7QojoIgqUhcwbzgIawNKLeD8YDH18F7e3pIewsaufyz jJa1zWnSB0ieLUF05/5Cp9zLwEZHfdyry1OjoClH15YrX8tDLWK4Uz7klGKzsb/i5KNzsd G1xp77o1eq4YYTJRsMrLOM12bpxf2Qms2YVO95Jki7XnSnR14eV9WpoBQYH1ng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailoo.org header.s=mailo header.b=l5RkciF5; 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=fail reason="SPF not aligned (relaxed)" header.from=mailoo.org (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671783555; 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=T4HkkDMrE1pumMZfL0NpVI/tspgH1AJy7j12KEVyZO8=; b=o22Y/up4grRhB4SUptojbJXSn2cK8zR76anflSgTABI0ZNU6O1Osr13/ECp7X2l5q7deM3 4+Te/WQqivseFZ7t6LDKMUhXVrXVLbjK/HgVEANNSp/qk68C0say6E1z4Hlw468M+Ci5pN 7aJxI4SOg/fXWl0/mJtIKTkR5k7iZXR0SSppNj6GFyIXwexc61rnSuX943gpzyMuKQ8b3L OfniRvJlFqK5plD6xVT53GVyi1a6IUm1jGA3fkBGNAqDHZgvHHgyBlVLm1QEw4x8OxiVRK FtAxOUU9SzlD+Dw+zBFXpLIb7OvTb7C2PV19B5kaRIbF5dXUAsCwD0Zsz15COg== X-Spam-Score: -1.71 X-Migadu-Queue-Id: 36A9028DB1 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailoo.org header.s=mailo header.b=l5RkciF5; 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=fail reason="SPF not aligned (relaxed)" header.from=mailoo.org (policy=none) X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -1.71 X-TUID: 7t7+SKEQcHbD > > > > 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 initiali= zation through web browser to take place. At least two operations take plac= e 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 databas= e. 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 a= ctivation and for the first activation after a package upgrade (or downgrad= e). I don't see how we could avoid this. I don't think it's a good idea to try= to avoid the interactive installation as it gives informations and options= on the installation to the user. Why "computed-file"?