From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: Installing binaries with package.el Date: Thu, 09 Feb 2017 16:48:59 -0600 Message-ID: <86k28zou90.fsf@stephe-leake.org> References: <3fdcbe78-969e-f9e1-2a9d-a5f8494c35b3@mit.edu> <87o9ydlprf.fsf@Rainer.invalid> <26a71145-5c0b-faad-17f1-a34e741ed493@gmail.com> <87inok3472.fsf@Rainer.invalid> <76ef00b6-25ed-5868-9b28-8377b8c80a5e@gmail.com> <87zihvb0zr.fsf@Rainer.invalid> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1486680557 8776 195.159.176.226 (9 Feb 2017 22:49:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Feb 2017 22:49:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 09 23:49:13 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbxWa-0001wS-Pu for ged-emacs-devel@m.gmane.org; Thu, 09 Feb 2017 23:49:12 +0100 Original-Received: from localhost ([::1]:40646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbxWf-0007e0-26 for ged-emacs-devel@m.gmane.org; Thu, 09 Feb 2017 17:49:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbxWW-0007d3-UR for emacs-devel@gnu.org; Thu, 09 Feb 2017 17:49:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbxWT-0003hA-2M for emacs-devel@gnu.org; Thu, 09 Feb 2017 17:49:09 -0500 Original-Received: from smtp145.dfw.emailsrvr.com ([67.192.241.145]:33944) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cbxWS-0003gN-Sb for emacs-devel@gnu.org; Thu, 09 Feb 2017 17:49:04 -0500 Original-Received: from smtp27.relay.dfw1a.emailsrvr.com (localhost [127.0.0.1]) by smtp27.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 50F92A01E7 for ; Thu, 9 Feb 2017 17:49:03 -0500 (EST) X-Auth-ID: board-president@tomahawk-creek-hoa.com Original-Received: by smtp27.relay.dfw1a.emailsrvr.com (Authenticated sender: board-president-AT-tomahawk-creek-hoa.com) with ESMTPSA id 22C5FA00FD for ; Thu, 9 Feb 2017 17:49:02 -0500 (EST) X-Sender-Id: board-president@tomahawk-creek-hoa.com Original-Received: from Takver4 (76-218-37-33.lightspeed.kscymo.sbcglobal.net [76.218.37.33]) (using TLSv1.2 with cipher AES128-GCM-SHA256) by 0.0.0.0:587 (trex/5.7.12); Thu, 09 Feb 2017 17:49:03 -0500 In-Reply-To: <87zihvb0zr.fsf@Rainer.invalid> (Achim Gratz's message of "Thu, 09 Feb 2017 20:47:04 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 67.192.241.145 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212189 Archived-At: Achim Gratz writes: > Cl=C3=A9ment Pit-Claudel writes: >> Sorry, maybe my original question wasn't clear. The question was: I >> wrote a command line utility in ELisp (it doesn't provide interactive >> commands; just a command line interface). What's the preferred way >> for users to install it? > > I understood that to be the case, but it's a very surprising use of > package.el and ELisp. As I said I don't really have a suggestion at the > moment, but this particular use case should not be handled as an "Emacs > package". You use Emacs as a VM for some scripting here. I don't see any harm in this being an ELPA package. >>> I simply don't think that wrapper scripts and/or compiling binaries >>> is appropriate for ELPA packages, it just opens one big can of worms >>> that I don't really want to deal with in any way. >> >> I don't understand this part too well. Are you saying that ELPA isn't >> the right place to distribute a command line application written >> entirely in ELisp? (Note that the task that I'm describing has >> nothing to do with compiling binaries =E2=80=94 sorry if that wasn't cle= ar). > > Well, I would want to distinguish between Emacs packages proper and > Emacs as a scripting VM. The more I think about it, package.el should > guarantee that it doesn't write outside the package directory unless it > has explicit user consent. That's reasonable, but probably not enforceable. The 'post-install-action' run by package.el could be elisp code that firsts asks permission, then runs a shell script to run the compiler. --=20 -- Stephe