From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4OU9EGlS/WA7OQEAgWs5BA (envelope-from ) for ; Sun, 25 Jul 2021 14:00:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YCcXDGlS/WDDNAAA1q6Kng (envelope-from ) for ; Sun, 25 Jul 2021 12:00:41 +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 202F159C0 for ; Sun, 25 Jul 2021 14:00:40 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 9E7282904B; Sun, 25 Jul 2021 08:00:33 -0400 (EDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 3CDE229035 for ; Sun, 25 Jul 2021 08:00:30 -0400 (EDT) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id E22391B0024A for ; Sun, 25 Jul 2021 15:00:27 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1627214428; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Spr/Av8/78mLNuiWJkoNgGD+y2Ral+nuAXx+Cf9no7I=; b=h6jnZUfAfLbyxHdhWxxGzA1DtPdf/GlG65ZqXvzYbvlzn4DIiBtHb2IfcXyO41/pLGVTzk 0KqH9Bkvw/kYfWGBA29x/zbME2Q5qqcTk9ES9P4q/FU99CoQZP9Mr18QbxvBtPlp1Zp/i8 nFnKJgQpJqnsAOsbcP4TPwU6XH48fL3kA5CoZ4lloPHmJRV7Jc7U8xlNQfwaf0h7t5UaWv /6E1o4GUGrpLCurTx6IAz5e6emeWyVLgflOsyKgT/D/DOlkgZncNq4hGdGI+kz3MNUVcEW KXdXnbiw5hNvdU3cpj62OzvBmAmP8Zonkyw0TYnYQUpaH8jsJ/lcE/K1q29g0Q== From: Tomi Ollila To: notmuch@notmuchmail.org Subject: Re: configure checks for python3-notmuch2 module In-Reply-To: <162607404067.6675.14807523852321430834.git@grubix.eu> References: <87im1g35ey.fsf@tethera.net> <162607404067.6675.14807523852321430834.git@grubix.eu> User-Agent: Notmuch/0.32+21~gfdddd4c (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1627214428; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Spr/Av8/78mLNuiWJkoNgGD+y2Ral+nuAXx+Cf9no7I=; b=Hk6kztc7uFMQsGp2ZwlzpgaSFbn49Zg2R8DL/4Ys7iG6S9AmEuETi7Jsvkw3hN5sDI5qAR asXwk8fhmbAajLi7pjtN1wcvCKRNvi7Xi+/Yub48ByC+NQsDFUK+ZHKB+O+++Rjn1SePxH afx2FxzS6a8Qb3S+5s2E32nfZIEXjXssTn2T6zqQqWqo9gE9wJSr4TmiRt/nHsw/+CPt+O Fgz12a6qVNih1xnwGwzvot5RkhbdljHS3ZNmWkZqkAQl5uBN9MtWrlSkdK74oEIucFYj4Q 3OZ5deS0j9l0O5YKknlyzojC7hZ9BhMwEeTAb43WufQNTEjB2FAlA5iNjBIetQ== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1627214428; a=rsa-sha256; cv=none; b=S4Xad6dCkvosYIQ2LyoJqX+WqUcK8BBurZDn5ti8Dd+0Gjhy2WoMR/MDHHNmxnjtEf1Lx0 YDUYBTnXaG+l5mx1Fy+b1phZ76cg2G/pdF6s9dWJkKYzmertIbtfGaexIefUAZmLZnjHVr N9RXj0hXGubkFHNgD+xyPXY8GQRpLJ+s5uHgfYwU0aU2raQT8onF/In0NXxnWwdVlRBeZU 6EHm3mAoFT8ZXFZTPmRnmxGMg+QamTXdJVIuW17Xd+0MLd+0CaLdAav0T//vvMF1R5ew0q VmT0F5V+1HLD6uclxSN/uOvM8N93dp9H+jt0iEMYc5VSZb6KGpQffPGwMB9Oqw== Message-ID-Hash: 2A3KTXO3CKDQJABCCNOWMC57RR3I5XV3 X-Message-ID-Hash: 2A3KTXO3CKDQJABCCNOWMC57RR3I5XV3 X-MailFrom: tomi.ollila@iki.fi 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627214441; 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:dkim-signature; bh=7vgpklIv0zuwrGi1Qf2Toy5V+5/tt8BJH8pnlXlQDAI=; b=lZCTMAbg3Sm/PzUuCAeKer1WxvW6wN7KA29d1gExaQLXLZns6EbssFzVVP4iVAA/KD+i+3 K00+xnjCzNsfVJHMpdWFLUMYl5APAe2EMPtUWNYBhMPrjZdR+W2wEyq1ek4zGCpk8JGAib LHTjaFRfAWxjASaeM0drsRIfMwrFKkU6Xz5uOB+6RlEba2HAb6DCItgdbWrWpOUnwUP4PR 6aNC420ixVo3zGor3OsayHM4EwXGK0TJCXFvs/vxxIyiVEk8um+W9Xv4ExTXNs7wbFXR9d kCBDLZebnhILEE+eUL2Rbg2DeHXl9xdpc3roqibBsGy9lTOQglN6oNroWW/Avg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1627214441; a=rsa-sha256; cv=fail; b=DIfD2nUoYvg+v7u9Y76u1Y60fqtyKNxLx5c24gF0UNkU+zbY7uPbCWNZKT4nnEF/dl3kRr WP2pHnU8t9FYTQpWWxOVo3nqUEEr1mQ/ql8dcBU0ZKVYa23rcB1Yoz2BuQjcWvkk360T9z FfkejRpPI+oaNL4mpFAvgGIOSw7Mjf8OCKdlVoGxvJ2bZHpY0URALUBitCoTcjXdEYHX4o RvUG2Dfr4ifvxnlzkFed4sLbpUTgSOWhNQ7y9PyJkBJWt3982kE8Pw9JH0ssRRqorKvzto lq8IyZe6Yw3XBy8+9Mbckg/yyXhkZwYsvDkaE7cGf1HaXAxH5skCcc37imVW4Q== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=h6jnZUfA; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); 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: 0.97 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=h6jnZUfA; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); 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: 202F159C0 X-Spam-Score: 0.97 X-Migadu-Scanner: scn1.migadu.com X-TUID: 9fpiuFmv1ZR3 On Mon, Jul 12 2021, Michael J. Gruber wrote: > 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. In case of python3-devel missing in Fedora, the compilation should not pass as far as shown in David's email (and in log below) as it is needed for Checking for python3 cffi and setuptools... configure part to complete with 'Yes' But the message could be better. Perhaps Checking for python3 dev(el), cffi and setuptools... (although this may not be clear enough for debian users as the package there is libpython3-dev, cannot say...) For me, to figure out what was needed in Fedora 34 (ok, 33, but now tested in upgraded fedora 34 host in running fedora:34 podman container) was to run script -c 'sh -x ./configure'; less typescript; and then do internet search how to install missing 'Python.h' include file... Tomi > > 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