From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id RghNNbzaQGEkKQAAgWs5BA (envelope-from ) for ; Tue, 14 Sep 2021 19:24:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kCwiMLzaQGHregAAbx9fmQ (envelope-from ) for ; Tue, 14 Sep 2021 17:24:12 +0000 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 EFDEA1C653 for ; Tue, 14 Sep 2021 19:24:11 +0200 (CEST) Received: from localhost ([::1]:35248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQCAE-0004pR-8R for larch@yhetil.org; Tue, 14 Sep 2021 13:24:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQCA6-0004pC-NN for bug-guix@gnu.org; Tue, 14 Sep 2021 13:24:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQCA6-0007Xu-FR for bug-guix@gnu.org; Tue, 14 Sep 2021 13:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQCA6-0005eQ-4R for bug-guix@gnu.org; Tue, 14 Sep 2021 13:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#27447: pelican-quickstart produces files with store path shebangs Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 14 Sep 2021 17:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27447 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mark H Weaver Received: via spool by 27447-submit@debbugs.gnu.org id=B27447.163164024021715 (code B ref 27447); Tue, 14 Sep 2021 17:24:02 +0000 Received: (at 27447) by debbugs.gnu.org; 14 Sep 2021 17:24:00 +0000 Received: from localhost ([127.0.0.1]:50088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQC9y-0005e0-OT for submit@debbugs.gnu.org; Tue, 14 Sep 2021 13:24:00 -0400 Received: from mail-wm1-f54.google.com ([209.85.128.54]:45749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQC9w-0005dn-G7 for 27447@debbugs.gnu.org; Tue, 14 Sep 2021 13:23:53 -0400 Received: by mail-wm1-f54.google.com with SMTP id j17-20020a05600c1c1100b002e754875260so86473wms.4 for <27447@debbugs.gnu.org>; Tue, 14 Sep 2021 10:23:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=uc67tk8qsX8SYFRRc9GI93J5xVqgL036/aPyv0JCPeg=; b=DKAAq2qFM7N+CYvsG2gljqVLln1Mo6tMoiqvA/CKzVI9f+17GQJDbXxyB9Y/8Il4sS FnaTHWpR5DsNedUxhq0QNGZWnu8zX2gIy6XkPO6PDIaoPiKFXmp1DySA5RhWQNu3Vz4q cv4jF/KE6BJecSRXP47vLdHyBUQkiEHc6GJznI8QxDFzsiaaa1S7TdmwntkkVvv/gtxY yHihbwgMXB17/35i3A9DoyY6Ew46j0FVAUXBBLWBHrm+euRo1KZnH8WHL0TAuzlyMPb1 dXfUEQJbvo7xKHYdbEstS/BLesd9xFYPv6thVwCaoo6WjPYlSkum8CBUCNAH3pDZvWZz edWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=uc67tk8qsX8SYFRRc9GI93J5xVqgL036/aPyv0JCPeg=; b=xcJSTf7MxoU6Dg9Ily438sNFyAcoDcgDpvLcOx1r0rPSEQJBvIKqVf4uSaD5kHb2HY bQJfKQ92aA8nG8sbJ1CwgO2fGxEoJmjiXt36D7YvzdXrCGBL55e6x13IdiD+7LAeJRRr VULIPk7sI2hQ1JL2zRNbY8qEi4XpWHdC1FM8jTjJKy/dlL6dztTvvYvKsocX+0BCGJv5 P9ylGVeSHH0hG5OyOLX4UebhKvBhgPKJmzmtmWcpFxtXt4aVbJVstRFqiqWBQgvMpHaT jpwgVnflNMalVKAvgvtj1jsMXDUQuUowZBTN84fuVWdDauCa0RI1NmHZrHUbuHzJGRjN oelQ== X-Gm-Message-State: AOAM530Q89xRNwOCEh1UCU7EfOd1rVokzz4/Pqgbqr1lU4qH/nSZ5+yr oTm/1gGmZI/hiZ7gIXqm1/4= X-Google-Smtp-Source: ABdhPJyuM/41oEiONmJvFnrN1QUeGJihzf/ypu3qRFJ+o9Y9teCbNIQfXmvI05rI0MMGyDDq5o+NXg== X-Received: by 2002:a1c:2c3:: with SMTP id 186mr239579wmc.195.1631640226537; Tue, 14 Sep 2021 10:23:46 -0700 (PDT) Received: from lili (roam-nat-fw-prg-194-254-61-41.net.univ-paris-diderot.fr. [194.254.61.41]) by smtp.gmail.com with ESMTPSA id x21sm1679535wmi.15.2021.09.14.10.23.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Sep 2021 10:23:46 -0700 (PDT) From: zimoun References: <20170622123528.7xhnrkj5ksjznp3g@abyayala> <868s9uvprq.fsf@gmail.com> <86a6tftyrm.fsf@gmail.com> <87im804dds.fsf@netris.org> <86h7njsvtn.fsf@gmail.com> <87a6tb3yz0.fsf@netris.org> Date: Tue, 14 Sep 2021 17:17:21 +0200 In-Reply-To: <87a6tb3yz0.fsf@netris.org> (Mark H. Weaver's message of "Thu, 14 Jan 2021 18:00:40 -0500") Message-ID: <8635q7tce6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 27447@debbugs.gnu.org, ng0 Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631640252; 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=uc67tk8qsX8SYFRRc9GI93J5xVqgL036/aPyv0JCPeg=; b=SKf57QkGFqVKdLtTGNgr+9Neb6pLsAckfxl2EBiiteUeb0D3AR57dVp6SQRN3kNaSHxgR6 4GGwsGKbZVGVh6VCHMD8nXG6Ne46fOS1YxzROIxdG4qgzDjVBJX6wbFgHVjdamKF3oHfVL 9FTG3hOJP85eMYL8WW4r6BExsyR5+llh/ZeLEXP7STpcX+kp4NynRaJsm/Vr8ODVk7HuvF M+/gDREPhRNHMsPEI6wdCOzoG4yLsnxRLoBHm0Ve/3QQdp4NVjiDDaqdNRUXa5QjLYZDoa k3L/5u+bfM7JMMPli+seqzOf6LnZvyQ/X28RbSR9/0pjv6U/ewg4lUJHKXTNRQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631640252; a=rsa-sha256; cv=none; b=On3LGbYnLM50RNH3EQJ6NfmTLPIcvddMYIkiq8/BJ71vSPkDj1zM7YWNNcPA2IEnOilFnJ hM0oXT8GWuP85Mc7sXRUzY94QYgcU+rvasY2FWODOutttbJL3c0cexNB+A4UX1TdfsWGHV p8E5PSNBlNQCUMwhaQuq+Gu09eOB0uugZVbh/UrYcomnTb5yixOtZyxjrxgc6WulfoiJzS eTQLHHaLGfb/UNTNT2mGjSlQgWx0EFJNrqrOKGniUDOO0BUVEStwPjn+VZbXqhDquBvHLx BGk7dL78gfucPLN2kKGQvygBgRjiaSNNjsZJzNb+/ZI9o/IL3oo+mWZtyNTK3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=DKAAq2qF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=DKAAq2qF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: EFDEA1C653 X-Spam-Score: -1.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: LwkkEIpvC2xK Hi Mark, On Thu, 14 Jan 2021 at 18:00, Mark H Weaver wrote: > zimoun writes: >> --8<---------------cut here---------------start------------->8--- >> $ guix environment -C --ad-hoc pelican coreutils grep >> [env]$ mkdir foo && cd foo && ls -l >> total 0 >> >> [env]$ pelican-quickstart >> Welcome to pelican-quickstart v4.2.0. >> >> This script will help you create a new Pelican-based website. >> >> Please answer the following questions so this script can generate the fi= les >> needed by Pelican. >> >> >>> Where do you want to create your new web site? [.] >>> What will be the title of this web site? Foo >>> Who will be the author of this web site? zimoun >>> What will be the default language of this web site? [en] >>> Do you want to specify a URL prefix? e.g., https://example.com (Y/n) n >>> Do you want to enable article pagination? (Y/n) n >>> What is your time zone? [Europe/Paris] >>> Do you want to generate a tasks.py/Makefile to automate generation and = publishing? (Y/n) y >>> Do you want to upload your website using FTP? (y/N) N >>> Do you want to upload your website using SSH? (y/N) N >>> Do you want to upload your website using Dropbox? (y/N) N >>> Do you want to upload your website using S3? (y/N) N >>> Do you want to upload your website using Rackspace Cloud Files? (y/N) N >>> Do you want to upload your website using GitHub Pages? (y/N) N >> Done. Your new project is available at /tmp/bar >> >> [env]$ ls >> Makefile content output pelicanconf.py publishconf.py tasks.py >> >> [env]$ egrep -nr "store" >> pelicanconf.py:1:#!/gnu/store/h8jw9qhyfp6fm6nb3cgh4335qhr31wfz-python-wr= apper-3.8.2/bin/python >> publishconf.py:1:#!/gnu/store/h8jw9qhyfp6fm6nb3cgh4335qhr31wfz-python-wr= apper-3.8.2/bin/python >> --8<---------------cut here---------------end--------------->8--- >> >> Why is it a bug? > > It's a bug because these absolute file names will cease to exist after > the next 'core-updates' merge happens, and more precisely after the > older system generations (or user profiles) are deleted and 'guix gc' > subsequently deletes these obsolete store items. > > At that point, maybe things will break. I think that would need to be > investigated before dismissing this bug report. I still miss why it is a bug. The script =E2=80=99pelican-quickstart=E2=80= =99 is an *helper* to generate this configuration file =E2=80=99pelicancon.py=E2=80= =99. Therefore, the user should review it, IMHO. Let consider this scenario: 1. guix install pelican 2. pelican-quickstart 3. guix pull 4. guix upgrade 5. guix gc At step #2, the generated configuration file is in agreement with the Python interpreter. Then, I agree that this Python could be gone after the GC. However, there is no guarantee that the generated configuration file at step #2 still works with the potentially upgraded Pelican version (step #4); independently of the shebang issue we are speaking. Somehow, it is the responsibility of the user to maintain their configuration file across the Pelican versions. Well, considering my previous words [1], Why does embed store paths in configuration files is an issue? Pelican is a Python application which therefore requires a Python interpreter. Running =E2=80=99pelican=E2=80=99 against anot= her Python VM than the one it was built seems a bad idea. And if the point is run =E2=80=9Cpelican-quickstart=E2=80=9D with o= ne Pelican version built against one Python VM, and then reuse these generated config files with another Pelican version built against another Python VM, in this use-case, the bug is upstream because it embeds absolute path which does not respect PEP 394 [2]. I still think the bug is upstream. Anyway. The point is to resolve and close this report. ;-) First, I am not sure Pelican is a lot run by Guix users. The version 4.2.0 seems from Oct. 2019 and the last upstream version is 4.6 from March 2021. Running, $ ./pre-inst-env guix refresh -u pelican $ ./pre-inst-env guix environment -C --ad-hoc pelican \ -- pelican-quickstart does not fix the issue. (Maybe I will submit the resulting update, separately.) Second, do we patch Pelican to remove? If yes, these absolute file names in the generated configuration file should be replaced by what? Cheers, simon 1: 2: