From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 27 12:41:51 2021 Received: (at 51441) by debbugs.gnu.org; 27 Oct 2021 16:41:51 +0000 Received: from localhost ([127.0.0.1]:50432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mflzm-0005Nz-Ac for submit@debbugs.gnu.org; Wed, 27 Oct 2021 12:41:51 -0400 Received: from out162-62-57-64.mail.qq.com ([162.62.57.64]:35261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1mflzh-0005Ne-GW for 51441@debbugs.gnu.org; Wed, 27 Oct 2021 12:41:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1635352892; bh=nYFI+5UuM6cHMjoG2XUxWV20MgcbB/LAzMzpA0jBiNY=; h=From:To:Subject:Date; b=buzZIVmB1SbpGmdDYCbocQI8Oe92w/0PqprDR7PbV3Rz3X0EEfIqPERkwW4O/fMM/ g8HpzwN3s3eo8ObUt0kBvVV4N+qywuzDSgT13AeCqunGjuxu2AHbGlVSriOvcrbdtP gSQNPOEDEQ3PFyWgkysqREt+XGTg0HLqRW4kQ678= Received: from asus ([2409:8928:124e:600:171f:1b40:5859:701f]) by newxmesmtplogicsvrsza9.qq.com (NewEsmtp) with SMTP id A5888260; Thu, 28 Oct 2021 00:41:24 +0800 X-QQ-mid: xmsmtpt1635352884t1echus9b Message-ID: X-QQ-XMAILINFO: MklzYC+sb6GFtIugkQMcybWRoFBrqy9fNILSF1ZNnY3W0c9vCUL7Dw6osuubry zW7rJjs2MX6Ugjh64WgB9wN9+6oa9X4aupaSejGeFVFrQuEX2G7okTEfgBnKVeVaDq5gw4SG2sNN IYA8DKCHtjJlqevM/yrz1ub+kyc/e8X84eSVfxg61T1CuoPxAtqbN9ioqiTI1b9NZ/ZZ+ODu3lQ3 yumgvyjluw9/xg/PfXhtpMFk8a8crR9yC6jedHn9MJj6UEWxKWdpUtSJLREgLzc682tTKhOmoDL8 VH+RVwSfNEcWE8HiQ2Zok/6yhQePHXm54QG3zZMqQKM57h7IYtP5T/x11cs38r76fxeVZGLzBC+p zIuQX2yfcW0FOTO3N3HGdDrgJ2rr4oDnfgQaMOS7dU+rryfGEytQbUYbNbIMnsWYhdaXa9NXZCYz tXQ0yx/fxQ3FBI09jY4LpkEaQzb9NLAjfMulZqofIYHcWoc51XXaTfUZ73oLhIyGFhvrHud2dUxp gxhalVrg1S9ZRFOXGRTJlX4vQiaA5GoQks/UkCT2Bo00xGadiRETRtuZQo1jZNcfAIWQESjfPmlq xZyh6+G7whr96K4oY2MPkADwUdwdUuUsAP2CP95VruoFWhqVcSZp9tw9DJIFuG76aN+gQ9PgueGG IL23ZHrdGlbJn2EOKhPfvVGkndq6T3+GYXPnG2/tJvZ/9rvxLVaUmaBh/s33nrCPeqQyGw/fcnHN 2aiiltFP/50aPpfA1pw50LsadeBcuwHBsSbhhutcvv9qgGUP8bcUygH8IL0GTnr+p3p0f3Qz6eoZ e5uWFTfyEq7w== User-agent: mu4e 1.6.6; emacs 28.0.50 From: Z572 <873216071@qq.com> To: 51441@debbugs.gnu.org Subject: Re: [bug#51441] [PATCH] substitutes: keep base's uri-path for Properly construct URL. Date: Thu, 28 Oct 2021 00:37:52 +0800 Message-ID: <87fssmwhcc.fsf@qq.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 3.9 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: it just fix fetch narinfos url, substitute still don't download, later i will try fix it. Z572 via Guix-patches via writes: > Hello, > > Sorry for my english, and i'm not sure ChangeLog is right. > > https://mirror.sjtu.edu.cn/guix use customize script to mirror official > substitutes server, at /guix not in / . narinfo-re [...] Content analysis details: (3.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [162.62.57.64 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [162.62.57.64 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (873216071[at]qq.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (873216071[at]qq.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) X-Debbugs-Envelope-To: 51441 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: it just fix fetch narinfos url, substitute still don't download, later i will try fix it. Z572 via Guix-patches via writes: > Hello, > > Sorry for my english, and i'm not sure ChangeLog is right. > > https://mirror.sjtu.edu.cn/guix use customize script to mirror official > substitutes server, at /guix not in / . narinfo-re [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (873216071[at]qq.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (873216071[at]qq.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager it just fix fetch narinfos url, substitute still don't download, later i will try fix it. Z572 via Guix-patches via writes: > Hello, > > Sorry for my english, and i'm not sure ChangeLog is right. > > https://mirror.sjtu.edu.cn/guix use customize script to mirror official > substitutes server, at /guix not in / . narinfo-request will forget add = /guix to url, so i > can't use substitutes from them, this patch fix it. > > From 7fe17965d5336d55ec8b1b7471cbbb34b12e9a0b Mon Sep 17 00:00:00 2001 > From: Z572 <873216071@qq.com> > Date: Wed, 27 Oct 2021 21:28:24 +0800 > Subject: [PATCH] substitutes: keep base's uri-path for Properly construct= URL. > > substitutes (narinfo-request): keep BASE's uri-path for properly construc= t url. > > some substitutes server don't use guix publish, them use customize script= s to > mirror official server, if them look likes https://example.com/guix , > narinfo-request will lost /guix . > --- > guix/substitutes.scm | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/guix/substitutes.scm b/guix/substitutes.scm > index a5c554acff..bfbd29623e 100644 > --- a/guix/substitutes.scm > +++ b/guix/substitutes.scm > @@ -3,6 +3,7 @@ > ;;; Copyright =C2=A9 2014 Nikita Karetnikov > ;;; Copyright =C2=A9 2018 Kyle Meyer > ;;; Copyright =C2=A9 2020 Christopher Baines > +;;; Copyright =C2=A9 2021 Zheng Junjie <873216071@qq.com> > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -158,7 +159,8 @@ (define (narinfo-request cache-url path) > "Return an HTTP request for the narinfo of PATH at CACHE-URL." > (let* ((base (string->uri cache-url)) > (ref (build-relative-ref > - #:path (string-append (store-path-hash-part path) ".narin= fo"))) > + #:path (string-append (uri-path base) "/" > + (store-path-hash-part path) ".narin= fo"))) > (url (resolve-uri-reference ref base)) > (headers '((User-Agent . "GNU Guile")))) > (build-request url #:method 'GET #:headers headers))) > --=20 > 2.33.1 --=20 over