From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.devel Subject: Re: Installing binaries with package.el Date: Tue, 07 Feb 2017 08:22:35 +0100 Message-ID: <871svatqh0.fsf@mbork.pl> References: <3fdcbe78-969e-f9e1-2a9d-a5f8494c35b3@mit.edu> <8760kmtvpu.fsf@mbork.pl> <35ae3a71-f8da-3405-6966-38337d8e74e0@gmail.com> 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 1486452161 3223 195.159.176.226 (7 Feb 2017 07:22:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2017 07:22:41 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 26.0.50.3 Cc: Emacs developers To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 07 08:22:37 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 1cb06m-0000WL-WB for ged-emacs-devel@m.gmane.org; Tue, 07 Feb 2017 08:22:37 +0100 Original-Received: from localhost ([::1]:52399 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb06p-0008Kw-CF for ged-emacs-devel@m.gmane.org; Tue, 07 Feb 2017 02:22:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb06E-0008Kp-38 for emacs-devel@gnu.org; Tue, 07 Feb 2017 02:22:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb06A-0003xk-4o for emacs-devel@gnu.org; Tue, 07 Feb 2017 02:22:02 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:41819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb069-0003xR-UH for emacs-devel@gnu.org; Tue, 07 Feb 2017 02:21:58 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id A003BE69C9; Tue, 7 Feb 2017 08:21:55 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dei1gA73Appn; Tue, 7 Feb 2017 08:21:53 +0100 (CET) Original-Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 23BD9E664C; Tue, 7 Feb 2017 08:21:53 +0100 (CET) In-reply-to: <35ae3a71-f8da-3405-6966-38337d8e74e0@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 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:212080 Archived-At: On 2017-02-07, at 06:33, Cl=C3=A9ment Pit-Claudel = wrote: > On 2017-02-07 00:29, Marcin Borkowski wrote: >> On 2017-02-07, at 03:09, Cl=C3=A9ment Pit--Claudel >> wrote: >> >>> Hi emacs-devel, >>> >>> Can package.el install binaries? That is, if my package includes a >>> command line interface, can I ask package.el to install it to >>> somewhere like .emacs.d/bin, or ~/.bin? Or should I do this by >>> adding autoloaded code that runs at package installation time? >> >> What do I know, but doesn't pdf-tools do that exactly? > > Cool. Can you explain a bit more? AFAICT pdf-tools tries to compile a= C program as part of its installation; is that what you had in mind? Or= does pdf-tools also install a binary somewhere (with the expectation tha= t the user would add it to their path)? I have no idea, frankly speaking. AFAIK, pdf-tools does use /some/ binary, and is installed via package-install (and AFAIR, I didn't have to add anything to the $PATH variable) - so there must be some way it does it, and that's practically all I know. (One more thing, I don't know whether it's significant, but I have to reinstall it every time I compile a new Emacs. No idea why exactly.) Best, -- Marcin Borkowski