Berkeley-db: Added minimal external detection#27752
Berkeley-db: Added minimal external detection#27752bernhardkaindl merged 1 commit intospack:developfrom
Conversation
|
@spackbot re-run pipeline |
|
I've started that pipeline for you! |
On all Debian- and Ubuntu-based distros, dpkg -S db_load
db-util: /usr/bin/db_load
db-util: /usr/share/man/man1/db_load.1.gzIt has no dependency on Note: libdb-dev is just an empty virtual package which depends on e.g. libdb5.3-dev, which provides the development library and headers. To know that the db library is installed, you'd have to call the compiler to build a test program. Also: In case some distro supports different versions of Berkely DB, the version of the |
bernhardkaindl
left a comment
There was a problem hiding this comment.
Ok, as said: It will only work when the dev/devel package of the libdb is also installed.
It's not perfect, but perfection is the enemy of the good.
As it does not have to work always (as it's for developers), so it's ok and a first step, and can help a lot like in the case which happened to you, so I approve.
I was trying to install software on a cray that was experiencing timeouts trying to download this dependency's source and determined there was already a version installed on the system.
This PR adds minimal detection of the external package and assumes it is sufficient to simply check for
db_load.It has been manually tested on one each of
linux-rhel7-cascadelakeandcray-rhel8-zen2.