Closed tarsius closed 4 years ago
Thanks for the PR! Regarding the errors, I'll modify the way the SQLITE_* constants are generated. Seems like those in the error messages are only present in the newer sqlite3 but aren't needed by the Emacs module.
You are welcome and thanks!
With your latest commits and sqlite 3.27.2, which is the version on debian stable, I still get:
consts.c:247:73: error: ‘SQLITE_DBCONFIG_WRITABLE_SCHEMA’ undeclared (first use in this function); did you mean ‘SQLITE_DBCONFIG_ENABLE_FKEY’?
Ok fixed. Any SQLITE_* codes not in your local installation should not cause compilation error now.
Thanks! I can confirm that it works now.
I saw that the Makefile contains support for building a
package.el
-compatible package namedsqlite3-api
but think this should be available from Melpa so that third-party packages can actually start depending on this.Melpa gets a packages metadata from the elisp library that matches the name of the package. This repository contained no such library. Because the name of the dynamic module is
sqlite3-api.so
, we cannot usesqlite3-api.el
. Modules and libraries live in the same "namespace", which makes it possible torequire
both, so they cannot have conflicting names.I went with
sqlite3.el
, which means that the package ends up being namedsqlite3
, which I personally think is a better name thansqlite3-api
anyway. But if you don't want that, then you would have to renamesqlite3.el
tosqlite3-api.el
andsqlite3-api.c
to something like e.g.sqlite3-api-module.c
.If you merge this, then I can take care of adding the module to Melpa (though you might have to take care of the review feedback). For now I have used this recipe for local testing:
The wrapper library takes care of building the module if necessary (unlike your old attempt in the
dummy-el
branch).Please note that this is currently used the
melpa-alt
, which does not branch of the latestmaster
but from the commit before 781f915cd4ebbb5941b290aed7109c767e93f5d2. That commit breaks building for me, resulting in these errors: