From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 KPCLM65qVmMpawAAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 12:36:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iGOLM65qVmNbQwAA9RJhRA (envelope-from ) for ; Mon, 24 Oct 2022 12:36:30 +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 95F709E65 for ; Mon, 24 Oct 2022 12:36:30 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omt40-00031t-3a; Mon, 24 Oct 2022 04:44:04 -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 1omt3y-00031l-9d for bug-guix@gnu.org; Mon, 24 Oct 2022 04:44:02 -0400 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 1omt3y-0006Xg-2P for bug-guix@gnu.org; Mon, 24 Oct 2022 04:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1omt3x-00037q-TC for bug-guix@gnu.org; Mon, 24 Oct 2022 04:44:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58697: [bug] guix refresh nftables crashes Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 24 Oct 2022 08:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58697 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos Cc: kiasoc5 , 58697@debbugs.gnu.org Received: via spool by 58697-submit@debbugs.gnu.org id=B58697.166660101411954 (code B ref 58697); Mon, 24 Oct 2022 08:44:01 +0000 Received: (at 58697) by debbugs.gnu.org; 24 Oct 2022 08:43:34 +0000 Received: from localhost ([127.0.0.1]:46994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omt3W-00036k-4P for submit@debbugs.gnu.org; Mon, 24 Oct 2022 04:43:34 -0400 Received: from mail.envs.net ([5.199.136.28]:36006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omt3R-00036V-3X for 58697@debbugs.gnu.org; Mon, 24 Oct 2022 04:43:33 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 8D09D38A0C3A; Mon, 24 Oct 2022 08:43:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1666601007; bh=SUdqv2AKn3V0AsgHx2L7QNYTy08lpBuqYrx0NbHMrTs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=H2DbXBGNqtZET1UkShE0S7Bh4l420+JPG9xM9w37nAuwhVePDVqiaB9Rfg9XpA7X/ GgxYCkPYh3Fef4o3dlYuGcckVJHSFEF51vVX0BuarGPayVfe3qZaDWJjB8haJbZtXe jDaDqzohKyi6IJCf9ptMa2qeAwynZxChX8xGkQygd+2A/wEQ9JT31DWp8OUe9tRAYE xOlhcmhSr7k111VDfWxkBHsssYexfH1guRfXHnwLWURr+BWop6bUJems3HMI091V9+ hXWs1nRfiD4VxswSPjnOwYlnYg9C3+Ey3RBtZDo0Y2ji7f5E7Syq5riphhZNoo1hl/ i29atjbCUts4c3t5nYceqkrWjp6xhl0s313BkmhRgNdlWfhZLexgu2BJhdu7dj33cP m8cbZGnaf0sWAo9lmle3/CcHmRWw2+ZD7gR3bfOQRDWmcow0b+i3RPjEMzLMXCzJCF vD6TQHwIyk4ZC9M7Th4K0znDfuPG+ZMHA7wAIxTM3iFhGenIgQ4b95arI2MFaAmu+L dQtDNggwdO+VvZDYpgPSd+5XmofTFslxuULPLRo1GyuO2cXm57ZYWeNE8MhCwQI99m jSW9FN4fWHQPFUu2GHEK28u4Vg6l6nbqNKt0oGm/cVibhIsr0HM61NXPyJ3op6VX93 VpfDHEOBnkXssaWbNHYqSHtM= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jD4W3WpQ_N1e; Mon, 24 Oct 2022 08:43:23 +0000 (UTC) Received: from localhost (unknown [182.150.116.135]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Mon, 24 Oct 2022 08:43:23 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 2869f29e; Mon, 24 Oct 2022 08:44:02 +0000 (UTC) References: <20221022015532.76d66c05@aria> <13f90fdb-fdbe-2a3e-9e5f-2d15bccf10a0@telenet.be> Date: Mon, 24 Oct 2022 16:44:02 +0800 In-Reply-To: <13f90fdb-fdbe-2a3e-9e5f-2d15bccf10a0@telenet.be> (Maxime Devos's message of "Sat, 22 Oct 2022 11:56:35 +0200") Message-ID: <87y1t5pq5p.fsf@envs.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: , Sender: "bug-Guix" Reply-to: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666607790; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=SUdqv2AKn3V0AsgHx2L7QNYTy08lpBuqYrx0NbHMrTs=; b=aasXVrXxlUZj03Nn+EwuxgHluufNHhu2MvbfAfo/R0lUAsCD+Buf6uGacNYnHgKjxZ1mZx d0gSSuG6qUfaYT7IlBDxwTNAK4pDoOXtNM+AUeOrpWBtZp3kvCVvG6Z7iMYrtDfxY/3TYN VkMMdQGCmCnvOrB0oyZAN5O2iZ1y6h0gsuiYOkEQBrzjAynbkphefd6Lc7o4q3mPcNuLOM 1mM9zExT1KWnjSfUSkDHEoxa2PRUvgIQQkIFvkvI+JDwmMJahdzyCaV4Pv7I2zcdcq22Eq /mDvGzA2hsT7zil4eNiIHaywEcw7DVnF0TvDwixru4FfpzTmHAipVVr9f6MVvw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666607790; a=rsa-sha256; cv=none; b=NIrRF4qsDjsw0w3iJI/ard4ZN6ZNait93lMpQF4NP7h8AI7MVH5B2XFAogZNPNXgtiTvni 524oCnzyOwYUhaItWsLdWTZMQ5Rd5qahgq4+fH6wF76RRONQzIhif+wREwhi6I/a5IgReJ BMbTfiuEB3EQPEBpDeZD3Ud43dY9dZxJ+A0XWdjiKwEHoQfpI5b1U9Br2ktnZrFPomfQCx oR1Wk/ifhKIirBhoNXYHzuvO4PFyVDyWFK4E2d9ljEE1GSMeyjOU1WtOgKYpRHra8vSkQY 2nJSC6SmMAAzNPP+SZ7mOU0RNzyFd6hwW7hsr+4Fl35rPMUt3g2RONh7jJzmDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=envs.net header.s=modoboa header.b=H2DbXBGN; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.70 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=envs.net header.s=modoboa header.b=H2DbXBGN; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 95F709E65 X-Spam-Score: -2.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: V1AKBxdgh84s --=-=-= Content-Type: text/plain Maxime Devos writes: > On 22-10-2022 03:55, kiasoc5 via Bug reports for GNU Guix wrote: >> % guix refresh nftables >> [...] >> ice-9/boot-9.scm:1685:16: In procedure raise-exception: >> In procedure getaddrinfo: Servname not supported for ai_socktype >> ``` > > I can reproduce this locally and don't know the cause. > It happens when the origin have both 'mirror://' and 'http://' urls, current the html updater check for any url match 'http' or 'https', but when updating it will just pick the first url, so when the first is 'mirror://' this error will come. This patch should fix it: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-maintenance-Don-t-try-html-updater-on-mirror-url.patch >From e9dfdc3a2031c25043cc8b6f4b08656d05024c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Mon, 24 Oct 2022 16:35:18 +0800 Subject: [PATCH] gnu-maintenance: Don't try html updater on 'mirror://' urls. This fixes . * guix/gnu-maintenance.scm (latest-html-updatable-release): Use the first http or https url for updating. --- guix/gnu-maintenance.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm index 10a6ec05f1..4cd501e492 100644 --- a/guix/gnu-maintenance.scm +++ b/guix/gnu-maintenance.scm @@ -806,10 +806,16 @@ (define http-url? (define (latest-html-updatable-release package) "Return the latest release of PACKAGE. Do that by crawling the HTML page of the directory containing its source tarball." + (define (http-url? url) + (match (string->uri url) + (#f #f) + (uri (let ((scheme (uri-scheme uri))) + (memq scheme '(http https)))))) (let* ((uri (string->uri (match (origin-uri (package-source package)) ((? string? url) url) - ((url _ ...) url)))) + ;; We need filter out possibly 'mirror://' urls. + ((? list? urls) (first (filter http-url? urls)))))) (custom (assoc-ref (package-properties package) 'release-monitoring-url)) (base (or custom -- 2.37.3 --=-=-=--