libopie2: Enable SQL PIM backend.
authorPaul Sokolovsky <pmiscml@gmail.com>
Mon, 15 Jan 2007 03:37:55 +0000 (03:37 +0000)
committerPaul Sokolovsky <pmiscml@gmail.com>
Mon, 15 Jan 2007 03:37:55 +0000 (03:37 +0000)
* Let users store their data reliably. XML backend is still used by default,
user must activate SQLite in config files (see OPIE wiki).
* Regarding concerns due to which is wasn't enabled before: "too large for 16MB
flash devices" - such devices welcome to disable-override it; "no sync" - apparently,
no sync with SQLite backend active, but XML is till by default.
* SQLite backend and opie-pimconvert tested to work OK on hx4700 (on small dataset
though, more tetsing pending). Suprising;y, I had rather weird issues with sqlite3
on qemuarm.

packages/libopie/libopie2.inc
packages/libopie/libopie2_1.2.2.bb
packages/libopie/libopie2_cvs.bb

index 17ac4e2..1e0d4f1 100644 (file)
@@ -19,8 +19,12 @@ EXTRA_QMAKEVARS_POST += 'DEFINES+=OPIE_NEW_MALLOC \
                        DEFINES+=OPIE_NO_ERASE_RECT_HACKFIX \
                        LIBS+=-L${S} LIBS+="-Wl,-rpath-link,${S}"'
 
-#NOTE: We no longer enable the sqlite PIM backend here, since a) using it means no sync and b) it's too large for 16MB images
-EXTRA_QMAKEVARS_PRE += 'ENABLE_SQL_PIM_BACKEND=n'
+ENABLE_SQL_PIM_BACKEND = "y"
+# NOTE: Machines with too little amount of flash may want to disable SQL backend support
+# (known not to fit in 16MB). Also, XML backend is still used by default, as SQL doesn't
+# support sync yet.
+#ENABLE_SQL_PIM_BACKEND_smallmachine = "n"
+EXTRA_QMAKEVARS_PRE += 'ENABLE_SQL_PIM_BACKEND=${ENABLE_SQL_PIM_BACKEND}'
 
 MODULES = "opiecore opiedb opiemm opienet opiepim opiesecurity opieui opiebluez"
 LIBS    = "core2    db2    mm2    net2    pim2    security2    ui2 bluez2"
index 8fcc2fb..1bef43c 100644 (file)
@@ -1,5 +1,5 @@
 require ${PN}.inc
-
+PR = "r1"
 
 SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/libopie2 \
            file://include.pro \
index d8385ce..1635a5b 100644 (file)
@@ -1,7 +1,7 @@
 require ${PN}.inc
 
 PV = "1.2.2+cvs${SRCDATE}"
-PR = "r2"
+PR = "r3"
 
 DEFAULT_PREFERENCE = "-1"