From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UChXHMTr62CqpgAAgWs5BA (envelope-from ) for ; Mon, 12 Jul 2021 09:14:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8IMPGMTr62D7TwAAB5/wlQ (envelope-from ) for ; Mon, 12 Jul 2021 07:14:12 +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 CD2993B90A for ; Mon, 12 Jul 2021 09:14:11 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 6F57427D92; Mon, 12 Jul 2021 03:14:07 -0400 (EDT) Received: from mailproxy05.manitu.net (mailproxy05.manitu.net [217.11.48.69]) by mail.notmuchmail.org (Postfix) with ESMTPS id 7EEA52757D for ; Mon, 12 Jul 2021 03:14:03 -0400 (EDT) Received: from localhost (200116b8601a6e002ce89e55f1221bd9.dip.versatel-1u1.de [IPv6:2001:16b8:601a:6e00:2ce8:9e55:f122:1bd9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: michael@grubix.eu) by mailproxy05.manitu.net (Postfix) with ESMTPSA id 220621B600C1; Mon, 12 Jul 2021 09:14:02 +0200 (CEST) MIME-Version: 1.0 In-Reply-To: <87im1g35ey.fsf@tethera.net> References: <87im1g35ey.fsf@tethera.net> Subject: Re: configure checks for python3-notmuch2 module To: David Bremner , notmuch@notmuchmail.org From: Michael J Gruber Message-ID: <162607404067.6675.14807523852321430834.git@grubix.eu> Date: Mon, 12 Jul 2021 09:14:00 +0200 User-Agent: alot/0.9.1 Message-ID-Hash: B2BZRPFKBS5UX2B55XLBCUDSUAIF5EJL X-Message-ID-Hash: B2BZRPFKBS5UX2B55XLBCUDSUAIF5EJL X-MailFrom: michael@grubix.eu 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=1626074052; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=eZtwDn8dsnItsjylfHWtUc4ruRaCD47RY/T28NIm4L8=; b=cHeKMGwdR74adhBbHA72KSUBd4JndmTMJsxFx513heRVfk/TZ7nMSKl2ZojX2unAO58Vq/ loPo89vWoKMflsmWcpXXf7Q/2KD9mQKAsaKBoxC9Hy7f2KUkNd0SjKmbU22xz/1QzJvlr3 fqW9O6sXfm/i04TGVkCKxAnj8bMOE2w+RKzJ+0B7NUpnzQBr48g4Vw614cAVtPXn7Yujhi dPz8ovghtV3zrnPNNka6MeX9eWWMvwRhJ0KEmnQ9BTGQ532O1+eCbqFTaQqwmyhPUgWp50 6Uvo/shDWYMqWyqJ1dMsInBGRlPiRT7IrDUB0mrl0NKkl06U9rfvAEiBHyOZBQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626074052; a=rsa-sha256; cv=none; b=JFXozrehN6kS5g2OninjOjKOoF9P6Bc1hEWmLmPbvNEOCc5pkxD1Sh7IlmDgxd3vG+KJTV GxtiVrdvz+FKuxbuEDLO0ed3Y+URD1XeQ5rqsE5ldK9ncAnAV+UvIZOZyiVeCMRwE/btUd ztH2m9Gtkj94Gxr9gJueRm+MspZSYCRYAFtKoUCpDiWIFIr0s1At9jTPLO818F1BMoqXGF YYR03CdiZ8KHaNSBoOuiW60RCMfDoQxKWVunQSN3/rHQAbLZLZzQLsQrhNzTkjV1T0W/7e SuUGu2yRZpMJVMzF4YURgNdRICSmPREWJKIkPXjtkz/3ap3T+V+f0kGFVewZ9Q== 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: -1.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: CD2993B90A X-Spam-Score: -1.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: RePW4LcHthFy David Bremner venit, vidit, dixit 2021-07-11 23:29:57: > > 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. You need python3-cffi to run python code which uses cffi bindings - think of it as the "lib" part. You need the devel package to generate a python module using cffi (i.e. binding for a specific c library). So, it makes sense for the lib package not to depend on the devel package (which is python3-devel on Fedora). I can't help with adapting configure to the header requirement, though. Michael > 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 b ui > 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 > _______________________________________________ > notmuch mailing list -- notmuch@notmuchmail.org > To unsubscribe send an email to notmuch-leave@notmuchmail.org