Project

General

Profile

Actions

Bug #3771

closed

osmo-msc Debian package does not depend on libdbd-sqlite3

Added by osmith about 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
01/29/2019
Due date:
% Done:

100%

Spec Reference:

Description

Therefore it fails to start up with:

<0009> db.c:621 Failed to create database connection to sqlite3 db 'sms.db'; Is the sqlite3 database driver for libdbi installed on this system?
DB: Failed to init database: sms.db

Found this while fixing #3767.


Related issues

Related to Cellular Network Infrastructure - Bug #3767: Most ttcn3-*-test-latest jenkins jobs are failingResolvedosmith01/24/2019

Actions
Actions #1

Updated by osmith about 5 years ago

  • Related to Bug #3767: Most ttcn3-*-test-latest jenkins jobs are failing added
Actions #2

Updated by pespin about 5 years ago

I think it is expected that it's not installed by default, since the point of using libdbd there (anyway will be removed at some point afaik) is that you can use whatever backend you prefer, so you should not force installation of specific libdbd-sqlite3. The error message is detailed enough for users to understand the specific backend is missing.

I think we can close this issue.

Actions #3

Updated by osmith about 5 years ago

pespin wrote:

I think it is expected that it's not installed by default, since the point of using libdbd there (anyway will be removed at some point afaik) is that you can use whatever backend you prefer, so you should not force installation of specific libdbd-sqlite3.

I agree with you, that if it was possible to choose the backend, then we should not force installing libbd-sqlite3. However, looking at the code, sqlite3 is hardcoded. Users would need to patch db.c and recompile it to use another backend. So if the only possible way to use the binary package of osmo-msc is with libdbd-sqlite3 (as it is now), then it should be a dependency in my opinion.

https://git.osmocom.org/osmo-msc/tree/src/libmsc/db.c?id=ce9e1f664ed752dd99c83b4024ce81d685a79215#n614

Actions #4

Updated by laforge about 5 years ago

  • Assignee changed from 4368 to osmith

I agree with osmith. We require sqlite3, and until we remove the libdbd dependency altogether (no more internal smsc), we should fix the dependencies accordingly.

Actions #5

Updated by osmith about 5 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 90
Actions #6

Updated by osmith about 5 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)