From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2L6wDS6w9WaBaAAAe85BDQ:P1 (envelope-from ) for ; Thu, 26 Sep 2024 19:04:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 2L6wDS6w9WaBaAAAe85BDQ (envelope-from ) for ; Thu, 26 Sep 2024 21:04:14 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=VyxoNEdY; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Mc6N5uGE; 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), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727377454; 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=UkpfJkZxFqVm2rLF2tEik9lCaPjlDCqxpemSZMtIs9Q=; b=mH5FHwwf6at//l6tCBBU7g9paO81l4ftxIjqXY1m9q4OW6c4GglaY9eETbyLj+xJKKBqFL h60LLryL2WBZ93nFNqWKX4Thm6otoIhMiQf0bhrXfrJyjyGJRFg7dxTkATYEQgV9ts4B0X T5/8FmC4iRLnUOqVhyaU6sdt+03OQZ6OKbNtUPxWxhElrm+mKz1uEysNDpjhzlDxKUE/HA 9BRYmw38ANqC71MF3g+Umxpiw6p52c/tHOc5y6eHJlqjwN7VZpxH5qYGV+OdENe3Gq6TAs 6mtLyU7GXs36zz31tWsYLxnMii3Ei0NzUbAxXvr5bS68t7TpoT8AzfWMi4/7Lg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727377454; a=rsa-sha256; cv=none; b=SYQMWliu3X2Waf5yJkIuu/ei3W/us+FHtyRCArlReHeDE9YeFUUx3BeElSdMV0XTHLkZa/ lXOTaU5YKl9IGdsTz18BmaeivdSl5lSMU4ss4ArMzH9/bHdpIpmqNUZtRDCfIT/5tt5492 L3jLedyDC8y7LAxXVvN9aWDew2vwlZpg/v5P1ok6gpQ5lRGg+xpp8I7fHBKVSkQZtA6j0S TU93DNzmZCNy8peRap8BKXMXQgYSz0ZJxR1NDNkHysmGrZq5z569x+FWl2NpS/PBXAGL2o oWB+CuAa07/jCaoNoMq4PZH9hFYKCmYISQKA+iMskSW15iwuDZeybiCbxasRBA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=VyxoNEdY; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Mc6N5uGE; 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), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) 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 DC6D1604F2 for ; Thu, 26 Sep 2024 21:04:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stobm-0008Sz-M5; Thu, 26 Sep 2024 09:32:38 -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 1stobj-0008SZ-N7 for guix-patches@gnu.org; Thu, 26 Sep 2024 09:32:36 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stobj-0007RX-Dy for guix-patches@gnu.org; Thu, 26 Sep 2024 09:32:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=UkpfJkZxFqVm2rLF2tEik9lCaPjlDCqxpemSZMtIs9Q=; b=VyxoNEdYUCEzmgIF8XnlvK232v+9/NaLu5mTO5WU4Qd8nP+oDBWCaUpa05BkjC6/wEY0b/L0y31nf/Fx77kDnwwDwfrXE+OtK3lVifcfni8Kmzia0Tj4seapTpihB/g/DpN2vb5DZn0jqwjcNOyY8k3dn+FYh4ckyiDjDsm1eTFEJX/+8XGHsb8pG8DlxGaE/P9uJIQqa/GOJTktSxiNNUwqvBJHSWCtzh/1FPNqgF/HWjWNPHZaIDUF6tD7UM+twrjB8/fTT61Tv5QuW1mrkTESA+AHanBEFIQVoForznqpB/Cw4xko+SWYlvARo8Z+oDO0Com2fqxsP5AzOqaTxg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1stocA-0008LP-Io for guix-patches@gnu.org; Thu, 26 Sep 2024 09:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73073] [PATCH v2 1/8] guix: packages: Allow origin inside inputs with "new style". Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 26 Sep 2024 13:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73073 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Simon Tournier Cc: Josselin Poiret , 73073@debbugs.gnu.org, Mathieu Othacehe , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice , Christopher Baines Received: via spool by 73073-submit@debbugs.gnu.org id=B73073.172735755732037 (code B ref 73073); Thu, 26 Sep 2024 13:33:02 +0000 Received: (at 73073) by debbugs.gnu.org; 26 Sep 2024 13:32:37 +0000 Received: from localhost ([127.0.0.1]:33624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stobl-0008Kf-1C for submit@debbugs.gnu.org; Thu, 26 Sep 2024 09:32:37 -0400 Received: from mail-pf1-f179.google.com ([209.85.210.179]:57433) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stobi-0008KN-SK for 73073@debbugs.gnu.org; Thu, 26 Sep 2024 09:32:35 -0400 Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-718e6299191so570273b3a.2 for <73073@debbugs.gnu.org>; Thu, 26 Sep 2024 06:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727357461; x=1727962261; 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=UkpfJkZxFqVm2rLF2tEik9lCaPjlDCqxpemSZMtIs9Q=; b=Mc6N5uGEYWapRdspPqJYM4HeS3TZVQKPFK+BWNHXtpoBFzE4KZo6JAfPee5VEWRDZH Mm0ESb7IXtaKPn0emHugfsrWQnJgUDHuWTN3ODocI/Mjf6e+yhi/pS/c7JKQba76cPq1 ELJsRo5DM3q3zYnTEoW7uvNd/K+Q6eC+gt40aoE0CFM4wJwwCfwxO+KqHIipMPLVc5Oq djhkpPaTx1LW7CwEJIaXzpT7wvSjnQlbLDlDvhbTCSEBER9tYPnWhGlkNeLeUhkOP4du +5ODDFhdWEK9mvo0VFf06mq40ZHa5sYuNLI/zTE/q7tqn3LGkG5jT8e3+RFNt+HAjib7 4/eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727357461; x=1727962261; 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=UkpfJkZxFqVm2rLF2tEik9lCaPjlDCqxpemSZMtIs9Q=; b=SjteFUGB6ZKQkVe6S0QWWInTZ/lgIZhGHqkM95r9Hl/3gzxr+Ajj8jbD/ai4QptTMk juCTpY/Fdad5IyfmCbYjceiD1Id/ISImPPVuyL4oUGYDLoiQWATgNzppICNiH89hOfCN 4OcMJM9o9gkbV+pdomhlnUqOlN55gVA5G1+6stkHbsIMEvmKe7Yq/7pSeUXoKANQpRPy 0bvSMBiSRq5t4sY4FQLessZAl2W0ghY4DQvmf63/Lc1P0X1qz/kh3wDDvGONBjb7eorS B9NDDvr5ay+L4bUDH8vQdu1I+qctH/gJcNWAryGpktNyC3IcZGaGjcoHK3dfp9SGLjJM iPCw== X-Forwarded-Encrypted: i=1; AJvYcCWfmLdkbZANyp8hBXULBBXqsHOlhGLsJNmeiKkZqRUhswfotYJAWRnGuw4shD+6bPervLXqSg==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yy0et1Wb2o5a+CcNcsKW7CnTtcnfOqgTDWmmg9axFa3zzr2hvF1 vBa6mTGSll8O4Yqx3iD6iCbhaaxaI5iWcM3QP6jQMQwbtFlPL3IJ X-Google-Smtp-Source: AGHT+IF5XdcTPo5LYVVxfvhig3xSWRuSbEnv1HvgtGapOo34grYZ+4vuMwKaNtgdMZVf1l/1Q+FleQ== X-Received: by 2002:a05:6a20:ce4d:b0:1d0:45c2:8140 with SMTP id adf61e73a8af0-1d4d4aa925bmr8907197637.18.1727357461341; Thu, 26 Sep 2024 06:31:01 -0700 (PDT) Received: from hurd ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e06e2c2cc2sm3450425a91.49.2024.09.26.06.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 06:31:00 -0700 (PDT) From: Maxim Cournoyer In-Reply-To: <87ed5j2uus.fsf@gmail.com> (Simon Tournier's message of "Mon, 16 Sep 2024 22:42:51 +0200") References: <874j6fbbc6.fsf@gnu.org> <87ed5j2uus.fsf@gmail.com> Date: Thu, 26 Sep 2024 22:30:57 +0900 Message-ID: <87v7yiee3y.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-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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.97 X-Migadu-Queue-Id: DC6D1604F2 X-Spam-Score: -8.97 X-TUID: z08vqFUipzEI Hi Simon, That's an interesting series! Simon Tournier writes: [...] >> I would rather have this hack in =E2=80=98tzdata=E2=80=99 itself, along = the lines of >> what I sent in a previous message. > > Yes, indeed tzdata can temporarily transformed into the old style. It > avoids the world rebuild and it=E2=80=99s a modification easier to change= than > the one about maybe-add-input-labels. I agree that=E2=80=99s better. > > >>> @@ -676,6 +679,13 @@ (define (add-input-label input) >>> "_") >>> ,obj >>> ,@(if (string=3D? output "out") '() (list output))))) >>> + ((? origin? origin) ;XXXX: Remove next world rebui= ld >>> + (let ((texlive (package-source >>> + (module-ref (resolve-interface '(gnu packages tex= )) >>> + 'texlive-latex)))) >>> + (if (eq? input texlive) >>> + (list "_" origin) >>> + (list (or (origin-actual-file-name origin) "_") origin)))) >> >> I think this should be avoided, but what is it that causes a rebuild in >> this case? > > It=E2=80=99s about the package texlive-hyphen-complete; it leads to a wor= ld > rebuild =E2=80=93 as pointed in the cover letter of v2 ;-) > > It reads: > > (native-inputs > (list ruby-2.7 > ruby-hydra-minimal/pinned > ;; Build phase requires "docstrip.tex" from TEXLIVE-LATEX. > ;; However, adding this package to native inputs would initiate > ;; a circular dependency. To work around this, use TEXLIVE-LA= TEX > ;; source, then add "docstrip.tex" to TEXINPUTS before build. > (package-source texlive-latex) > texlive-tex)) > > then: > > (add-before 'build 'include-docstrip.tex > (lambda* (#:key inputs native-inputs #:allow-other-keys) > (let ((docstrip.tex > (search-input-file (or native-inputs inputs) > "tex/latex/base/docstrip.tex"))) > > > Well, we can apply the same hack as tzdata: temporarily revert to the > old style. Would you please send a v3 with the above implemented? Then we could move forward, I think. --=20 Thanks, Maxim