all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peking Duck <pekingducklabs@gmail.com>
To: 28345@debbugs.gnu.org
Subject: bug#28345: 25.2.1: package-install-file and dynamic modules
Date: Mon, 4 Sep 2017 20:26:43 +0800	[thread overview]
Message-ID: <CAN+BrVpg5sA0UvcO54sLzNhec7igsqzFJ0V6raenoVLfbahG=A@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 932 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1308 bytes --]

             reply	other threads:[~2017-09-04 12:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-04 12:26 Peking Duck [this message]
2017-09-24 11:08 ` bug#28345: 25.2.1: package-install-file and dynamic modules Philipp Stephani
2017-09-24 23:12   ` John Wiegley
2021-07-04 14:44 ` Lars Ingebrigtsen
2021-07-04 16:27   ` Eli Zaretskii
2021-07-05 13:05     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN+BrVpg5sA0UvcO54sLzNhec7igsqzFJ0V6raenoVLfbahG=A@mail.gmail.com' \
    --to=pekingducklabs@gmail.com \
    --cc=28345@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.