From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uNVlLyLLMWIR6AAAgWs5BA (envelope-from ) for ; Wed, 16 Mar 2022 12:33:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MIQuLCLLMWLUPwAAauVa8A (envelope-from ) for ; Wed, 16 Mar 2022 12:33:54 +0100 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 5227A2A21A for ; Wed, 16 Mar 2022 12:33:54 +0100 (CET) Received: from localhost ([::1]:58462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nURub-0008A2-7G for larch@yhetil.org; Wed, 16 Mar 2022 07:33:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nURpu-0004t1-AK for guix-patches@gnu.org; Wed, 16 Mar 2022 07:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56493) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nURpu-0007Mi-0u for guix-patches@gnu.org; Wed, 16 Mar 2022 07:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nURpt-000612-ON for guix-patches@gnu.org; Wed, 16 Mar 2022 07:29:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54396] [PATCH v2] [WIP] gnu: python-notmuch2: Fix build. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 16 Mar 2022 11:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54396 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tanguy Le Carrour Cc: 54396@debbugs.gnu.org Received: via spool by 54396-submit@debbugs.gnu.org id=B54396.164743013723114 (code B ref 54396); Wed, 16 Mar 2022 11:29:01 +0000 Received: (at 54396) by debbugs.gnu.org; 16 Mar 2022 11:28:57 +0000 Received: from localhost ([127.0.0.1]:50390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nURpo-00060j-NJ for submit@debbugs.gnu.org; Wed, 16 Mar 2022 07:28:56 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:23537) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nURpm-00060a-4u for 54396@debbugs.gnu.org; Wed, 16 Mar 2022 07:28:55 -0400 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4KJShf2nT8z1LZWn; Wed, 16 Mar 2022 12:28:50 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4KJShf2nT8z1LZWn DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1647430130; bh=zrJRRZgMR3Z850zThtA+Z4B+6EMOLobcIfWSs1Ufu10=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=eC7bR6tol9I52KE1qVVZsFndXZX8+ZeJTXHyNUIVnjv3SgpilErSKEQvXLfrOC6U6 KUJCxnH/OorxkXvSmZdiJXoVjknhLgvv8damyulfrAsrhs6Zk+rcI0vl7PaO/RgM8n tauV23qqjtnDq5j6joIaqkcaTRX/xPEFY0scIdcU= Message-ID: <6b3d3874c3953688431be77f08989ef709780443.camel@ist.tugraz.at> From: Liliana Marie Prikler Date: Wed, 16 Mar 2022 12:28:49 +0100 In-Reply-To: <20220316111624.26189-1-tanguy@bioneland.org> References: <20220316111624.26189-1-tanguy@bioneland.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 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=1647430434; 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=zrJRRZgMR3Z850zThtA+Z4B+6EMOLobcIfWSs1Ufu10=; b=lq+S19Hb8OMKnJYFWZ22XrnQujjeJWhesjrOaRNwN2/+BHxZDyOct0JJQRYc5SRwi/z8w6 oj8pnmsp4g1rBDCuNOv5D/ZYsNt2O8Jyt8TNPOSoRE4C+fWPCLkYB3JZ8igfS/mGkIwyzP 4giFlgfLNtS7WX//7EgNxQDHDeUEU8AQgO5FHt6L1CALLmnmvJn8IyGEpG3R3Zk1m/Cn7D 9F+gG9taTe4oJ/atW337SXaN7N/CiQQiO/BrV/s1fH06HLK4oAE3HI2lqDP/UnC5Z2mPuZ mMclvfav+a1h52sX2xnZnmDa7rf82dBuFSqtEOuAgLCkS7r2br0tthEy90KSpA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647430434; a=rsa-sha256; cv=none; b=Ywsrci16enR4A/wSUmGMjKpPeARk/qXfLZykoxPSzyESfMYc9JrEGUn5V3Ka9HGGzsnXlT wejYHSREEvHqq9OPBMCHC0lRnN7mdwkfL4+JzzVKaCW/sdxtQpt2odb9NGDkPqZHKjP8sv F8+sMVnFs8H3UQ02tjwZkjyFMWQVfZDRtqazvgejF5q+iHGWGQFK53b+mZsqio19dxgYPA 8uLQzE0GUkwiJ/JOpSKburwpLTE3ZnbMeYH3muZ95e9NRNcuarfZCcow+pdHalSwt2D5xE EzTH5kJOeS9ukRNvETlAOZP8SeTSAU6jkCT3j1RCrZ9Ca35KwEDptaPZpGrEuQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=eC7bR6to; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (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: 4.54 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=eC7bR6to; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (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: 5227A2A21A X-Spam-Score: 4.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: jgzKSuGPcbD8 Am Mittwoch, dem 16.03.2022 um 12:16 +0100 schrieb Tanguy Le Carrour: > Hi Liliana, > > Did you have something along these lines in mind? > > I wanted to add the `create-notmuch-config` phase after the `enter- > python-dir`, > but I don't know how to get the source folder from there. I suppose > there's a way to get the `../../` of the `cwd`, but I don't (yet) > know how. > > The generated contains the expected paths: > > ``` > NOTMUCH_VERSION_FILE='/tmp/guix-build-python-notmuch2-0.35.drv- > 0/notmuch-0.35/version.txt' > NOTMUCH_INCLUDE_DIR='/tmp/guix-build-python-notmuch2-0.35.drv- > 0/notmuch-0.35/lib' > NOTMUCH_LIB_DIR='/tmp/guix-build-python-notmuch2-0.35.drv-0/notmuch- > 0.35/lib' > ``` > > … but they **always** reference `drv-0`, even if it's not the first > build!? > For instance: > > ``` > $ cat /tmp/guix-build-python-notmuch2-0.35.drv-6/notmuch- > 0.35/bindings/python- > cffi/_notmuch_config.py                                               >                                                                       >    [profile] guix-dev > NOTMUCH_VERSION_FILE='/tmp/guix-build-python-notmuch2-0.35.drv- > 0/notmuch-0.35/version.txt' > NOTMUCH_INCLUDE_DIR='/tmp/guix-build-python-notmuch2-0.35.drv- > 0/notmuch-0.35/lib' > NOTMUCH_LIB_DIR='/tmp/guix-build-python-notmuch2-0.35.drv-0/notmuch- > 0.35/lib' > ``` > > Does it matter?! Yes, it does matter. The cwd you reference will no longer exist when the bindings are installed. The purpose of generating the file is to fill it with useful, persisting data, i.e. (dirname (search-input-file inputs "notmuch.h")) and (dirname (search-input-file inputs "libnotmuch.so")). As for the version file, that should probably be set to an error value such as None or NotImplemented or even unset. It does not appear to be currently used and we don't install any such file for notmuch. Cheers