From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6EwqMoP/62LIRAEAbAwnHQ (envelope-from ) for ; Thu, 04 Aug 2022 19:18:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iMIZMoP/62Ip6wAA9RJhRA (envelope-from ) for ; Thu, 04 Aug 2022 19:18:59 +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 A6085807F for ; Thu, 4 Aug 2022 19:18:59 +0200 (CEST) Received: from localhost ([::1]:37118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJeUs-0006ju-Q7 for larch@yhetil.org; Thu, 04 Aug 2022 13:18:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJeT0-0003td-Tf for guix-patches@gnu.org; Thu, 04 Aug 2022 13:17:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36762) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJeT0-00087G-F6 for guix-patches@gnu.org; Thu, 04 Aug 2022 13:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJeT0-0004Wr-Au for guix-patches@gnu.org; Thu, 04 Aug 2022 13:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55903] [PATCH v6 01/41] gnu: Add go-github-com-zenhack-go-notmuch. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 04 Aug 2022 17:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55903 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "(" , <55903@debbugs.gnu.org> Received: via spool by 55903-submit@debbugs.gnu.org id=B55903.165963340417378 (code B ref 55903); Thu, 04 Aug 2022 17:17:02 +0000 Received: (at 55903) by debbugs.gnu.org; 4 Aug 2022 17:16:44 +0000 Received: from localhost ([127.0.0.1]:54744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJeSi-0004WE-4V for submit@debbugs.gnu.org; Thu, 04 Aug 2022 13:16:44 -0400 Received: from knopi.disroot.org ([178.21.23.139]:57574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJeSg-0004W6-Hc for 55903@debbugs.gnu.org; Thu, 04 Aug 2022 13:16:43 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id EDB8C40D96; Thu, 4 Aug 2022 19:16:40 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dLmn03zYT4PT; Thu, 4 Aug 2022 19:16:39 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1659633399; bh=3RMpm8HY4T9S8mduOKx/ikY36D7/AG4034jqsGOHz7A=; h=Date:Subject:From:To:References:In-Reply-To; b=R/qBJUqbdWFMPz3slsGZIh8gMxJShoxF3WN6f9L2zXAw/xAkFnM2CtoN45Jhx927e uYLxmEG4UAi2escyBH8O7Khay7eBXBJEjNRf5VxD+8be0rp2dvE84s80alHNoijzYn bOCWqN+OO5nMx25Kbb+7ocQmIFXam8or6Dg7y/bjWo7ervTwvkf9QTOOtKB0j83Rge LTDH0PcBjh5CDfHgYUclfjgpCR26Zh67fF7GlR3jmZUiaXxm/rvpDmbPLPhl8OIzDN 9LVkXdmjSj86MBkkXHU/TzMqUU6/6mrU3ljU7aiejX/B2NiIVqbq1r5YPzV/7pCqf1 CcBWYXZMJp7cA== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 04 Aug 2022 18:16:39 +0100 Message-Id: References: <20220804171047.24424-1-paren@disroot.org> In-Reply-To: <20220804171047.24424-1-paren@disroot.org> 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" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( via Guix-patches" via 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=1659633539; h=from:from:sender:sender:reply-to: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: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=HqQLaoTSMjYNQbgATpGufokK95RnhMCKszXSODLCMSY=; b=QrO2XiH0XuSUNUNjFtMYX4qr7k/8u7WJgsNl0f+vTuGCuCfBbLvZqUW3ulJYg1/6AVv1/z S0H2FSSdPjRqk8SBocnevGQjWnIkQmL28swaF7bDDCW7RpdZrOVYUGmfg4Yee65afy4rh8 Xd8URH82sBCIE3/4KMLOsp6uTuhRTlGvB5O1F5B7nUWUNDj90BQN1gaDF+8PxdL4+B3qCI BlqZR/MmKEGc28OQsrLtkyJHS3HOP6qV0mDpUSEAm88tUcQrYl6SFo897GzCpe/lXYfA8l tDNt4zgX0m8bFRp9uHrcCQZScNsQ9MZFrkoWoV5ZBVnQWB5hfE/OxR7uqnmBrg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659633539; a=rsa-sha256; cv=none; b=ck0URSyrvcC25nMf8O6fogarNiTl7m+zwFB2+fv85/hOPhHLsKYbM+D459P3Rxd2jRAVtC Q1MKzpzROJyu/J6rR5nSxLilJ4Kqxj+TUQqa4OS39zu2uUyZvGJtpHK5GyKzj1FQBOLjAl gNBh32g+T/GcVwQLZ/x1uDjJgA5rvalBKAHz5ujo+S8C8kkH9atKOPe3iDiwle+5S6rTt2 Or/NY7ZlCzgk7OaVUQRvoZJ9Dn/LPKRFUEdfT0NHkdWTc2KMzL8HbBdMqT6GDEP1j7YdCY Gt/cn/ZZqs5ABYiwlpsLiNnIpqVRX6C8Eq5Kl9G1tZexxW+k9wJTfCIdU6bo8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="R/qBJUqb"; dmarc=pass (policy=none) header.from=gnu.org; 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: -2.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="R/qBJUqb"; dmarc=pass (policy=none) header.from=gnu.org; 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: A6085807F X-Spam-Score: -2.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: SENmuIEk4fFm This patchset makes two changes to the go.notmuch package. On Thu Aug 4, 2022 at 6:10 PM BST, ( wrote: > + (modules '((guix build utils))) > + ;; XXX: We need to use a snippet, because if we don't modi= fy > + ;; the source directly, the modifications will have to be > + ;; reapplied for every single package that depends on this > + ;; one. > + (snippet > + #~(substitute* (find-files (getcwd) "\\.go$") > + (("// #cgo LDFLAGS:.*$") > + (let ((notmuch #$notmuch)) > + (string-append "// #cgo LDFLAGS:" > + " -lnotmuch" > + " -L" notmuch "/lib\n" > + "// #cgo CFLAGS:" > + " -I" notmuch "/include\n"))))) (1) Patch the source directly to refer to our notmuch. This way, we don't h= ave to propagate it. > + #~(modify-phases %standard-phases > + (add-before 'check 'unpack-test-fixtures > + (lambda* (#:key inputs import-path #:allow-other-keys) > + (let ((fixtures (assoc-ref inputs "notmuch-fixtures")= )) > + (invoke "tar" "xf" fixtures "-C" > + (string-append "src/" import-path > + "/fixtures")))))))) > + (native-inputs > + `(("notmuch-fixtures" > + ,(origin > + (method url-fetch) > + (uri "http://notmuchmail.org/releases/test-databases/database-= v1.tar.xz") > + (sha256 > + (base32 > + "1lk91s00y4qy4pjh8638b5lfkgwyl282g1m27srsf7qfn58y16a2")))))) (2) Download and unpack the notmuch test fixtures. This means we can reenab= le the tests :) -- (