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 MMjJM/gvdmJahQAAbAwnHQ (envelope-from ) for ; Sat, 07 May 2022 10:38:16 +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 yDLCM/gvdmLMtgAA9RJhRA (envelope-from ) for ; Sat, 07 May 2022 10:38:16 +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 D63251FDBD for ; Sat, 7 May 2022 10:38:15 +0200 (CEST) Received: from localhost ([::1]:46342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnFx8-00026Z-Eo for larch@yhetil.org; Sat, 07 May 2022 04:38:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnFwy-00024k-HY for guix-patches@gnu.org; Sat, 07 May 2022 04:38:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56501) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnFwy-0002kN-8k for guix-patches@gnu.org; Sat, 07 May 2022 04:38:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nnFwy-0003qZ-6s for guix-patches@gnu.org; Sat, 07 May 2022 04:38:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55297] [PATCH 10/10] gnu: w3m: Add $SSL_CERT_DIR/$SSL_CERT_FILE search paths.. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 07 May 2022 08:38:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55297 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55297@debbugs.gnu.org Cc: Maxime Devos Received: via spool by 55297-submit@debbugs.gnu.org id=B55297.165191267314709 (code B ref 55297); Sat, 07 May 2022 08:38:04 +0000 Received: (at 55297) by debbugs.gnu.org; 7 May 2022 08:37:53 +0000 Received: from localhost ([127.0.0.1]:50387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnFwm-0003p9-Hb for submit@debbugs.gnu.org; Sat, 07 May 2022 04:37:52 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:44114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnFwe-0003nZ-G5 for 55297@debbugs.gnu.org; Sat, 07 May 2022 04:37:46 -0400 Received: from localhost.localdomain ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by albert.telenet-ops.be with bizsmtp id Tkdi270084UW6Th06kdjWo; Sat, 07 May 2022 10:37:43 +0200 From: Maxime Devos Date: Sat, 7 May 2022 08:37:40 +0000 Message-Id: <20220507083740.59995-10-maximedevos@telenet.be> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220507083740.59995-1-maximedevos@telenet.be> References: <20220507083740.59995-1-maximedevos@telenet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1651912663; bh=m/tHX/II8nXHN8UZdXGUHhqFAb0iGKNOx5WUuKppzBo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ZcYxrBCtMT4y/pixE6dHKl/IJcWYMOosls0a/wDwXwLndEPmYQK+GO7R6cGXXNYjG PbbpjgRc+10Imy6ZahAGziBK2G0mdNNCKcamxY3V3baqvFhy84MXhwkBO++tVQ03yS H7KlZq/cvM047sMvTa+NSF9sSZGjdzDgjN5x5Ja+cl7t83diib4n5latV14b4KZ5a2 ukYPzepqxaU8BhfUarcs+bdJpvjzd2QL9Jrv56RgPTd8Ev5bCY4P38gmZWj3Q22tGo Q2kGLuKY0Nz/MAN3hUGFb9HaoSsdIq6EVi1eFYyt/jGA/57/HO1pfq36tuIRMAchQa EXbnBw8xLRcdA== 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651912695; 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=m/tHX/II8nXHN8UZdXGUHhqFAb0iGKNOx5WUuKppzBo=; b=tD+t1qVJGsGKbeD5gFomyFcXWzsxaIK6FKYbkDnBglns0TjbUo+hbLmxzVfBVXzQleZcTK l5b+QieZceWI4G0NdT939N2mtZlmSzB3q/yDoEJAaHay5xk12AaexWVlpaaA6yd7SKgrnj w1qQOGxQc3DJgiX7lF8zGTMnh4TvpTgWKHQ8HWFJaJ4CeLjLB6GLp33Q+ANupwMl/DzHJN 2gTQOmDXatV92TLo+BQDwPk+s3zqkHMkHnFLf/RlESQlIJicT1VrehdoJ9JfP9bmMuSO/X Qo2umVdMl+TSaCdasmCLE0mSiusM7d7sn5OmpDKJU1SXco8T3sa4TRaVw8gwlw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651912695; a=rsa-sha256; cv=none; b=FYZeBSI2W2r2OwyPTwlJcZJ9i5ClokkBQnMTcEkleANozQ+ZmXXxV14jDJ7GvyHzHzOp94 JT3QaVlWJULvDJFuDCnTWdv11+eSoKGDyzb6jAp7EmgLLoDuMgdN9frMALbq2BFa5vKXUX TRyu0DKH2RWkSLABnmRNZHP+4vYQXJGztHoWqgH8mHZCkd89c8T/GaCXdmSiA87r6YbyXR hTqUhn24TNi7JJLNkoUF0eyvjEU0CMgoXikBheE6KAATjSpsAa5LHk3ESuse+r8O4zxl8t tzy214fpyaPXMBxALtxnAAXXESj26DB8OqK+Cyhu86MNZUaEO2GPShMAInyGKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=ZcYxrBCt; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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" X-Migadu-Spam-Score: 8.90 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=ZcYxrBCt; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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" X-Migadu-Queue-Id: D63251FDBD X-Spam-Score: 8.90 X-Migadu-Spam: Yes X-Migadu-Scanner: scn0.migadu.com X-TUID: 1XkIH860QyF0 Try $ guix shell openssl w3m le-certs --pure -- w3m https://en.wikipedia.org and $ guix shell openssl w3m nss-certs --pure -- w3m https://en.wikipedia.org The second command succeeds whereas the first command results in ‘unable to get local issuer certificate; accept? (y/n)’, so it looks like w3m respects $SSL_CERT_DIR/$SSL_CERT_FILE. * gnu/packages/w3m.scm (w3m)[native-search-paths]: Add $SSL_CERT_DIR/$SSL_CERT_FILE search paths. * gnu/ackages/freedesktop.scm (xdg-utils)[native-inputs]{w3m}: Use a variant of 'w3m' without $SSL_CERT_DIR/$SSL_CERT_FILE to avoid rebuilds. --- gnu/packages/freedesktop.scm | 7 ++++++- gnu/packages/w3m.scm | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 55bde8e705..f785e42b89 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -409,7 +409,12 @@ (define-public xdg-utils "1nai806smz3zcb2l5iny4x7li0fak0rzmjg6vlyhdqm8z25b166p")))) (build-system gnu-build-system) (native-inputs - (list docbook-xsl docbook-xml-4.1.2 libxslt w3m xmlto)) + (list docbook-xsl docbook-xml-4.1.2 libxslt + ;; TODO(staging): don't remove search paths. + ;; Search paths are temporarily removed to + ;; avoid rebuilds. + (package (inherit w3m) (native-search-paths '())) + xmlto)) (inputs `(("awk" ,gawk) ("coreutils" ,coreutils) diff --git a/gnu/packages/w3m.scm b/gnu/packages/w3m.scm index 5239cd43a0..72ed22bfe4 100644 --- a/gnu/packages/w3m.scm +++ b/gnu/packages/w3m.scm @@ -35,6 +35,7 @@ (define-module (gnu packages w3m) #:use-module (gnu packages tls) #:use-module (gnu packages xorg) #:use-module (gnu packages) + #:use-module ((guix search-paths) #:select ($SSL_CERT_DIR $SSL_CERT_FILE)) #:use-module (guix packages) #:use-module (guix git-download) #:use-module (guix build-system gnu)) @@ -78,6 +79,7 @@ (define-public w3m ("perl" ,perl) ("pkg-config" ,pkg-config))) (home-page "http://w3m.sourceforge.net/") + (native-search-paths (list $SSL_CERT_DIR $SSL_CERT_FILE)) (synopsis "Text-mode web browser") (description "w3m is a text-based web browser as well as a pager like @code{more} or -- 2.35.1