From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Re: How to ship native modules? Date: Tue, 21 Feb 2017 23:48:37 +0800 Message-ID: References: <83a89gq3us.fsf@gnu.org> <8360k4q0yx.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f403045dd8c465911705490c5008 X-Trace: blaine.gmane.org 1487696076 4975 195.159.176.226 (21 Feb 2017 16:54:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 21 Feb 2017 16:54:36 +0000 (UTC) Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 21 17:54:28 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 1cgDhn-0000So-4K for ged-emacs-devel@m.gmane.org; Tue, 21 Feb 2017 17:54:23 +0100 Original-Received: from localhost ([::1]:46893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgDhs-0000QL-Ki for ged-emacs-devel@m.gmane.org; Tue, 21 Feb 2017 11:54:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgCgG-0004gH-6u for emacs-devel@gnu.org; Tue, 21 Feb 2017 10:48:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgCgF-0006bF-4u for emacs-devel@gnu.org; Tue, 21 Feb 2017 10:48:44 -0500 Original-Received: from mail-ua0-x229.google.com ([2607:f8b0:400c:c08::229]:35098) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgCgE-0006b2-Vm for emacs-devel@gnu.org; Tue, 21 Feb 2017 10:48:43 -0500 Original-Received: by mail-ua0-x229.google.com with SMTP id 40so13044809uau.2 for ; Tue, 21 Feb 2017 07:48:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ZM0yZ1WBZ5Tt2ld/Q4BOuAy7poQ7T9u71tKnSO8oycw=; b=vgNoajQiemNMbD7ndbM6X0WMOaZnU3IMhsaX0JTz+JCjsCHWG/grf8MfX7manjVzNx z6zvKVuEqCeVESlbwquGhdbnHbGgplCfT9VZBiJkDNNrzDuZFVBxk8miZneCboNajSDe 120TzH91k5+rdUodswnMrqJCavGe/BTm2SAYJEVq7obG5V/8ZBXt3bRDM4NikMSoeVk+ FbvYDzX/xo7MfPV/RMGspLZ3l7hwfKwsI3Xxu3p0pNr57Z8sNWq/t5inzKUE9JRDZQ0k KBsK7B//5uXikpYVvO18JriNfLDzK4b5tVYtWVCShqnRQAQv6EokF39bzeiNM0g/DgMK MzTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ZM0yZ1WBZ5Tt2ld/Q4BOuAy7poQ7T9u71tKnSO8oycw=; b=J/30sqH+n+TYiCj0hBuYBMPhMm6FwkNolIjzDGo4Gwv78YBTAD0O8iBHodlFuEPEuC M+4IEImOm45BvVZt1RvY4RREzrtf/H1vTpqI2xBKPKqupIALYdAiOCmgj6EdSAQ4wDul 1//ZCEtESSw7jL4dyZSJV5Iq29VZdLu8mIyg4aju4qccn0gd/40CWF1lGbLlI35S+2cT EkBfMkoMCtzbxbpDlTogfog7tTrt98NG04G1Nc5oiTjzekxahRlhq8HXRflWgIHEdCiR j7gdi58p7JShbRnJeUiGs/M++3ea7JMPgk36omd2QDLbTMrcU2KTToqZWyxL5lWPOoZW kdYA== X-Gm-Message-State: AMke39kI5FQpqc0Q5/DspOvuIGOEcr/aODzP9uk+h16TjHdy8vSir96WmaUAX23TpLboj77CiPS0OYiA2ILoyg== X-Received: by 10.176.84.141 with SMTP id p13mr1248603uaa.136.1487692120818; Tue, 21 Feb 2017 07:48:40 -0800 (PST) Original-Received: by 10.103.119.5 with HTTP; Tue, 21 Feb 2017 07:48:37 -0800 (PST) Original-Received: by 10.103.119.5 with HTTP; Tue, 21 Feb 2017 07:48:37 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c08::229 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:212524 Archived-At: --f403045dd8c465911705490c5008 Content-Type: text/plain; charset=UTF-8 On 21 Feb 2017 11:24 PM, "Stefan Monnier" wrote: > You can provide a small Makefile that the user will have to invoke in > order to compile the C source. The user doesn't even have to invoke it: package-install can invoke it (indirectly) by having something akin to (eval-when-compile (shell-command "make")) in one of the Elisp files. I thought ELPA packages could only contain el files? (granted, even if that is the case, I could always encode the C code in elisp code, but that's a bit ugly) --f403045dd8c465911705490c5008 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 21 Feb 2017 11:24 PM, "Stefan Monnier" <monnier@iro.umontreal.ca> wrote:
> Y= ou can provide a small Makefile that the user will have to invoke in
> order to compile the C source.

The user doesn't even have to invoke it: package-install can invo= ke it
(indirectly) by having something akin to

=C2=A0 =C2=A0 (eval-when-compile (shell-command "make"))

in one of the Elisp files.
=
I thought ELPA packages could only contain el f= iles? (granted, even if that is the case, I could always encode the C code = in elisp code, but that's a bit ugly)=C2=A0
<= blockquote class=3D"quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc = solid;padding-left:1ex">=C2=A0
--f403045dd8c465911705490c5008--