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 uuqWDdrxXWGn9gAAgWs5BA (envelope-from ) for ; Wed, 06 Oct 2021 20:58:34 +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 BQS8CNrxXWEFNAAA1q6Kng (envelope-from ) for ; Wed, 06 Oct 2021 18:58:34 +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 2F9F22121E for ; Wed, 6 Oct 2021 20:58:33 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id AD81C26D91; Wed, 6 Oct 2021 14:58:29 -0400 (EDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by mail.notmuchmail.org (Postfix) with ESMTPS id C400D26D7F for ; Wed, 6 Oct 2021 14:58:26 -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 647BA1B00188; Wed, 6 Oct 2021 21:58:24 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1633546704; 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=sp0ohwwPsRQk5vYgjQsLAXVQsX5ZJMWyrWd+DWvsJHU=; b=qZGuGjIigtwdHdqqGdIhZer+L+jACGTlC2Pr10p3bkEkxyp1gFEvCsLeWYcmKwjKAu8/zP mVGQg4evzWaCcxk1DfJ0J4OM9YmrpFc+uG9pJd2VSuJq1tVWTAKR8X++DYU3/XGI2YcZ5C /Bay+fRB+IHkGqISm1Jcrav6iF3ShGGOzI55KYQB+1+wODM3odod48HohES1coigpKh6rJ 5ERjPbXaJKH3aJmmSCoji1zrOowM39YrY0/rQrKedGG+VUZeSTqaTDati/87GZgHE0ATOS IYFvwY+GxN1+6RHfpe4qGq2PfT6WQzJOiX/kQvYKTRSEFTfdyD9mp570zXgkOQ== From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: configure checks for python3-notmuch2 module In-Reply-To: References: <87im1g35ey.fsf@tethera.net> <87ilyatm4i.fsf@tethera.net> User-Agent: Notmuch/0.33+54~gcaf4513 (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1633546704; a=rsa-sha256; cv=none; b=kd0Z6Ed8WDYo9Xxf4ua9HRVbAN1HhxH4y1Jm0kX1BGnsvQw0vADqFyZjniQeC48qmbGcwz Aef4MxUEJFLcCa4ztNj8Th9WPSHvprwyeO/uKhkqWU/5JkLABidR+ULImzRQuCjR62M4nS WpPHknpq8kHyDt/edXjKIqfHEwlzbdUErv6qzJKPMrzcuyvet4tWkdY+hC9eJqJgUtSb6c FpbcrE37qkkO9BngjGhVQlNi+IPOnbkqn4+U8F78tYydFvmBkTYF3zIDom5ZFHiars6t31 CT0ZkQ7+9sjVJhO/dUcQvH06u25GpaF5xdZCUrPjku6SW4hOPxQB0oKDgDNvEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1633546704; 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=sp0ohwwPsRQk5vYgjQsLAXVQsX5ZJMWyrWd+DWvsJHU=; b=hg5aDVrxB/Mwtt2wrLlHkzWgBoAcFwygqZopPs3dE0aTVAa2bZgRuWAtkHMRsbSgZEw4EB FycheNwOqaT3xOU0QDPRIm0lDNiowGUGbfN8nNwXzPIOv+v6jl94zyrg/MUprL/S9DeVoL 3c+WTuCYIKAjIRaBP8wExL52pD/xTvYGoC+tfZ11aAcQbNIaYVVuvGUsDG3sJVQFL0gfZJ eoQohzp7JBobo/AvHrZRvtAE7kyQKwV3CAAlNZCVCo+WxyGo661PN/+cytIOE+1wwJ2fU9 o1aXPR5fCRfobbD2VEXvo/Uc/xooaRrLUFUzcn8am+/xsL/ZXlRFV8sPuAzgKw== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi Message-ID-Hash: NZ4VWEG4SKQGEQFIULQIZK75UWJG57OP X-Message-ID-Hash: NZ4VWEG4SKQGEQFIULQIZK75UWJG57OP 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=1633546713; 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=e4MeMG31JaF1a4h9yHaMbd37oDhxjoOb1dm66VGJG70=; b=S3peJGBLlpikf7OT0QWvFNnarMxkYqeqAmWdl+eEhlT+QgFSfkYKvInzGNc/Etd9FkRi8p k3IZX2WHmRre12EYr2ETpJQOfK3tVRuljcMKhjxpa4XCeZdlRZHsupjOgSSkNe7raAckDz XyoAHSZMQqZyhfArvEV1mn1+wcf9j25dMPxKonyEiKNQxfC7WC+6Y/2o6cvU3BkgA+u/SF sUnO9UMYvQhPq6f4+AiA5oNL+SQG6EVj3/4cO9YL38HiDY57pElBgvaPqW3K0Ma+Z5865G QmbEDoHJMdDSqG1+gRlqrle/on+aLQ/LcRHJitoygdJOQa6YBfnJn1I7BKfHfQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1633546713; a=rsa-sha256; cv=fail; b=jY+ByZgaLz3UyxwiLpeS9D55PAQMRE6+Car4R3grSrnLUcwvN7BsPHYmy/XF4N/5HMbJaT Usd0XCyU3lrqlrjuK4xB/kX8s2n4WEPqIKH93Js3pg7VbUQwsdWyF4J3cD8My8Vy+Vs2Ui MMPSZXz9B3L0SS8mm9XHWMrIcYsDBNCeaj1tkpj/prnQ+S++R9YdR1CB0ShhIstUJPgVQl bQX45jvjWHeAlDqjlLjkTqDSkuWO+YZSgBtLPmc6ZZiiTLUq4kEKKT/TreTJ8a3NfVyBEi EnVs/W6WFyn/n6qoNAaas/mK9oqAgkbAo+KcXOJ6h1DlPZ0UtGRTqMLac313qw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=qZGuGjIi; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); 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.79 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=qZGuGjIi; 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: 2F9F22121E X-Spam-Score: 0.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: uVqYm4iEVHnX On Wed, Oct 06 2021, Tomi Ollila wrote: > > So, on Fedora 34, without python3-devel installed > > $ python3 -c 'import cffi,setuptools; cffi.FFI().verify()' > __pycache__/_cffi__xd915627fxd88346ae.c:2:10: fatal error: Python.h: No > such file or directory > 2 | #include > | ^~~~~~~~~~ > compilation terminated. > > (as of now python3-devel-3.9.7-1.fc34 provides /usr/include/python3.9/Python.h) > > (debian systems may work differently -- w/ strace the above command > line did not show any access to Python.h...) The reason for the above was probably that something was cached; got exactly the same problem when tried in debian:11 (podman) container w/o libpython3-dev (*) -- and after apt-get install libpython3-dev the above cffi.FFI().verify() worked Tomi (*) executed the following on top of docker.io/library/debian:11 and then ./configure in notmuch source dir... export DEBIAN_FRONTEND=noninteractive apt-get update apt-get install -y -q build-essential emacs-nox gdb git man \ dtach libxapian-dev libgmime-3.0-dev libtalloc-dev \ python3-sphinx python3-cffi python3-pytest \ python3-setuptools gpgsm parallel apt-get -y autoremove apt-get -y clean rm -rf /var/lib/apt/lists/ > >> >> cheers, >> >> d > > Tomi