From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Peking Duck Newsgroups: gmane.emacs.bugs Subject: bug#28345: 25.2.1: package-install-file and dynamic modules Date: Mon, 4 Sep 2017 20:26:43 +0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113de80636a38105585c3963" X-Trace: blaine.gmane.org 1504538170 17056 195.159.176.226 (4 Sep 2017 15:16:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Sep 2017 15:16:10 +0000 (UTC) To: 28345@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 04 17:15:56 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1dot68-0002t5-Pm for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Sep 2017 17:15:37 +0200 Original-Received: from localhost ([::1]:54395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dot6F-0004Dq-GS for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Sep 2017 11:15:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dot5T-00041K-LC for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 11:15:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dot4c-0005cO-DC for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 11:14:55 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40356) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dot4c-0005c5-6Y for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 11:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dot4c-0005L5-0Q for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 11:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Peking Duck Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Sep 2017 15:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28345 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150453801220461 (code B ref -1); Mon, 04 Sep 2017 15:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Sep 2017 15:13:32 +0000 Original-Received: from localhost ([127.0.0.1]:49035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dot48-0005Jw-Ef for submit@debbugs.gnu.org; Mon, 04 Sep 2017 11:13:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doqT6-0007fi-FD for submit@debbugs.gnu.org; Mon, 04 Sep 2017 08:27:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doqSw-0005KG-SB for submit@debbugs.gnu.org; Mon, 04 Sep 2017 08:27:03 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39263) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1doqSw-0005K6-OQ for submit@debbugs.gnu.org; Mon, 04 Sep 2017 08:26:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doqSr-0005P2-R2 for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 08:26:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doqSk-0005Bh-2l for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 08:26:53 -0400 Original-Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]:36232) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1doqSj-0005AU-Tt for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 08:26:46 -0400 Original-Received: by mail-oi0-x22f.google.com with SMTP id t75so2635361oie.3 for ; Mon, 04 Sep 2017 05:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bYjRX9m4PPbZVRClgcUYKLvs/g1X+vr2wIcC+WU7g8Q=; b=Nj7enJiZU/XhB6qILfmCSidGpzc0WwK7CUfyxwjgBdKm3G87roPUudOEgThi9NVPCO UeYJZK/EesHEUNfPTncJfuGGZxA/YM87wDMgVXOrLQUu/wqFxR6pNr1qzhzIXZqnDEp7 UNC6JnOsEitBe1wPf1TZuyC452WV+6XzGMMmSulaOKss0h88Qw8kIbF4kesqw1Ab+YpM AW7GowsQeIscj2qkbQFIOxWVZKqWVmBgo5njlqOzKaWHD/r+JDLD3Yjv6prI/BXqcVJd FsKi23nEXy+hnmcuXRpxV9xs0O2BJ6u9wAMAIIb7/tXdZxHK3UlataGsEByzecLnR5va L/sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bYjRX9m4PPbZVRClgcUYKLvs/g1X+vr2wIcC+WU7g8Q=; b=Ybhg/GCL0DL3l0TuDUTNfQ7bUzaJYTtJTThusUu2kajPfKnsH8gKxs74AbCZhPRQU6 DggZXbECjObHlqh+6TMx0i7PqJK6SYZxim2vZKXkUp9LIGL6scqbmKCyxgu7VcECmK4M sqgXhPRb3I17FthZRZ1M8xWFjc6SOvuY65AC3UYRt4hpXwa8GysfIZA8p5wpoWQj5oZb zzYO/ZdnOIILoTdJnDCDYndkhEH7V8IEm0bTgh1M4CRhaCm+JgDWyyJEN6K04rAM6myL DezFDufRTjaYPkeHb0Vy882hr/8O6+gGOTqnE92TYpuaYjcNGKbn5zlO4yZGPrRY5xja 0V+Q== X-Gm-Message-State: AHPjjUjz592WCnZ9zakBtYDDafcAUmsZyD34oOghosA4k8ubYOXmpro8 dEmRkz9An6KiVkVq+oKD/8rCGhFBHvnM X-Google-Smtp-Source: ADKCNb6WkgP9bMbf0j9vtsTobbBClQ0ABAKNSF1DsNMte3Pmr6LH+PGg0KiAaTn3z5I5rZTxSI8zIrqF4Iltexkj768= X-Received: by 10.202.253.210 with SMTP id b201mr477618oii.20.1504528003669; Mon, 04 Sep 2017 05:26:43 -0700 (PDT) Original-Received: by 10.157.83.1 with HTTP; Mon, 4 Sep 2017 05:26:43 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 04 Sep 2017 11:13:31 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136580 Archived-At: --001a113de80636a38105585c3963 Content-Type: text/plain; charset="UTF-8" Hi, I wrote a dynamic module and am trying to use package.el to install it. I followed the instructions in the Emacs Lisp Manual and created a tar archive. This tar archive contains: sqlite3-api-0.1/ sqlite3-api-0.1/sqlite3-api-pkg.el sqlite3-api-0.1/sqlite3-api.so I then evaluated (package-install-file "~/src/emacs-sqlite3-api/sqlite3-api-0.1.tar") and it gave me an error: (error "sqlite3-api.so:0:0: error: scan-error: (Containing expression ends prematurely 47501 47502)\ ") >From the backtrace, it's autoload-generate-file-autoloads in autoload.el that caused it. Seems to me Emacs was trying to parse the .so looking for autoloads? It's on Linux (CentOS7). Interestingly I tried this on macOS later and this time it worked perfectly. Is package.el ready for dynamic modules yet? One more thing related to dynamic modules: seems to me unload-feature doesn't support dynamic modules yet. Will this be fixed? Thanks --001a113de80636a38105585c3963 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I wrote a dynamic module and am trying to= use package.el to install it. I followed the instructions in the Emacs Lis= p Manual and created a tar archive. This tar archive contains:
sqlite3-api-0.1/
sqlite3-api-0.1/sqlite3-api-pk= g.el
sqlite3-api-0.1/sqlite3-api.so

I then evaluated

(package-install-file &quo= t;~/src/emacs-sqlite3-api/sqlite3-api-0.1.tar")

and it gave me an error:

(error "sqlite3-a= pi.so:0:0: error: scan-error: (Containing expression ends prematurely 47501= 47502)\
")

From the backtrac= e, it's=C2=A0=C2=A0autoload-generate-file-autoloads in autoload.el that= caused it. Seems to me Emacs was trying to parse the .so looking for autol= oads?=C2=A0

It's on Linux (CentOS7). Interesti= ngly I tried this on macOS later and this time it worked perfectly.=C2=A0

Is package.el ready for dynamic modules yet?
<= div>
One more thing related to dynamic modules: seems to me u= nload-feature doesn't support dynamic modules yet. Will this be fixed?<= /div>

Thanks
--001a113de80636a38105585c3963--