msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.31k stars 1.23k forks source link

Add newer (AGPLed) Berkeley-DB #12995

Open GitMensch opened 2 years ago

GitMensch commented 2 years ago

Package name

db-agpl

Brief description of package

We already have a db package which includes the very last version of BDB under Sleepycat license.

The people that do want the latest AGPLed version (I guess that's 18.1.40) currently need to build it on their own; providing a package would be much more useful. As the license is very different which has a lot of relevance to ship distributed copies (not a problem for MSYS2 itself) it should definitely become a separate name, if possible it should not conflict with mingw-w64-db; I suggest to do this by having the header installed in a subfolder and create a db18.h that includes it, and also only install the library versioned as libdb-18.dll.

URL for package's homepage

https://www.oracle.com/technetwork/database/database-technologies/berkeleydb/overview/index.html

Provide a basic test case to validate the package's functionality.

No response

MINGW environments where you need the package

Are you willing to submit a PR?

I'd try to copy the db one and go with the naming above (suggestions welcomed)

Biswa96 commented 2 years ago

Do you know how the version scheme works for that repository? The official download page only mentions 18.1.40 version. The mingw-w64-db is 6.0.19 but the ArchLinux one is 5.3.28.

GitMensch commented 2 years ago

I know that 6.0.20 was the first version that was AGPLed, but many mirrors like https://github.com/berkeleydb/libdb use older versions.

Converning the version scheme there was an "internal" and an "external" version (likely because the way the version identifiers are build), for example

Berkeley DB 11g Release 2, library version 11.2.5.3.21

is "version 5.3.21", the 6.0.19 provided by mys2 is "Berkeley DB 12a" for pkgver of a new port I'd go with the "main number", so currently 18.1.40.

Not sure if that answers what you're looking for...