From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kMubDeFi62D5IQEAgWs5BA (envelope-from ) for ; Sun, 11 Jul 2021 23:30:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8ElJCeFi62BMPgAA1q6Kng (envelope-from ) for ; Sun, 11 Jul 2021 21:30:09 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4C5C62E3E7 for ; Sun, 11 Jul 2021 23:30:08 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 451322904B; Sun, 11 Jul 2021 17:30:03 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 3184D27185 for ; Sun, 11 Jul 2021 17:29:59 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 8EF995FD21; Sun, 11 Jul 2021 17:29:58 -0400 (EDT) Received: (nullmailer pid 1165312 invoked by uid 1000); Sun, 11 Jul 2021 21:29:57 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: configure checks for python3-notmuch2 module X-List-To: notmuch Date: Sun, 11 Jul 2021 18:29:57 -0300 Message-ID: <87im1g35ey.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: IS7SEXXCJHPZDQRGTMGR6W7NQ6XGMTTS X-Message-ID-Hash: IS7SEXXCJHPZDQRGTMGR6W7NQ6XGMTTS X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626039008; h=from:from: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=bgPbXCxIK9DcFYbHfVRqBJ/S08b9xmTBUtmQKsOyJMQ=; b=Qz2KaBMbUmxGaePyrtTiqyStXePlQrKKC7XB0XBR37GLvRDoEjavOG+YPp2HKgkX/hPl24 A5LZzsrTbXGmtfHJL0KEGi6OWXRBfE9KBLLJq9rOZVOJSKK8QQ3bN2DrDnvrBO/wYDuVTz BdzbpjjaXA6PqtdD8sCRQevoT0iRGueNvGEI9SDpqnlwJ9tj/mCYLFNZvjCKKJRrLcfe32 4S/+fWP0sIgZY9WB457y+8KsZd+qh5Cyk/Mk6naEnpXzmA/83M3XQOX8aGc0D6hf7f8QKe KQ2OnGjXFcM1jB08cPH0XKydPYw89qbdMXFgoT+wTYWvIYsjDDUWMjjUByLZ4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626039008; a=rsa-sha256; cv=none; b=Vtlpu4PLNs69QN0YlcYfjPmyMtsYsOiw17dDFuGClQptjsieQDfb7zC+57ZSWKAY0vMHTo kIOKFcyPb4OLV/ZaeYZk00EOIq+EqIVSuOCXMw8Ph/Foido9HwsxzpI22KFgpEOU+vJT9F 4lVIRe3PR6pzsbKyJxidj4YITPWL7/ODNXXHSwB+4HojO+3xmDms7T6w44W/1iKL15WOqE 3XCsbjQnYZcQ8muEiAKFwYWi2ckHkFPbV3YsxnfWR7qvsVaP3ohe0tDJHfWCGjVPrlobfS ZA/IffJCagB5L6yrcu81kP7fD0FirMvD1dOuohombCptkzW2QupJuoWQbIMORw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.07 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 4C5C62E3E7 X-Spam-Score: -2.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: lTh/pT2BaRw2 It turns out we need pyconfig.h to build the (new) python bindings. I don't think this is adequately checked for by the configure script, since I had a Fedora user report a build failure (during make install, which I found odd) missing pyconfig.h On Debian this is on libpython3.x-dev, which is not a dependency of the python3-cffi package. log follows. ---------------------------------------------------------------------- cd bindings/python-cffi && \ python3 setup.py build --build-lib build/stage && \ mkdir -p build/stage/tests && cp tests/*.py build/stage/tests running build running build_py running build_ext generating cffi module 'build/temp.linux-x86_64-3.9/notmuch2._capi.c' creating build/temp.linux-x86_64-3.9 building 'notmuch2._capi' extension creating build/temp.linux-x86_64-3.9/build creating build/temp.linux-x86_64-3.9/build/temp.linux-x86_64-3.9 gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I../../lib -I/usr/include/python3.9 -c build/temp.linux-x86_64-3.9/notmuch2._capi.c -o bui ld/temp.linux-x86_64-3.9/build/temp.linux-x86_64-3.9/notmuch2._capi.o build/temp.linux-x86_64-3.9/notmuch2._capi.c:50:14: fatal error: pyconfig.h: No such file or directory 50 | # include | ^~~~~~~~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1