When installed, cannot locate dbschema.sql

Bug #1152253 reported by Olivier Tilloy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
U1DB Qt/ QML
Fix Committed
High
Kevin Wright

Bug Description

(observed with rev 38 of lp:u1db-qt)

Steps to reproduce:
 1) Build locally and install system-wide:
    cmake -DCMAKE_INSTALL_PREFIX=/usr .
    make
    sudo make install

 2) Open the following example in qmlscene:

    import U1db 1.0 as U1db

    U1db.Database {
        path: "test"
    }

Expected result: no error
Current result: u1db: "Failed to read internal schema: FileError 5"

Related branches

Revision history for this message
Olivier Tilloy (osomon) wrote :

It looks like Database::initializeIfNeeded(…) fails to locate dbschema.sql, which should probably be embedded as qrc.

Revision history for this message
Kevin Wright (kevin-wright-1) wrote :

I've added dbschema.sql as a resource and modified the database code to make use of it. Waiting to be merged at the time of writing.

Changed in u1db-qt:
assignee: nobody → Kevin Wright (kevin-wright-1)
importance: Undecided → High
status: New → In Progress
Cris Dywan (kalikiana)
Changed in u1db-qt:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.