-
-
Notifications
You must be signed in to change notification settings - Fork 37k
Add structured version info for dbm.ndbm #157480
Copy link
Copy link
Closed
Labels
3.16new features, bugs and security fixesnew features, bugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement
Description
Activity
Metadata
Metadata
Assignees
Labels
3.16new features, bugs and security fixesnew features, bugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement
Projects
- StatusShow more project fieldsDone
Feature or enhancement
dbm.ndbmcan be built with GDBM's compatibility interface, with Berkeley DB, or with a classic NDBM library, and only exposeslibrary, the name of the implementation. No version information is available, andlibraryis'GNU gdbm'even for a classic NDBM library, because theUSE_NDBMbuild assumes GDBM.The library used by
dbm.ndbmmay differ from the one used bydbm.gnu(different builds of GDBM, or Berkeley DB), sodbm.ndbmneeds its own constants, named after the library it was built with:libraryis'GNU gdbm':GDBM_VERSION_INFO,gdbm_version_infoandgdbm_version, as indbm.gnu(Add structured version info for dbm.gnu #157478).libraryis'Berkeley DB':DB_VERSIONandDB_VERSION_INFOfor the build-time version (DB_VERSION_STRING,DB_VERSION_MAJOR/MINOR/PATCH),db_versionanddb_version_infofor the runtime version (db_version()).libraryshould be'ndbm'.Linked PRs