Re: [PATCH] Build with external SQLite

Shigio YAMAGUCHI <[email protected]> Tue, 20 Jul 2021 08:56:04 +0900
Newsgroups gmane.comp.gnu.global.bugs
Message-ID <CADJmJYoXVW_NROr6yNaUcRsYDT4bCpjx=uP0g0kTSz4V27=-tw@mail.gmail.com>
Hello,
It works perfectly.
The next version will include the code.
Thank you for the patch!


$ ./configure
$ make
$ gtags/gtags --version
gtags (Global) 6.6.7
Powered by Berkeley DB 1.85.                            <=== nouse
...

$ ./configure --with-sqlite3
$ make
$ gtags/gtags --version
gtags (Global) 6.6.7
Powered by Berkeley DB 1.85 and SQLite3 3.8.7.1.        <=== use the
embedded library
...

$ ./configure --with-sqlite3=/opt/local
$ make
$ gtags/gtags --version
gtags (Global) 6.6.7
Powered by Berkeley DB 1.85 and SQLite3 3.35.5.         <=== use an
external library
...

Regards,
Shigio

On Mon, Jul 19, 2021 at 5:24 PM Adrian Ho <[email protected]> wrote:
>
> Hi!
>
> I help out with Homebrew maintenance on occasion, and a Homebrew user just added SQLite support to the `global` formula: https://github.com/Homebrew/homebrew-core/pull/81424
>
> Because Homebrew generally doesn't use vendored dependencies, and especially since the SQLite version embedded in `global` is very old, I devised a patch that allows building with either vendored or external SQLite, and it passes Homebrew's own tests cleanly. The patch can be found here: https://raw.githubusercontent.com/Homebrew/formula-patches/7f944083c7ef9bce55d9e627f5f20bbd5a079b93/global/6.6.7-external-sqlite.patch
>
> Hope that helps assuage concerns from folks who might not be comfortable using code that has been updated many times since.
>
> Best Regards,
> Adrian
>
>


-- 
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB