Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
meta-nemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
meta-nemo
Commits
e46c3cd0
Commit
e46c3cd0
authored
Oct 31, 2016
by
Florent Revest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buteo-mtp: fixes undefined reference to libcontextkit-qt5 and simplify patches structure
parent
2a9a10e0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
76 additions
and
46 deletions
+76
-46
0001-Remove-dependency-to-SSU-and-tests.patch
...o/buteo-mtp/0001-Remove-dependency-to-SSU-and-tests.patch
+4
-38
0003-Fixes-some-dependencies-to-contextkit-bash-and-syste.patch
...ixes-some-dependencies-to-contextkit-bash-and-syste.patch
+70
-0
buteo-mtp_git.bb
recipes-nemomobile/buteo/buteo-mtp_git.bb
+2
-8
No files found.
recipes-nemomobile/buteo/buteo-mtp/0001-Remove-dependency-to-SSU-and-tests.patch
View file @
e46c3cd0
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 +02
00
Date:
Mon, 31 Oct 2016 23:28:15 +01
00
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
recipes-nemomobile/buteo/buteo-mtp/0003-Fixes-some-dependencies-to-contextkit-bash-and-syste.patch
0 → 100644
View file @
e46c3cd0
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
recipes-nemomobile/buteo/buteo-mtp_git.bb
View file @
e46c3cd0
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment