From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id AASkKgwGMWXZpgAAG6o9tA:P1 (envelope-from ) for ; Thu, 19 Oct 2023 12:33:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AASkKgwGMWXZpgAAG6o9tA (envelope-from ) for ; Thu, 19 Oct 2023 12:33:48 +0200 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 3CCD93423C for ; Thu, 19 Oct 2023 12:33:48 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=DaNX1+ZP; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF 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=1697711628; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=y8HIZ1ZUaUECYpFT5//8Ke7BZ9n29DzNWCZFSeCA3ao=; b=gnsKb/LvQuvR1cAazT7F6Nbjp9p/UnIhyKutO5JsWlnNFb7suOWX9uJTtP0IGAjDRar0cW azVzWmmFGZnA5HnO9+zoddf3zEtiGKQ+qud8/kdQHEAywxWdlQNspXeJBmXjtSrTs6czDw A89vd81YGTvDY01sL9iSIzDB+ROQADb2ctSuB5x/mW1CknHpDQ+4wdAt10bkceJSf83M6q ZKLf9qUXg+bDTke2QcZ6heEuX46l58zBSHlKgeJ4wUALadGR85Q9Grzp9eK/ATFkX8uBbg 3n70jSeTmCWekCmcb8HDsN3ZVrZ3PeOJNq5vr1lc+GTj1ARhBBAvvHknfKHEcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=DaNX1+ZP; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697711628; a=rsa-sha256; cv=none; b=AunH46/H2wuCZ6zQjVhru27ZbX1iEZBToKJtMp6nDB7c3cTokqDH37QNDnjJgkeSyroBbV goc6VP0CntMyteMOPhhhkPzs/EPPM0Q3jYFfu1s8ap0+WJmx6qh7AhSrA3QOtdRIoXF4Ae M8X0XlK0roZzr4e7gk8AY8AGK5lwBfMTZA18yI3y1MIpepeaiy2KhVkh/xL2DEMAEe4TvE dfYMrn5RaPHff2hC2ULGE2bFDbPPfQmLUN5fYfyKhKre1ocsqjl6+BHCAYLKsdvSr/cetN jkzPeeyBjUbjUQAcwan6C0yMERfudGIqiksMFDX4JeEZ/RK7/HIiYqX0BK/cNQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtQL5-0007i4-TF; Thu, 19 Oct 2023 06:33:17 -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 1qtQKr-0007ND-Bp for help-guix@gnu.org; Thu, 19 Oct 2023 06:33:02 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtQKp-00089r-Ee for help-guix@gnu.org; Thu, 19 Oct 2023 06:33:01 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40651b22977so12797185e9.1 for ; Thu, 19 Oct 2023 03:32:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697711578; x=1698316378; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date :disposition-notification-to:references:in-reply-to:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=y8HIZ1ZUaUECYpFT5//8Ke7BZ9n29DzNWCZFSeCA3ao=; b=DaNX1+ZP4SeprRu8JprG0L4BkgoQ51/LqIkdjbI3pog+HHoo8xgL5jBtNJ8vNpLAt8 24KGFZ+q2zKW/c1CcV2IO4B9ee3YolKaMvZsdc0sS7P+DS4Ky1rP8EXIBERgqcNPAC68 AOhJSa0NvrumNQmc03MUPPHYq/BrJ56jxRJmLVYVPOZdJ4LT/flz5GbsxgQjep4n4jgi yzn2M1GOrCeToMg/9EC19XIof1hhRQDgIiFilCbP6y11d/27FbTousObFKyHMcncB+at 0Jw2JLaET5lo8ojF1MUnARLG0qcSbTpg8yjFmKC34HFR1Heo9qPnvMNHwRUJCX7pKVEk E8Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697711578; x=1698316378; h=content-transfer-encoding:mime-version:message-id:date :disposition-notification-to:references:in-reply-to:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=y8HIZ1ZUaUECYpFT5//8Ke7BZ9n29DzNWCZFSeCA3ao=; b=KeLdMGyIReJ9LPkcRHBJqM2tx7XU1FRjeX9jcD4Pjf8q/wu2IO/Om31gerR8DYi1Uo 20pRx+tnx+ArW4Dk4ZxPYvQcvhD9dt9cNHJB1IOqVvLbpnjDIVARHbKttGykX1ArCJwM IgiaPFmrP2LdnqzSOZjDOz35UYm6BiSIVL8WkRb5QS2GWr/xnK7L6dS+oDeo9bTp8EJl VCesNHdOmaNy/Lf4nBmdJbl/vZC1KEOoDnWCvJDQCbZAqTICKlxIuMn/ltEfGTsWsPGP ED5bso249V2lwTu2zAK2opWW4ZGWUy6KnDxfJJk6u0G3eh6xXcqtbFFOXQC7Ngx51VZT NV/A== X-Gm-Message-State: AOJu0YwNAOSVHHY7GXx0gv0G0gz/Vj2hOOKuY1pB8NTHrI+8fkD1UC9+ YvrWfZo49rhnXuk0vUOAlI/1HOBc5vA= X-Google-Smtp-Source: AGHT+IGNN4AL1AO3ncngX90j6rPjKc7Dc6SJq8wWAq/VXCB2EVdBRNlHtDMvP2LOsVOhb8rofwgUPg== X-Received: by 2002:a05:600c:9a3:b0:404:72f9:d59a with SMTP id w35-20020a05600c09a300b0040472f9d59amr1487604wmp.0.1697711577452; Thu, 19 Oct 2023 03:32:57 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id u6-20020a05600c138600b004064288597bsm4154363wmf.30.2023.10.19.03.32.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 03:32:57 -0700 (PDT) From: Simon Tournier To: Rodrigo Morales , help-guix@gnu.org Subject: Re: [TIL] guix doesn't check hash when uri starts with file:/// In-Reply-To: References: Date: Thu, 19 Oct 2023 11:54:58 +0200 Message-ID: <878r7zndhp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 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, FREEMAIL_FROM=0.001, GB_FREEMAIL_DISPTO=0.499, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 2.87 X-Spam-Score: 2.87 X-Migadu-Queue-Id: 3CCD93423C X-Migadu-Scanner: mx2.migadu.com X-TUID: W+UIjIVrk1t9 Hi, On Wed, 20 Sep 2023 at 19:18, Rodrigo Morales wrote: > #+BEGIN_SRC scheme > (define-module (my packages experiments-zathura-custom) > #:use-module (guix packages) > #:use-module (guix download) > #:use-module (gnu packages pdf) > #:use-module (gnu packages gnome)) > > (define-public zathura-custom > (package > (inherit zathura) > (name "zathura-custom") > (version "4.0") > (source > (origin > (method url-fetch) > (uri "file:///home/rdrg/my/git-repos/zathura") > (sha256 > (base32 > "0000000000000000000000000000000000000000000000000000")))) > (native-inputs > (modify-inputs > (package-native-inputs zathura) > (prepend json-glib))))) > #+END_SRC Here, is =E2=80=99file:///home/rdrg/my/git-repos/zathura=E2=80=99 a file or= a directory? > The following package will be upgraded: > zathura-custom 3.0 =E2=86=92 my-version-1 I am surprised because it is 4.0 and below my-version-3. Maybe you mixed your tests when reporting? > I personally like this behavior because I'm currently editing the > source code of Zathura and I wouldn't like to edit the package > definition to insert the correct hash whenever I make a change in any > of the files of the project directory. You might be interested by --help-transform. For instance, --8<---------------cut here---------------start------------->8--- $ guix build zathura --with-source=3Dzathura=3D/tmp/zathura-custom/zathura-= mine.tar.xz=20 The following derivation will be built: /gnu/store/h3j2l2zqp1shyk2ls59dp7zgz7dzp9vp-zathura-0.5.2.drv building /gnu/store/h3j2l2zqp1shyk2ls59dp7zgz7dzp9vp-zathura-0.5.2.drv... WARNING: (guile-user): imported module (guix build utils) overrides core bi= nding `delete' starting phase `set-SOURCE-DATE-EPOCH' phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds starting phase `set-paths' [...] successfully built /gnu/store/h3j2l2zqp1shyk2ls59dp7zgz7dzp9vp-zathura-0.5.= 2.drv The following graft will be made: /gnu/store/8w2zzg4bb9qpf039srl83yfawkiakib4-zathura-0.5.2.drv applying 19 grafts for zathura-0.5.2 ... grafting '/gnu/store/6mkarn9hj5f8y3i5h9p7w2paf6r32199-zathura-0.5.2' -> '/g= nu/store/jws5p175m3s70v3cnsabnf920icd03q9-zathura-0.5.2'... successfully built /gnu/store/8w2zzg4bb9qpf039srl83yfawkiakib4-zathura-0.5.= 2.drv /gnu/store/jws5p175m3s70v3cnsabnf920icd03q9-zathura-0.5.2 --8<---------------cut here---------------end--------------->8--- > This is not mentioned in the Info manual, but I think it should be > mentioned. The Info node that documents =3Durl-fetch=3D is "(guix) origin > Reference". Well, I do not think it is an expected behaviour. And I am not able to reproduced as reported in . Cheers, simon