From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Installing binaries with package.el Date: Tue, 7 Feb 2017 08:12:21 -0500 Message-ID: <76433d89-f381-b805-4501-c9c8b8f7a275@gmail.com> References: <3fdcbe78-969e-f9e1-2a9d-a5f8494c35b3@mit.edu> <8760kmtvpu.fsf@mbork.pl> <35ae3a71-f8da-3405-6966-38337d8e74e0@gmail.com> <871svatqh0.fsf@mbork.pl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1486473154 31508 195.159.176.226 (7 Feb 2017 13:12:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2017 13:12:34 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 Cc: Emacs developers To: Marcin Borkowski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 07 14:12:30 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 1cb5ZO-0007vz-If for ged-emacs-devel@m.gmane.org; Tue, 07 Feb 2017 14:12:30 +0100 Original-Received: from localhost ([::1]:53972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb5ZS-0001Lx-CV for ged-emacs-devel@m.gmane.org; Tue, 07 Feb 2017 08:12:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb5ZM-0001Lq-Eg for emacs-devel@gnu.org; Tue, 07 Feb 2017 08:12:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb5ZH-0003Ko-Hc for emacs-devel@gnu.org; Tue, 07 Feb 2017 08:12:28 -0500 Original-Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:32948) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cb5ZH-0003Je-E3 for emacs-devel@gnu.org; Tue, 07 Feb 2017 08:12:23 -0500 Original-Received: by mail-qk0-x242.google.com with SMTP id 11so13060555qkl.0 for ; Tue, 07 Feb 2017 05:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=xLXeVQqSP4v2uBmSTjD+1FV7S5rRKQgAQXei/dd+Ci0=; b=h/fJBMDxzS8I9K/9XoaVr19enYikeonjoSXqKwwPxhWptzw8J1bQkABBv7tXSEShAV BbJb+uuvS5ili4Mzw8DbROebHV/GlGr2BcvgE0/iZTfTThaUGag8vXnL6pVykqavV9SA PXvrH0EvF+ZOovtu7s3KC5TU4XKgvoI4h0069RWXNGSWWqClplIc9UFkfPJNqBtSASk9 FIBTbpiim+ULWMz0lx6kwspv/My9OoqzqX3xQx4p4dzoPkadtfy/i5SLuBuWFT5L9isS ItG/XZbdEBtzWb52K60Be9NJY9QBneNNWebantYt8DmGmuWW/b4pZgbH2LODMUdfe7jj nykA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=xLXeVQqSP4v2uBmSTjD+1FV7S5rRKQgAQXei/dd+Ci0=; b=a5jDKnmlcZLaEsdOkMJU32PrGOXgspHz15+JZMaCQZsplyYNoNYkQTusmoxzQr1yYP jQAVIrZn9pUOJqw/DdqVNW/DqPS7YoG2LmomWoVlvbd1rFp3qbYJgHqXEDBSMPd6k9zA 6iJvcBu6nqmzokblJrM5qUMvrqYOR7gmUK80fGq9gY3k2afugp/xB7YjlO4e7Ch+UgLk 7CWezyQPMHglQPbbDMm6Cuw4nWPekOrKLXKSlt55ehItCaWV0n4XUMKOHjF5hSy7ik5Q SgWaE9/dKwiqPvHS50cKBIFsQvTaI58YFZ9YBrB954uqRuD7MxE05v026dfI3pbUaOLJ DiFw== X-Gm-Message-State: AMke39krMVXiBd/l4UpDbBOwFjEEKPxBij/tAJAWJmPnbCw1747ujD/f5onFhmmsFTy+IA== X-Received: by 10.55.17.10 with SMTP id b10mr16088788qkh.64.1486473142862; Tue, 07 Feb 2017 05:12:22 -0800 (PST) Original-Received: from [18.189.127.106] (dhcp-18-189-127-106.dyn.MIT.EDU. [18.189.127.106]) by smtp.gmail.com with ESMTPSA id c41sm3334161qtd.3.2017.02.07.05.12.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Feb 2017 05:12:22 -0800 (PST) In-Reply-To: <871svatqh0.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::242 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:212088 Archived-At: On 2017-02-07 02:22, Marcin Borkowski wrote: > 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.) I see, thanks. AFAICT, pdf-tools does not install a systel-level binary; it just compiles a C program as part of its installation procedure, and then calls it — but it does not try to expose that binary to the user. This means among other things that it doesn't need to create files outside of its installation folder, for example. My case is a bit different. The binary is just a bash wrapper around an Emacs Lisp program, so I don't have compilation-related issues; I do, however, want my users to be able to call the program easily, which probably means that I want to create binaries outside of my package's installation folder (which in turns has consequences on uninstallation behaviour: deleting the installation folder isn't enough). Cheers, Clément.