Configuration phase of tdesdk fails to detect Berkeley DB as installed under FreeBSD 13.2
#226
Open
opened 2 years ago by Lannig
·
8 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Basic information
Description
Fresh install of FreeBSD 13.2 on a old but 64-bit capable machine (HP/Compaq 8510p)
Tried to build/install Trinity 14.1 as per newly updated instructions at https://wiki.trinitydesktop.org/FreeBSD_Trinity_Installation_Instructions#Spread_ports_from_GIT_folder_to_.2Fusr.2Fports
It fails during the configuration phase of tdesdk-trinity-14.1.0 because Berkeley DB is not detected as installed although it actually is.
Trying to diagnose this further now, but the configuration process is a bit too hairy for me to find my way.
Steps to reproduce
Install FreeBSD 13.2-RELEASE amd64
Follow https://wiki.trinitydesktop.org/FreeBSD_Trinity_Installation_Instructions#Spread_ports_from_GIT_folder_to_.2Fusr.2Fports including all prerequisites (ports update, pkg manager configuration, packages to install)
Wait until the error comes up
Screenshots
Berkeley DB is installed:
Tried this patch to /usr/ports/devel/tdesdk-trinity/work/tdesdk-trinity_14.1.0/kbabel/kbabeldict/modules/dbsearchengine/ConfigureChecks.cmake, no luck.
Same error.
That one did the trick:
Same issue in tdevelop-trinity, same patch for /usr/ports/misc/tdevelop-trinity/work/tdevelop-trinity_14.1.0/ConfigureChecks.cmake
On my test machine with FreeBSD I have installed DB5. This explains why it works as expected. Thank you for your research and testing.
If multiple BDB versions are installed, an unwanted variant may be picked up.
I'm using
USE_DB_H_PATH
andBDB_LIBRARY
CMake variables for packaging,and force to pick up wanted BDB version for package builder.
For example, BDB major version is selected with
BDB_VER=18
, and tell it to CMake with-DUSE_DB_H_PATH:FILEPATH=db${BDB_VER}/db.h
and-DBDB_LIBRARY:FILEPATH=db-${DBD_VER}
Well, DB18 seems to come as default under FreeBSD 13.2. I haven't been given any choice when installing the package.
I assumed to adjust the detection so that it was from the latest version to the older –
db18 db5 db4
. I think it should be an acceptable way. What is your opinion?That would probably be the right course of action. In the meantime the problem can be circumvented by manually do a
pkg install db5