Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 75812) by debbugs.gnu.org; 24 Jan 2025 22:03:46 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 24 17:03:46 2025 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> 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" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 75812 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.
bug-gnu-emacs@HIDDEN
:bug#75812
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 24 Jan 2025 17:54:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 24 12:54:21 2025 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> To: bug-gnu-emacs@HIDDEN Subject: 29.2.50; Support native-compiling package-install from batch Emacs 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-Debbugs-Envelope-To: submit Cc: app-emacs-dev@HIDDEN, Stefan Kangas <stefankangas@HIDDEN> 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?
Spencer Baugh <sbaugh@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#75812
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.