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 ms0.migadu.com with LMTPS id 4AoWJ4LvMWJjKQAAgWs5BA (envelope-from ) for ; Wed, 16 Mar 2022 15:09:06 +0100 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 wBeBJILvMWJtaQAA9RJhRA (envelope-from ) for ; Wed, 16 Mar 2022 15:09:06 +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 4309335A9C for ; Wed, 16 Mar 2022 15:09:06 +0100 (CET) Received: from localhost ([::1]:41974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUUKn-0003z4-DU for larch@yhetil.org; Wed, 16 Mar 2022 10:09:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUU0Y-0002KR-MR for guix-patches@gnu.org; Wed, 16 Mar 2022 09:48:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nUU0Q-0007xF-3V for guix-patches@gnu.org; Wed, 16 Mar 2022 09:48:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nUU0P-0003Mm-JP for guix-patches@gnu.org; Wed, 16 Mar 2022 09:48:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54396] [PATCH v2] [WIP] gnu: python-notmuch2: Fix build. Resent-From: Tanguy LE CARROUR Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 16 Mar 2022 13:48: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: Liliana Marie Prikler Cc: 54396@debbugs.gnu.org Received: via spool by 54396-submit@debbugs.gnu.org id=B54396.164743842512714 (code B ref 54396); Wed, 16 Mar 2022 13:48:01 +0000 Received: (at 54396) by debbugs.gnu.org; 16 Mar 2022 13:47:05 +0000 Received: from localhost ([127.0.0.1]:50629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUTzV-0003J0-3U for submit@debbugs.gnu.org; Wed, 16 Mar 2022 09:47:05 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:33525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUTzS-0003IS-Qh for 54396@debbugs.gnu.org; Wed, 16 Mar 2022 09:47:03 -0400 Received: (Authenticated sender: tanguy@bioneland.org) by mail.gandi.net (Postfix) with ESMTPSA id 9562620007; Wed, 16 Mar 2022 13:46:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable References: <20220316111624.26189-1-tanguy@bioneland.org> <6b3d3874c3953688431be77f08989ef709780443.camel@ist.tugraz.at> From: Tanguy LE CARROUR In-Reply-To: <6b3d3874c3953688431be77f08989ef709780443.camel@ist.tugraz.at> Date: Wed, 16 Mar 2022 14:46:55 +0100 Message-ID: <164743841502.31835.14352244026552742248@localhost> User-Agent: alot/0.10 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=1647439746; 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; bh=caf862tQxtbB0HKpokkwN6zxwXxEDo/Ur7mo+G1GV2c=; b=FcCMrMzFCQs7+kOwbOkc+cGXDKR0TakLEr+VvOo/5IXw4AdmMxoLcT17DcIMQmJPDmnXiz HLxClooKsLeQaTvBFLZMKnYYEYmNdxUZpSs/+R5D/+160H7onaBksDdIQeBHQQFxkeoPwv SJCE1nffEI/+459QzPonnPdXrjGuu4nkijxEra23gyPOG7tqI7IM6CK2P0biwlGKxOmPWn f1lLjo4buLlr8bWZRhrtTWh99obRNvhnclOP34Zd8eZharT6n51gxeSv3aG9gh+HspxY7h IB5ddr8Ux3GGQsiZjGNOEdY6R7TVpj4MVbkXuYcxnyCi7Oiu1QhC4Jdz3F/qCA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647439746; a=rsa-sha256; cv=none; b=b7PN3WuFaxc0sdfeMPGF4KsJ3qCnjl5G7HlGYdCm05432tMym8U9ea732+6k8ZZC+FPYc7 2gZ5rl+zuYs2cCUcYkHEQCJzd8L6HkIbeimsLj5r4Y8wMiKOQoKtbCMT6jA+XpquLSOmOG rBqSUNisHNxMvhiTGHyo3vajMVnzSrOc2Sf2qf2nuFOtQjFSbDzBHmANaToq6rfCk0ttv4 AIPFuUMnZuUd6ptuuBV4U6a1w1EdlioI65J0EpcRV95iFyT9RUWUME0XWE6U6Oo46cFgmd diLyuOrDHFc1xjdPk51HtQaPLasWc6rls5xSGMVhVGatGju1hBh/MjT0kKExvw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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: -3.46 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 4309335A9C X-Spam-Score: -3.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: Yx212ntbg/a8 Hi Liliana, Quoting Liliana Marie Prikler (2022-03-16 12:28:49) > Am Mittwoch, dem 16.03.2022 um 12:16 +0100 schrieb Tanguy Le Carrour: > > The generated contains the expected paths: > > [=E2=80=A6] > >=20 > > =E2=80=A6 but they **always** reference `drv-0`, even if it's not the f= irst > > build!? > > For instance: > >=20 > > ``` > > $ cat /tmp/guix-build-python-notmuch2-0.35.drv-6/notmuch- > > 0.35/bindings/python- > > cffi/_notmuch_config.py > > NOTMUCH_VERSION_FILE=3D'/tmp/guix-build-python-notmuch2-0.35.drv- > > 0/notmuch-0.35/version.txt' > > NOTMUCH_INCLUDE_DIR=3D'/tmp/guix-build-python-notmuch2-0.35.drv- > > 0/notmuch-0.35/lib' > > NOTMUCH_LIB_DIR=3D'/tmp/guix-build-python-notmuch2-0.35.drv-0/notmuch- > > 0.35/lib' > > ``` > >=20 > > 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, Oh, I thought it was only used at build time! Sorry, my mistake! > i.e. (dirname (search-input-file inputs "notmuch.h")) and > (dirname (search-input-file inputs "libnotmuch.so")). Unfortunately, I couldn't make those work. :-( So I ended up with a less "sexy" version: ``` "NOTMUCH_INCLUDE_DIR=3D'" (assoc-ref inputs "notmuch") "/include/notmuch.h"= "'\n" "NOTMUCH_LIB_DIR=3D'" (assoc-ref inputs "notmuch") "/lib/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. If I set `NOTMUCH_VERSION_FILE=3D''`, I get a "file does not exist" error at build time. So I decided to set it to `/dev/null` instead. Or would it be better if I patched `notmuch` to create the actual version file?! Thanks again for your precious help! --=20 Tanguy