From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Max Nikulin Newsgroups: gmane.emacs.bugs Subject: bug#62762: Incremental builds and Lisp files dependencies pulling a new version of the code Date: Sun, 7 May 2023 09:45:20 +0700 Message-ID: <3d9869dc-8cac-e076-ba7e-def76bfc587c@gmail.com> References: <17b74a48-94e1-9106-cc79-d31972313910@gutov.dev> <837cujaqzq.fsf@gnu.org> <87wn2ilwed.fsf@localhost> <83zg7ealrd.fsf@gnu.org> <87pm8a8dx4.fsf@localhost> <87pm7vt0mx.fsf@localhost> <87cz3k8i27.fsf@localhost> <87sfcfdldt.fsf@localhost> <87bkj1g10g.fsf@localhost> <1c5d0ff0-5bae-1123-d2f7-64d9013fbc0f@gmail.com> <6070e598-7dee-1b7a-7f97-26a90618cb7a@gmail.com> <1f236996-5f17-3be8-d01c-803e065985f7@gmail.com> <83h6sphp82.fsf@gnu.org> <0d716705-bea1-4cb3-afbc-c381a7519b12@gmail.com> <83fs89fmtj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37955"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Cc: yantar92@posteo.net, 62762@debbugs.gnu.org, bzg@gnu.org, dmitry@gutov.dev, monnier@iro.umontreal.ca, acm@muc.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 07 04:46:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pvUPe-0009mW-6q for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 May 2023 04:46:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvUPU-0005uL-Cd; Sat, 06 May 2023 22:46:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvUPS-0005tw-Bx for bug-gnu-emacs@gnu.org; Sat, 06 May 2023 22:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pvUPS-0008Ao-3I for bug-gnu-emacs@gnu.org; Sat, 06 May 2023 22:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pvUPR-0000tP-VP for bug-gnu-emacs@gnu.org; Sat, 06 May 2023 22:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Max Nikulin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 May 2023 02:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62762 X-GNU-PR-Package: emacs Original-Received: via spool by 62762-submit@debbugs.gnu.org id=B62762.16834275353396 (code B ref 62762); Sun, 07 May 2023 02:46:01 +0000 Original-Received: (at 62762) by debbugs.gnu.org; 7 May 2023 02:45:35 +0000 Original-Received: from localhost ([127.0.0.1]:36087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvUP0-0000sh-MY for submit@debbugs.gnu.org; Sat, 06 May 2023 22:45:34 -0400 Original-Received: from mail-lf1-f41.google.com ([209.85.167.41]:62742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvUOv-0000sR-W8 for 62762@debbugs.gnu.org; Sat, 06 May 2023 22:45:34 -0400 Original-Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-4f00d41df22so23066531e87.1 for <62762@debbugs.gnu.org>; Sat, 06 May 2023 19:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683427524; x=1686019524; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=fX/yRLykLtlk9TVApHCQdNYWr6MbO0O5U9/DASrq0bw=; b=nMAyo30vLEyWo2nRT84O5mC9HiQqklGuvCoX+xbuB0OcQZJVLE5aetJEv8OqhN0PXM O4VDzzzdY3QvF9SaXNRElE3OwS6D32A/kgBiVmVLmD86eO/d4ofsTmXHrpMrv5ITNs7j 3j52Smmeani5dWvVlE9spxEttKjdd6oU9ZEzlyBZKERbcrH26Q+mVQSZjBz6MDSgWHdd AyJHgHQfD6eMuULW4L+H6WEFUbi4JCvaNpg7cVstkNSBrZPRmdEbh/8wuEufiwGgc7o8 Xuc0W98Kqg7Uar6r9nsYn23gIFjp0VitKAU2wJHddtg1rX2Cbpe6LV3ttIE5xG4EZ0sZ 52WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683427524; x=1686019524; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fX/yRLykLtlk9TVApHCQdNYWr6MbO0O5U9/DASrq0bw=; b=cP+9VIINKYdrDLr5OfYU1KkZL44rZnPB513luQ63QNkXrHZVT1fqFNNBQT65LdF9h2 QXMI0BAA0fa2ju9dFpawbXHZH5S3MpOHHlF1oY93nML1DkpMN7KbUjElDs56d6xGbZxa G0SMEpOcmQdfamfeMC8FrTMdpyphVLW2Y648hIDSK1cDefbwF3ICqvdAlwCKnybL2bba CSeK1JzBDmsx2bYKKVyQPKKhasKzw9pvfcrcJELcB4KWCEpvZCbBJdVwyR5BZTMUwVHE ID3/qPFdQEO2c4uSb76+4p9tamPTVzGaHiQahYfO+ifBlnnjOwKqRk9wkpfbz/n8c22N yIlw== X-Gm-Message-State: AC+VfDxHLGd+OsnqB8WW+iTnPHaIsEfZ8dLfneByFFuOQcoxdvTdWyah qbPv/dDWQeu6JHSjNdEFNLc= X-Google-Smtp-Source: ACHHUZ6ry8VySeZDVpm2NJGaBc361/kP4iSpbJQTf1pyJ0HrNauKrNsgcKCbj2WDiu4kYxknAxPcgw== X-Received: by 2002:a05:6512:10c4:b0:4f1:4a14:d97c with SMTP id k4-20020a05651210c400b004f14a14d97cmr1550507lfg.16.1683427523665; Sat, 06 May 2023 19:45:23 -0700 (PDT) Original-Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id e3-20020ac25463000000b004efff420b11sm829027lfn.181.2023.05.06.19.45.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 06 May 2023 19:45:23 -0700 (PDT) Content-Language: en-US In-Reply-To: <83fs89fmtj.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261227 Archived-At: On 06/05/2023 23:26, Eli Zaretskii wrote: >> Date: Sat, 6 May 2023 22:50:22 +0700 From: Max Nikulin >> >> On 06/05/2023 14:51, Eli Zaretskii wrote: >>> This doesn't really work, not as long as we use Make: some *.elc files >>> might not exist yet, for whatever reasons, so Make will try to >>> generate them first, thus disrupting the order of generation that you >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >>> will try to encode in the dependencies. We already tried that, and it >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >>> didn't work, not even just for Org. >> >> Could you, please, be more precise? Do you suspect that Make may start >> building a target before completion of all rules for its prerequisites? > > No, I mean that the order in which Make builds the targets might not > be what you think, if all you tell it that all org/*.elc files depend > on org-macs.elc. Sorry, but it is still not clear to we what "doesn't really work" and I feel that it may be important for further discussion. If a Makefile contains a dependency like org/ol.elc: org/org-macs.elc and org/org-macs.elc needs update then the rule for org/ol.elc is executed after completion of the rule for org/org-macs.elc. The purpose of dependencies is to define order of execution of build rules. However I suggested dependencies on org-macs.el, not on org-macs.elc: Sat, 6 May 2023 13:00:38 +0700 >> they >> should be at least that all lisp/org/*.elc files depend on >> lisp/org/org-version.el and lisp/org/org-macs.el.