From 9a1e0758ae7c5afe5e530961f1ed25992d7b76ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Sun, 6 Sep 2015 00:24:29 +0200 Subject: [PATCH] qtbase-native_git: do not write full path in command-line comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit avoid false positives triggered by cmake-extra-sanity Signed-off-by: Andreas Müller --- extends-meta-qt5/qtbase-native_git.bbappend | 11 ++++++ ...pare-commandline-string-manipulation.patch | 35 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 extends-meta-qt5/qtbase/0002-qdbusxml2cpp-prepare-commandline-string-manipulation.patch diff --git a/extends-meta-qt5/qtbase-native_git.bbappend b/extends-meta-qt5/qtbase-native_git.bbappend index 1b334184..3fce95f8 100644 --- a/extends-meta-qt5/qtbase-native_git.bbappend +++ b/extends-meta-qt5/qtbase-native_git.bbappend @@ -1,3 +1,14 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" + +# avoid that our sanity check complains about sysroot in created comments +SRC_URI += "file://0002-qdbusxml2cpp-prepare-commandline-string-manipulation.patch" + +do_configure_append() { + # strCmdLine.replace(QString("STRING_FULL_PATH"), QString("STRING_PATH")); + sed -i 's:STRING_FULL_PATH:${TMPDIR}:g' ${S}/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp + sed -i 's:STRING_PATH::g' ${S}/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp +} + # required for kjsembedded EXTRA_OECONF += "-gui" diff --git a/extends-meta-qt5/qtbase/0002-qdbusxml2cpp-prepare-commandline-string-manipulation.patch b/extends-meta-qt5/qtbase/0002-qdbusxml2cpp-prepare-commandline-string-manipulation.patch new file mode 100644 index 00000000..97614fbe --- /dev/null +++ b/extends-meta-qt5/qtbase/0002-qdbusxml2cpp-prepare-commandline-string-manipulation.patch @@ -0,0 +1,35 @@ +From cf88c25f97e7d6a39ca8090369f1654902229399 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Sat, 5 Sep 2015 17:53:22 +0200 +Subject: [PATCH] qdbusxml2cpp: prepare commandline string manipulation +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Andreas Müller +--- + src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp b/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp +index 76401da..3a712d2 100644 +--- a/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp ++++ b/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp +@@ -289,9 +289,11 @@ static QString moc(const QString &name) + + static QTextStream &writeHeader(QTextStream &ts, bool changesWillBeLost) + { ++ QString strCmdLine = commandLine; ++ strCmdLine.replace(QStringLiteral("STRING_FULL_PATH"), QStringLiteral("STRING_PATH")); + ts << "/*" << endl + << " * This file was generated by " PROGRAMNAME " version " PROGRAMVERSION << endl +- << " * Command line was: " << commandLine << endl ++ << " * Command line was: " << strCmdLine << endl + << " *" << endl + << " * " PROGRAMNAME " is " PROGRAMCOPYRIGHT << endl + << " *" << endl +-- +2.1.0 +