GNU logs - #75812, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#75812: 29.2.50; Support native-compiling package-install from batch Emacs
Resent-From: Spencer Baugh <sbaugh@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 24 Jan 2025 17:55:02 +0000
Resent-Message-ID: <handler.75812.B.173774126218528 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 75812
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 75812 <at> debbugs.gnu.org
Cc: app-emacs-dev@HIDDEN, Stefan Kangas <stefankangas@HIDDEN>
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.173774126218528
          (code B ref -1); Fri, 24 Jan 2025 17:55:02 +0000
Received: (at submit) by debbugs.gnu.org; 24 Jan 2025 17:54:22 +0000
Received: from localhost ([127.0.0.1]:46962 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tbNsr-0004ok-Hk
	for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 12:54:21 -0500
Received: from lists.gnu.org ([2001:470:142::17]:54198)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <sbaugh@HIDDEN>)
 id 1tbNso-0004oR-0P
 for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 12:54:19 -0500
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 <sbaugh@HIDDEN>)
 id 1tbNsi-0006EH-7r
 for bug-gnu-emacs@HIDDEN; Fri, 24 Jan 2025 12:54:12 -0500
Received: from mxout5.mail.janestreet.com ([64.215.233.18])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <sbaugh@HIDDEN>)
 id 1tbNsg-0004uk-KQ
 for bug-gnu-emacs@HIDDEN; Fri, 24 Jan 2025 12:54:11 -0500
From: Spencer Baugh <sbaugh@HIDDEN>
Date: Fri, 24 Jan 2025 12:54:08 -0500
Message-ID: <iered0sf67z.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com;
 s=waixah; t=1737741248;
 bh=jZPahb10PgY3a29dJgal1w/zeavAZFBzejuE61tpVec=;
 h=From:To:Cc:Subject:Date;
 b=LbvCNA14d1V6ptQRS80bkn2wiFB3EIwOz+wWjBjcuc+SSHEqsQyS5colnVg7uCAXR
 evLqFblAerb2g2+M4Zt/xuq7gtGFLqfHKi5bXIZT9CGSMrXBfoFm3tWvttD2h+Hbyi
 lUHoNM4YaeU/NqG8AWbuvpVKbL7jJv3SmGVQYgboVg4nQkaUf52SDqwx2vpYucb9EX
 3wkcUeMy5dxlANY6I6YCQ+Upq/ccwdztQNCrR52KK+xz6u2oZ6ZXfEOSfYe+aFfwYs
 MA839LSNpCldz19HnN3i7pLy5pnTQv7KNyB8R9CDf+OuAem/1CoOFw34zi5rpOwlZd
 8zhEtlBIMWnIA==
Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@HIDDEN;
 helo=mxout5.mail.janestreet.com
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)


Currently, setting package-native-compile to t will make package-install
asynchronously native-compile the package.  This works great for
interactive usage.

However, this is unsuitable for a batch Emacs running package-install.
"emacs -batch --eval (package-install something)" will exit once the
package is installed, but before the asynchronous native compilation
completes; the native compilation will just be abandoned.  So,
currently, there's no straightforward way to native compile a package
from a batch Emacs.

Running package-install from a batch Emacs is useful as a way to update
or pre-install packages in scripts, without requiring user interaction.
This is widely used by package managers like Nix or dpkg to install
Emacs packages as OS packages.  In my specific case, it's used to
install and byte-compile common packages into site-lisp.  In all these
cases, it would be nice to be able to native-compile the package at
installation time and include the .eln files in the package directory.

A straightforward solution would be for package-install-file to support
synchronously native-compiling the installed package, such that after
package-install finishes running, the native compilation is complete.
Perhaps with a new value of package-native-compile?




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Spencer Baugh <sbaugh@HIDDEN>
Subject: bug#75812: Acknowledgement (29.2.50; Support native-compiling
 package-install from batch Emacs)
Message-ID: <handler.75812.B.173774126218528.ack <at> debbugs.gnu.org>
References: <iered0sf67z.fsf@HIDDEN>
X-Gnu-PR-Message: ack 75812
X-Gnu-PR-Package: emacs
Reply-To: 75812 <at> debbugs.gnu.org
Date: Fri, 24 Jan 2025 17:55:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 75812 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
75812: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75812
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#75812: 29.2.50; Support native-compiling package-install from batch Emacs
Resent-From: Stefan Kangas <stefankangas@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 24 Jan 2025 22:04:02 +0000
Resent-Message-ID: <handler.75812.B75812.173775622611820 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 75812
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Spencer Baugh <sbaugh@HIDDEN>
Cc: app-emacs-dev@HIDDEN, 75812 <at> debbugs.gnu.org
Received: via spool by 75812-submit <at> debbugs.gnu.org id=B75812.173775622611820
          (code B ref 75812); Fri, 24 Jan 2025 22:04:02 +0000
Received: (at 75812) by debbugs.gnu.org; 24 Jan 2025 22:03:46 +0000
Received: from localhost ([127.0.0.1]:47310 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tbRmD-00034W-LY
	for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 17:03:45 -0500
Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]:48194)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1tbRmA-000347-JD
 for 75812 <at> debbugs.gnu.org; Fri, 24 Jan 2025 17:03:43 -0500
Received: by mail-ej1-x636.google.com with SMTP id
 a640c23a62f3a-ab2c9b8aecaso458974966b.0
 for <75812 <at> debbugs.gnu.org>; Fri, 24 Jan 2025 14:03:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1737756216; x=1738361016; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=tHObQOqAkZ25TE+/EPavdl9hT2/QGgCzqwNj+l1wtOM=;
 b=m1cBfJwu/HenhXZwyvwf4pQfrg7g70aMkmJzxbejWap4NMe3l8IMR73yPkw9qbqRiE
 RbeEucIYCd59G8Rcjm0bcli2efXQy2ZKrOUhUS727G178HWGh4in9YT9zZ4+lHvuuKTP
 2k6uxfNq97j1keBtAxaHOo2deEOmHL9tArQxVKn+N5jSM45VdleOflHjtkQeL1/Hl7Tk
 MyF17BN4K3Xy5RZGOUnKsxAHrUngFsjMMPW5H6VKm2m0w8hoEcugx8mJgYAvYYbMxlHU
 oaSnTn0D9jJihmkyugxx+BfGyP93Tgv8jEE98gZHeJNfYrnoFUdlBwTQoODDlbiBfSC7
 tllw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1737756216; x=1738361016;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=tHObQOqAkZ25TE+/EPavdl9hT2/QGgCzqwNj+l1wtOM=;
 b=aBODcqZglMAh8Vekm0OBSp7PhQcMlYWZhAvSptoMo0lyneKE1nTO+Zn8lRRs0cvVIe
 a2pfkxfN9/2ly8isyTkEE1f+rXHKuhPaP0qTDYVnzZAJxpE3/M69F80sFr6Rj/U/zvsT
 budc05L7iJQaf/0snSONDi6tTWCCHDt76ZUYIeRQSOz57yUvO8kzEhLEpFrU4CatIWiA
 NjGPbbdjnqUoaDDJu773UA2MOMG1oPWH5NsO0qBZ9BB0+e1B8J1XpZ/sbRdPvFWEw4W0
 QBT0bbU4T1T6WauoUGDvO61I2vTP571VXXIQ/DPL1VXYvxCmgsBV/zc7k2IpmQu12nna
 h37w==
X-Gm-Message-State: AOJu0YzhfopM8eyklJfRIZV10jUjAFU4dHwbYi3Gop+Th929I6pGmmgz
 FMJQayqVCr75FVZG52qUml/ooLpCXJSMvbUf0uPqSiypDFWEXDOtAPSPFIGc5VGuoVAfH0baUv5
 MSPllbxbqdBDOHnN6bMWQNzPTyZGiXvUg
X-Gm-Gg: ASbGncuLHrwghYqswexwEovxXB+/3jHXQqmgRm32XI+SrMnea0KsaDgALW1ETkmk6ZQ
 Z3uA2Gfm9/NZH/Xn4I7q2igUzYiMfdyMZgnmMT3Ye6RgpIAL4dbDlHjyirsBA3GU=
X-Google-Smtp-Source: AGHT+IFns+rZ3WptjMwIWTJLnStw+w5r7MSavF3FVjUV6D+NwTWGqCE0MTLXfOaJMk88/R5zkBEMoQSk5ntUKNousWk=
X-Received: by 2002:a17:906:dc93:b0:aa6:7737:1991 with SMTP id
 a640c23a62f3a-ab38b0b9158mr3365078966b.2.1737756216102; Fri, 24 Jan 2025
 14:03:36 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Fri, 24 Jan 2025 16:03:35 -0600
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <iered0sf67z.fsf@HIDDEN> (Spencer Baugh's message of
 "Fri, 24 Jan 2025 12:54:08 -0500")
References: <iered0sf67z.fsf@HIDDEN>
MIME-Version: 1.0
Date: Fri, 24 Jan 2025 16:03:35 -0600
X-Gm-Features: AWEUYZlSt9Sj_ITpsdZn4nYH0V4PQqPTtpV4k4jEqa513zMtTqN1mVY_02IiM_4
Message-ID: <CADwFkm=15x2PvQK9HDt7VnkuKN70OGnbOo-PneyR4koWwkfGfw@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

severity 75812 wishlist
tags 75812 + confirmed
thanks

Spencer Baugh <sbaugh@HIDDEN> writes:

> Currently, setting package-native-compile to t will make package-install
> asynchronously native-compile the package.  This works great for
> interactive usage.
>
> However, this is unsuitable for a batch Emacs running package-install.
> "emacs -batch --eval (package-install something)" will exit once the
> package is installed, but before the asynchronous native compilation
> completes; the native compilation will just be abandoned.  So,
> currently, there's no straightforward way to native compile a package
> from a batch Emacs.
>
> Running package-install from a batch Emacs is useful as a way to update
> or pre-install packages in scripts, without requiring user interaction.
> This is widely used by package managers like Nix or dpkg to install
> Emacs packages as OS packages.  In my specific case, it's used to
> install and byte-compile common packages into site-lisp.  In all these
> cases, it would be nice to be able to native-compile the package at
> installation time and include the .eln files in the package directory.
>
> A straightforward solution would be for package-install-file to support
> synchronously native-compiling the installed package, such that after
> package-install finishes running, the native compilation is complete.
> Perhaps with a new value of package-native-compile?

Sounds good to me, thanks.  We'll take patches implementing this.




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 24 Jan 2025 22:03:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 24 17:03:45 2025
Received: from localhost ([127.0.0.1]:47308 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tbRmD-00034T-8c
	for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 17:03:45 -0500
Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]:49184)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1tbRmA-000346-JC
 for control <at> debbugs.gnu.org; Fri, 24 Jan 2025 17:03:43 -0500
Received: by mail-ej1-x62a.google.com with SMTP id
 a640c23a62f3a-aaecf50578eso604096666b.2
 for <control <at> debbugs.gnu.org>; Fri, 24 Jan 2025 14:03:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1737756216; x=1738361016; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=tHObQOqAkZ25TE+/EPavdl9hT2/QGgCzqwNj+l1wtOM=;
 b=m1cBfJwu/HenhXZwyvwf4pQfrg7g70aMkmJzxbejWap4NMe3l8IMR73yPkw9qbqRiE
 RbeEucIYCd59G8Rcjm0bcli2efXQy2ZKrOUhUS727G178HWGh4in9YT9zZ4+lHvuuKTP
 2k6uxfNq97j1keBtAxaHOo2deEOmHL9tArQxVKn+N5jSM45VdleOflHjtkQeL1/Hl7Tk
 MyF17BN4K3Xy5RZGOUnKsxAHrUngFsjMMPW5H6VKm2m0w8hoEcugx8mJgYAvYYbMxlHU
 oaSnTn0D9jJihmkyugxx+BfGyP93Tgv8jEE98gZHeJNfYrnoFUdlBwTQoODDlbiBfSC7
 tllw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1737756216; x=1738361016;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=tHObQOqAkZ25TE+/EPavdl9hT2/QGgCzqwNj+l1wtOM=;
 b=EuwhT385sNL1tOMTtXvt9Vq/JZFcHR056lMnmOGcyHjOr1VKXqget3f5+ZJcKSWDUN
 /1zqvz/3X93zw/jU7tDNulwguMZr+YT2wkDKqfniV0ziT3+hmje3JtnJrDhW5PJp16Tn
 6oT4a62DeEocR+NDOrPwcXCev9dV47NpgTfL26kWCczIQDlkV/Fc23MxpXGXp2qwdNRC
 1HUi2i2tzVaufDKJKzYXPUsrmUNnm3Gik1m25qe9AF99sl/aI6ajISRHaJBx0euTvjtm
 EU2Hy1Vdfd2sp5zgdeIcMVHmh7Rkj6wsqvLFHn5wjIqGrl0Jav9UkqzdaWRwm8+X66BJ
 JqaA==
X-Forwarded-Encrypted: i=1;
 AJvYcCUb4t+ECGFDruNARjeSehARbnh7HbM52ax8ygRf4E403LQ2AQAcAhCtE3F9GQCfin1vyyJvDzZd <at> debbugs.gnu.org
X-Gm-Message-State: AOJu0YxlcHsinIdHgQGO+aU1WrmSHncMdo5a77QRUIi6dhPYLBt2++kY
 IKCL7BjzB5Zs9BFBdc03VlvIbBbDf6wRSZA71IozhCjwg+Tkx2UY5y7TD6q0TW9qdb9Pdze6u3N
 gL7S39umeWftP51PHLxPaflE0+2Q=
X-Gm-Gg: ASbGncsKZUdIK170arPH41k9MgS+RCMcHGJEYoeB0yDhl2Ikz0qzlQgYDneZkGnBrpQ
 MNg5yiv4LqBSjODrGzdmKPpB7kg+Nbcm7038qDb2Yn149rLvDcZGjI9EvFwz+rw0=
X-Google-Smtp-Source: AGHT+IFns+rZ3WptjMwIWTJLnStw+w5r7MSavF3FVjUV6D+NwTWGqCE0MTLXfOaJMk88/R5zkBEMoQSk5ntUKNousWk=
X-Received: by 2002:a17:906:dc93:b0:aa6:7737:1991 with SMTP id
 a640c23a62f3a-ab38b0b9158mr3365078966b.2.1737756216102; Fri, 24 Jan 2025
 14:03:36 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Fri, 24 Jan 2025 16:03:35 -0600
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <iered0sf67z.fsf@HIDDEN> (Spencer Baugh's message of
 "Fri, 24 Jan 2025 12:54:08 -0500")
References: <iered0sf67z.fsf@HIDDEN>
MIME-Version: 1.0
Date: Fri, 24 Jan 2025 16:03:35 -0600
X-Gm-Features: AWEUYZlSt9Sj_ITpsdZn4nYH0V4PQqPTtpV4k4jEqa513zMtTqN1mVY_02IiM_4
Message-ID: <CADwFkm=15x2PvQK9HDt7VnkuKN70OGnbOo-PneyR4koWwkfGfw@HIDDEN>
Subject: Re: bug#75812: 29.2.50; Support native-compiling package-install from
 batch Emacs
To: Spencer Baugh <sbaugh@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Bcc: control <at> debbugs.gnu.org
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: control
Cc: app-emacs-dev@HIDDEN, 75812 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

severity 75812 wishlist
tags 75812 + confirmed
thanks

Spencer Baugh <sbaugh@HIDDEN> writes:

> Currently, setting package-native-compile to t will make package-install
> asynchronously native-compile the package.  This works great for
> interactive usage.
>
> However, this is unsuitable for a batch Emacs running package-install.
> "emacs -batch --eval (package-install something)" will exit once the
> package is installed, but before the asynchronous native compilation
> completes; the native compilation will just be abandoned.  So,
> currently, there's no straightforward way to native compile a package
> from a batch Emacs.
>
> Running package-install from a batch Emacs is useful as a way to update
> or pre-install packages in scripts, without requiring user interaction.
> This is widely used by package managers like Nix or dpkg to install
> Emacs packages as OS packages.  In my specific case, it's used to
> install and byte-compile common packages into site-lisp.  In all these
> cases, it would be nice to be able to native-compile the package at
> installation time and include the .eln files in the package directory.
>
> A straightforward solution would be for package-install-file to support
> synchronously native-compiling the installed package, such that after
> package-install finishes running, the native compilation is complete.
> Perhaps with a new value of package-native-compile?

Sounds good to me, thanks.  We'll take patches implementing this.




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 24 Jan 2025 22:03:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 24 17:03:45 2025
Received: from localhost ([127.0.0.1]:47308 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tbRmD-00034T-8c
	for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 17:03:45 -0500
Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]:49184)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>)
 id 1tbRmA-000346-JC
 for control <at> debbugs.gnu.org; Fri, 24 Jan 2025 17:03:43 -0500
Received: by mail-ej1-x62a.google.com with SMTP id
 a640c23a62f3a-aaecf50578eso604096666b.2
 for <control <at> debbugs.gnu.org>; Fri, 24 Jan 2025 14:03:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1737756216; x=1738361016; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=tHObQOqAkZ25TE+/EPavdl9hT2/QGgCzqwNj+l1wtOM=;
 b=m1cBfJwu/HenhXZwyvwf4pQfrg7g70aMkmJzxbejWap4NMe3l8IMR73yPkw9qbqRiE
 RbeEucIYCd59G8Rcjm0bcli2efXQy2ZKrOUhUS727G178HWGh4in9YT9zZ4+lHvuuKTP
 2k6uxfNq97j1keBtAxaHOo2deEOmHL9tArQxVKn+N5jSM45VdleOflHjtkQeL1/Hl7Tk
 MyF17BN4K3Xy5RZGOUnKsxAHrUngFsjMMPW5H6VKm2m0w8hoEcugx8mJgYAvYYbMxlHU
 oaSnTn0D9jJihmkyugxx+BfGyP93Tgv8jEE98gZHeJNfYrnoFUdlBwTQoODDlbiBfSC7
 tllw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1737756216; x=1738361016;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=tHObQOqAkZ25TE+/EPavdl9hT2/QGgCzqwNj+l1wtOM=;
 b=EuwhT385sNL1tOMTtXvt9Vq/JZFcHR056lMnmOGcyHjOr1VKXqget3f5+ZJcKSWDUN
 /1zqvz/3X93zw/jU7tDNulwguMZr+YT2wkDKqfniV0ziT3+hmje3JtnJrDhW5PJp16Tn
 6oT4a62DeEocR+NDOrPwcXCev9dV47NpgTfL26kWCczIQDlkV/Fc23MxpXGXp2qwdNRC
 1HUi2i2tzVaufDKJKzYXPUsrmUNnm3Gik1m25qe9AF99sl/aI6ajISRHaJBx0euTvjtm
 EU2Hy1Vdfd2sp5zgdeIcMVHmh7Rkj6wsqvLFHn5wjIqGrl0Jav9UkqzdaWRwm8+X66BJ
 JqaA==
X-Forwarded-Encrypted: i=1;
 AJvYcCUb4t+ECGFDruNARjeSehARbnh7HbM52ax8ygRf4E403LQ2AQAcAhCtE3F9GQCfin1vyyJvDzZd <at> debbugs.gnu.org
X-Gm-Message-State: AOJu0YxlcHsinIdHgQGO+aU1WrmSHncMdo5a77QRUIi6dhPYLBt2++kY
 IKCL7BjzB5Zs9BFBdc03VlvIbBbDf6wRSZA71IozhCjwg+Tkx2UY5y7TD6q0TW9qdb9Pdze6u3N
 gL7S39umeWftP51PHLxPaflE0+2Q=
X-Gm-Gg: ASbGncsKZUdIK170arPH41k9MgS+RCMcHGJEYoeB0yDhl2Ikz0qzlQgYDneZkGnBrpQ
 MNg5yiv4LqBSjODrGzdmKPpB7kg+Nbcm7038qDb2Yn149rLvDcZGjI9EvFwz+rw0=
X-Google-Smtp-Source: AGHT+IFns+rZ3WptjMwIWTJLnStw+w5r7MSavF3FVjUV6D+NwTWGqCE0MTLXfOaJMk88/R5zkBEMoQSk5ntUKNousWk=
X-Received: by 2002:a17:906:dc93:b0:aa6:7737:1991 with SMTP id
 a640c23a62f3a-ab38b0b9158mr3365078966b.2.1737756216102; Fri, 24 Jan 2025
 14:03:36 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Fri, 24 Jan 2025 16:03:35 -0600
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <iered0sf67z.fsf@HIDDEN> (Spencer Baugh's message of
 "Fri, 24 Jan 2025 12:54:08 -0500")
References: <iered0sf67z.fsf@HIDDEN>
MIME-Version: 1.0
Date: Fri, 24 Jan 2025 16:03:35 -0600
X-Gm-Features: AWEUYZlSt9Sj_ITpsdZn4nYH0V4PQqPTtpV4k4jEqa513zMtTqN1mVY_02IiM_4
Message-ID: <CADwFkm=15x2PvQK9HDt7VnkuKN70OGnbOo-PneyR4koWwkfGfw@HIDDEN>
Subject: Re: bug#75812: 29.2.50; Support native-compiling package-install from
 batch Emacs
To: Spencer Baugh <sbaugh@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Bcc: control <at> debbugs.gnu.org
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: control
Cc: app-emacs-dev@HIDDEN, 75812 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

severity 75812 wishlist
tags 75812 + confirmed
thanks

Spencer Baugh <sbaugh@HIDDEN> writes:

> Currently, setting package-native-compile to t will make package-install
> asynchronously native-compile the package.  This works great for
> interactive usage.
>
> However, this is unsuitable for a batch Emacs running package-install.
> "emacs -batch --eval (package-install something)" will exit once the
> package is installed, but before the asynchronous native compilation
> completes; the native compilation will just be abandoned.  So,
> currently, there's no straightforward way to native compile a package
> from a batch Emacs.
>
> Running package-install from a batch Emacs is useful as a way to update
> or pre-install packages in scripts, without requiring user interaction.
> This is widely used by package managers like Nix or dpkg to install
> Emacs packages as OS packages.  In my specific case, it's used to
> install and byte-compile common packages into site-lisp.  In all these
> cases, it would be nice to be able to native-compile the package at
> installation time and include the .eln files in the package directory.
>
> A straightforward solution would be for package-install-file to support
> synchronously native-compiling the installed package, such that after
> package-install finishes running, the native compilation is complete.
> Perhaps with a new value of package-native-compile?

Sounds good to me, thanks.  We'll take patches implementing this.





Last modified: Fri, 24 Jan 2025 22:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.