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 UPDRENGvfWEiWQAAgWs5BA (envelope-from ) for ; Sat, 30 Oct 2021 22:49:21 +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 2AiBDNGvfWEeWgAA1q6Kng (envelope-from ) for ; Sat, 30 Oct 2021 20:49:21 +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 AEF87F62F for ; Sat, 30 Oct 2021 22:49:20 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 8DABD1FCC7; Sat, 30 Oct 2021 16:49:08 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 2B22D1F51C for ; Sat, 30 Oct 2021 16:49:02 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id DDD775FC48; Sat, 30 Oct 2021 16:49:01 -0400 (EDT) Received: (nullmailer pid 1581637 invoked by uid 1000); Sat, 30 Oct 2021 20:48:58 -0000 From: David Bremner To: Daniel Kahn Gillmor , Notmuch Mail Subject: [PATCH 3/3] python-cffi: introduce stamp file Date: Sat, 30 Oct 2021 17:48:55 -0300 Message-Id: <20211030204855.1581540-4-david@tethera.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211030204855.1581540-1-david@tethera.net> References: <87r29wwgq2.fsf@fifthhorseman.net> <20211030204855.1581540-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: OE77JHX7IXSHFK2Q74T5CKTQE4KK2NCM X-Message-ID-Hash: OE77JHX7IXSHFK2Q74T5CKTQE4KK2NCM X-MailFrom: bremner@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; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: 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=1635626960; 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-owner:list-unsubscribe:list-subscribe:list-post; bh=y1VX6NCf6XzdSxpT0WvUthWdo1Qg5fd2/ZtdPzFZr4U=; b=nMWzywtZF7I1z2wzgzMrY0GlKPyYRXgfrjfolOdbmOsivW3LbgtaZ+LH9vb1mfvPdTLlMG j7TE4jeooPC3GXd+RIKUQflhXcy3+mcMT02rpelxziYPLxDtkdt9zjL7sREYT78F7ggoz1 hLmwHtXqkrXoNn9si3sz02aNWChEEnm+YfsCXMn1WxZdpxvA2M11IMEbi3O0J2/xCJAjTf FVNcq59riVqquUbvHkOZ06uK7U/AsUrDZoQ4NurcgGQeZz6QnJk9jE8CLE3NkrDagcSvEx DJLGH1yVOlFO5qm2SaDkEf49xVZYULN9rpk7PdbbZp9yMBSFn2a9T8LjWc2yjQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635626960; a=rsa-sha256; cv=none; b=K7aDdvOHm6ggww0uoZjr7pL7HwIoNDECW59Yxy7ksskKSX3OM8zb8S3XtMJ1HznIo/oF9H nJEPBvp+YEe3VOq0W3XbWpNRpx/ol/xIwp+JS112A2Eelj3gA2dSYYkBKSnQxXp8n0fWXZ 2FNukPWP9dUL3FQ5rkJ18iUZuBrNSeMAdj6raZiSEZAcEp1almgBXJRqC3/ln3EAp/rhAT x+I3DqetaaQZLTyYySSGi17JUXb6csrRkHZCa/Duy0CmSZFEssSLDApc0DwkmiMnHG/YR6 JbekhFmQ4FZxoAm+NDpIVbDE/1HNhY9CGLtW5buwMJqooMhZ3Ew1HdCxw8eITQ== 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.15 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: AEF87F62F X-Spam-Score: -1.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: KeCED5QunDcH Although the rebuild does not take long, it is a bit noisy, so assume if it succeeds once, it doesn't need to re-invoke setup.py until the shared library is rebuilt. This is a partial fix for [1]. [1]: id:87r29wwgq2.fsf@fifthhorseman.net --- bindings/Makefile.local | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bindings/Makefile.local b/bindings/Makefile.local index 1cdd28a0..7b10af08 100644 --- a/bindings/Makefile.local +++ b/bindings/Makefile.local @@ -15,11 +15,14 @@ ifeq ($(HAVE_RUBY_DEV),1) $(MAKE) -C $(dir)/ruby CFLAGS="$(CFLAGS) -pipe -fno-plt -fPIC" && touch $@ endif -python-cffi-bindings: lib/$(LINKER_NAME) +python-cffi-bindings: $(dir)/python-cffi.stamp + +$(dir)/python-cffi.stamp: lib/$(LINKER_NAME) ifeq ($(HAVE_PYTHON3_CFFI),1) cd $(dir)/python-cffi && \ ${PYTHON} setup.py build --build-lib build/stage && \ - mkdir -p build/stage/tests && cp tests/*.py build/stage/tests && touch ../../$@ + mkdir -p build/stage/tests && cp tests/*.py build/stage/tests && \ + touch ../python-cffi.stamp endif CLEAN += $(patsubst %,$(dir)/ruby/%, \ @@ -30,4 +33,4 @@ CLEAN += $(patsubst %,$(dir)/ruby/%, \ CLEAN += bindings/ruby/.vendorarchdir.time $(dir)/ruby.stamp -CLEAN += bindings/python-cffi/build +CLEAN += bindings/python-cffi/build $(dir)/python-cffi.stamp -- 2.33.0