* bug#28345: 25.2.1: package-install-file and dynamic modules
@ 2017-09-04 12:26 Peking Duck
2017-09-24 11:08 ` Philipp Stephani
2021-07-04 14:44 ` Lars Ingebrigtsen
0 siblings, 2 replies; 6+ messages in thread
From: Peking Duck @ 2017-09-04 12:26 UTC (permalink / raw)
To: 28345
[-- 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 --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#28345: 25.2.1: package-install-file and dynamic modules
2017-09-04 12:26 bug#28345: 25.2.1: package-install-file and dynamic modules Peking Duck
@ 2017-09-24 11:08 ` Philipp Stephani
2017-09-24 23:12 ` John Wiegley
2021-07-04 14:44 ` Lars Ingebrigtsen
1 sibling, 1 reply; 6+ messages in thread
From: Philipp Stephani @ 2017-09-24 11:08 UTC (permalink / raw)
To: Peking Duck, 28345
[-- Attachment #1: Type: text/plain, Size: 357 bytes --]
Peking Duck <pekingducklabs@gmail.com> schrieb am Mo., 4. Sep. 2017 um
17:15 Uhr:
>
> One more thing related to dynamic modules: seems to me unload-feature
> doesn't support dynamic modules yet. Will this be fixed?
>
Only answering this one: Unloading dynamic libraries is generally quite
hairy. I don't think there are plans to support it at the moment.
[-- Attachment #2: Type: text/html, Size: 693 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#28345: 25.2.1: package-install-file and dynamic modules
2017-09-24 11:08 ` Philipp Stephani
@ 2017-09-24 23:12 ` John Wiegley
0 siblings, 0 replies; 6+ messages in thread
From: John Wiegley @ 2017-09-24 23:12 UTC (permalink / raw)
To: Philipp Stephani; +Cc: Peking Duck, 28345
>>>>> "PS" == Philipp Stephani <p.stephani2@gmail.com> writes:
PS> Only answering this one: Unloading dynamic libraries is generally quite
PS> hairy. I don't think there are plans to support it at the moment.
Yes, I'd be surprised in fact if this is ever supported, unless it becomes a
more common and useful thing to have.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#28345: 25.2.1: package-install-file and dynamic modules
2017-09-04 12:26 bug#28345: 25.2.1: package-install-file and dynamic modules Peking Duck
2017-09-24 11:08 ` Philipp Stephani
@ 2021-07-04 14:44 ` Lars Ingebrigtsen
2021-07-04 16:27 ` Eli Zaretskii
1 sibling, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-04 14:44 UTC (permalink / raw)
To: Peking Duck; +Cc: 28345
Peking Duck <pekingducklabs@gmail.com> writes:
> 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?
(I'm going through old bug reports that unfortunately got no response at
the time.)
I'm not quite sure what the status of including .so files in Emacs
packages is now -- anybody know? (.so files are architecture specific,
so I guess it's not something we do generally, but I guess people would
want to do it, anyway...)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#28345: 25.2.1: package-install-file and dynamic modules
2021-07-04 14:44 ` Lars Ingebrigtsen
@ 2021-07-04 16:27 ` Eli Zaretskii
2021-07-05 13:05 ` Lars Ingebrigtsen
0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2021-07-04 16:27 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: pekingducklabs, 28345
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Sun, 04 Jul 2021 16:44:57 +0200
> Cc: 28345@debbugs.gnu.org
>
> I'm not quite sure what the status of including .so files in Emacs
> packages is now -- anybody know? (.so files are architecture specific,
> so I guess it's not something we do generally, but I guess people would
> want to do it, anyway...)
Why not build the .so files as part of installing the package?
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#28345: 25.2.1: package-install-file and dynamic modules
2021-07-04 16:27 ` Eli Zaretskii
@ 2021-07-05 13:05 ` Lars Ingebrigtsen
0 siblings, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-05 13:05 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: pekingducklabs, 28345
Eli Zaretskii <eliz@gnu.org> writes:
>> I'm not quite sure what the status of including .so files in Emacs
>> packages is now -- anybody know? (.so files are architecture specific,
>> so I guess it's not something we do generally, but I guess people would
>> want to do it, anyway...)
>
> Why not build the .so files as part of installing the package?
I think that's the recommended way to do it, but then you need gcc etc
on the client machines. I can see how it'd be convenient for some
people to distribute pre-built .so packages for (say) a small homogenic
set of hosts.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-07-05 13:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-04 12:26 bug#28345: 25.2.1: package-install-file and dynamic modules Peking Duck
2017-09-24 11:08 ` 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
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).