Commit e46c3cd0 authored by Florent Revest's avatar Florent Revest

buteo-mtp: fixes undefined reference to libcontextkit-qt5 and simplify patches structure

parent 2a9a10e0
From 94c9d8c04f6f2a3c7702a6ff75acd3ba6d5232b3 Mon Sep 17 00:00:00 2001 From e343830bf20e18133d2dceb6d660486328bfff35 Mon Sep 17 00:00:00 2001
From: Florent Revest <revestflo@gmail.com> From: Florent Revest <revestflo@gmail.com>
Date: Sun, 23 Oct 2016 23:23:37 +0200 Date: Mon, 31 Oct 2016 23:28:15 +0100
Subject: [PATCH] Remove dependency to SSU and tests Subject: [PATCH] Remove dependency to SSU and tests
--- ---
libmeegomtp.pro | 29 ---------------------- libmeegomtp.pro | 29 ----------------------
mts/common.pri | 2 +-
mts/mts.pro | 2 -- mts/mts.pro | 2 --
mts/platform/deviceinfo/deviceinfoprovider.cpp | 7 +----- mts/platform/deviceinfo/deviceinfoprovider.cpp | 7 +-----
.../storage/fsstorageplugin/fsstorageplugin.pro | 4 +-- .../storage/fsstorageplugin/fsstorageplugin.pro | 4 +--
service/service.pro | 2 +- 4 files changed, 3 insertions(+), 39 deletions(-)
service/start-mtp.sh | 2 +-
7 files changed, 6 insertions(+), 42 deletions(-)
diff --git a/libmeegomtp.pro b/libmeegomtp.pro diff --git a/libmeegomtp.pro b/libmeegomtp.pro
index db788fb..0b2310d 100644 index db788fb..0b2310d 100644
...@@ -69,14 +66,6 @@ index db788fb..0b2310d 100644 ...@@ -69,14 +66,6 @@ index db788fb..0b2310d 100644
-citests.path = /opt/tests/buteo-mtp/test-definition/ -citests.path = /opt/tests/buteo-mtp/test-definition/
-citests.files = tests.xml -citests.files = tests.xml
-INSTALLS += citests -INSTALLS += citests
diff --git a/mts/common.pri b/mts/common.pri
index d1f600c..8364d39 100644
--- a/mts/common.pri
+++ b/mts/common.pri
@@ -1,2 +1,2 @@
CONFIG += link_pkgconfig
-PKGCONFIG += contextkit-statefs
+PKGCONFIG += contextkit-statefs contextsubscriber-1.0 contextsubscriber-1.0 contextsubscriber-1.0
diff --git a/mts/mts.pro b/mts/mts.pro diff --git a/mts/mts.pro b/mts/mts.pro
index 765dd08..09268dd 100644 index 765dd08..09268dd 100644
--- a/mts/mts.pro --- a/mts/mts.pro
...@@ -144,29 +133,6 @@ index 3f22edf..218a398 100644 ...@@ -144,29 +133,6 @@ index 3f22edf..218a398 100644
#install #install
target.path = /usr/lib/mtp target.path = /usr/lib/mtp
diff --git a/service/service.pro b/service/service.pro
index baf8c67..86688b6 100644
--- a/service/service.pro
+++ b/service/service.pro
@@ -11,7 +11,7 @@ LIBS += -L../mts -lmeegomtp
QT -= gui
CONFIG += link_pkgconfig
equals(QT_MAJOR_VERSION, 4): PKGCONFIG += buteosyncfw
-equals(QT_MAJOR_VERSION, 5): PKGCONFIG += buteosyncfw5
+equals(QT_MAJOR_VERSION, 5): PKGCONFIG += buteosyncfw5 contextsubscriber-1.0 contextsubscriber-1.0 contextsubscriber-1.0
SOURCES += service.cpp
diff --git a/service/start-mtp.sh b/service/start-mtp.sh
index c20842c..f4b151a 100755
--- a/service/start-mtp.sh
+++ b/service/start-mtp.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
SERVICE=/usr/lib/mtp/mtp_service
STORAGE_PATH=$HOME
-- --
2.9.3 2.10.1
From 4c01a5d64462d64175c2e2e117f9b0c677779dab Mon Sep 17 00:00:00 2001
From: Florent Revest <revestflo@gmail.com>
Date: Mon, 31 Oct 2016 23:35:17 +0100
Subject: [PATCH] Fixes some dependencies to contextkit, bash and systemd
niceness
---
init/systemd/buteo-mtp.service | 1 -
mts/common.pri | 2 +-
mts/mts.pro | 2 ++
service/service.pro | 2 +-
service/start-mtp.sh | 2 +-
5 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/init/systemd/buteo-mtp.service b/init/systemd/buteo-mtp.service
index ed4e5b4..563254e 100644
--- a/init/systemd/buteo-mtp.service
+++ b/init/systemd/buteo-mtp.service
@@ -5,4 +5,3 @@ Description=MTP service
ExecStart=/usr/lib/mtp/start-mtp.sh
Restart=always
RestartSec=1
-Nice=-10
diff --git a/mts/common.pri b/mts/common.pri
index d1f600c..de2187f 100644
--- a/mts/common.pri
+++ b/mts/common.pri
@@ -1,2 +1,2 @@
CONFIG += link_pkgconfig
-PKGCONFIG += contextkit-statefs
+PKGCONFIG += contextkit-statefs contextsubscriber-1.0
diff --git a/mts/mts.pro b/mts/mts.pro
index 765dd08..c5051e5 100644
--- a/mts/mts.pro
+++ b/mts/mts.pro
@@ -14,6 +14,8 @@ equals(QT_MAJOR_VERSION, 5): PKGCONFIG += Qt5SystemInfo buteosyncfw5
#QMAKE_CXXFLAGS += -O0 -Werror
+LIBS += -lcontextkit-statefs-qt5
+
TEMPLATE = lib
TARGET = meegomtp
DEPENDPATH += . \
diff --git a/service/service.pro b/service/service.pro
index baf8c67..29e777a 100644
--- a/service/service.pro
+++ b/service/service.pro
@@ -11,7 +11,7 @@ LIBS += -L../mts -lmeegomtp
QT -= gui
CONFIG += link_pkgconfig
equals(QT_MAJOR_VERSION, 4): PKGCONFIG += buteosyncfw
-equals(QT_MAJOR_VERSION, 5): PKGCONFIG += buteosyncfw5
+equals(QT_MAJOR_VERSION, 5): PKGCONFIG += buteosyncfw5 contextsubscriber-1.0
SOURCES += service.cpp
diff --git a/service/start-mtp.sh b/service/start-mtp.sh
index c20842c..f4b151a 100755
--- a/service/start-mtp.sh
+++ b/service/start-mtp.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
SERVICE=/usr/lib/mtp/mtp_service
STORAGE_PATH=$HOME
--
2.10.1
...@@ -5,7 +5,8 @@ LIC_FILES_CHKSUM = "file://mtpserver/mtpserver.cpp;beginline=1;endline=30;md5=a2 ...@@ -5,7 +5,8 @@ LIC_FILES_CHKSUM = "file://mtpserver/mtpserver.cpp;beginline=1;endline=30;md5=a2
SRC_URI = "git://git.merproject.org/mer-core/buteo-mtp.git;protocol=https \ SRC_URI = "git://git.merproject.org/mer-core/buteo-mtp.git;protocol=https \
file://0001-Remove-dependency-to-SSU-and-tests.patch \ file://0001-Remove-dependency-to-SSU-and-tests.patch \
file://0002-Start-buteo-mtp-as-ceres-by-default.patch" file://0002-Start-buteo-mtp-as-ceres-by-default.patch \
file://0003-Fixes-some-dependencies-to-contextkit-bash-and-syste.patch"
SRCREV = "dd37c4f61e96bc25dd95d9661310e5326e31b593" SRCREV = "dd37c4f61e96bc25dd95d9661310e5326e31b593"
PR = "r1" PR = "r1"
PV = "+git${SRCREV}" PV = "+git${SRCREV}"
...@@ -14,13 +15,6 @@ inherit qmake5 ...@@ -14,13 +15,6 @@ inherit qmake5
EXTRA_QMAKEVARS_PRE += "QMAKE_CFLAGS_ISYSTEM=" EXTRA_QMAKEVARS_PRE += "QMAKE_CFLAGS_ISYSTEM="
do_configure_prepend() {
sed -i "s@contextkit-statefs@contextkit-statefs contextsubscriber-1.0@" ${S}/mts/common.pri
sed -i "s@buteosyncfw5@buteosyncfw5 contextsubscriber-1.0@" ${S}/service/service.pro
sed -i "s@/bin/bash@/bin/sh@" ${S}/service/start-mtp.sh
sed -i "/Nice=-10/d" ${S}/init/systemd/buteo-mtp.service
}
do_install_append() { do_install_append() {
mkdir -p ${D}/lib/systemd/system/local-fs.target.wants mkdir -p ${D}/lib/systemd/system/local-fs.target.wants
ln -s ../dev-mtp.mount ${D}/lib/systemd/system/local-fs.target.wants ln -s ../dev-mtp.mount ${D}/lib/systemd/system/local-fs.target.wants
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment