From 99ba2162018fc38ef221660fdc09097161af1dae Mon Sep 17 00:00:00 2001 From: Andreas Cord-Landwehr Date: Mon, 4 Nov 2024 20:00:31 +0100 Subject: [PATCH] kosmindoormap: fix QA buildpath issue --- recipes-application/pim/kosmindoormap.inc | 2 + .../0001-Fix-reproducible-builds.patch | 38 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 recipes-application/pim/kosmindoormap/0001-Fix-reproducible-builds.patch diff --git a/recipes-application/pim/kosmindoormap.inc b/recipes-application/pim/kosmindoormap.inc index 44b9626..8dc4b15 100644 --- a/recipes-application/pim/kosmindoormap.inc +++ b/recipes-application/pim/kosmindoormap.inc @@ -9,6 +9,8 @@ LICENSE = "LGPL-2.0-or-later" LIC_FILES_CHKSUM = "file://LICENSES/LGPL-2.0-or-later.txt;md5=6d2d9952d88b50a51a5c73dc431d06c7" PR = "r0" +SRC_URI:append = " file://0001-Fix-reproducible-builds.patch" + DEPENDS += " \ qtdeclarative \ ki18n \ diff --git a/recipes-application/pim/kosmindoormap/0001-Fix-reproducible-builds.patch b/recipes-application/pim/kosmindoormap/0001-Fix-reproducible-builds.patch new file mode 100644 index 0000000..c1b0805 --- /dev/null +++ b/recipes-application/pim/kosmindoormap/0001-Fix-reproducible-builds.patch @@ -0,0 +1,38 @@ +From d70eec72e4883ee89f2bddc783b9ded146c43508 Mon Sep 17 00:00:00 2001 +From: Andreas Cord-Landwehr +Date: Mon, 4 Nov 2024 18:32:44 +0100 +Subject: [PATCH] Fix reproducible builds + +Do not generate absolute file names into headers. + +Upstream-Status: Backport [https://invent.kde.org/libraries/kosmindoormap/-/merge_requests/46] + +SPDX-FileCopyrightText: Andreas Cord-Landwehr +SPDX-License-Identifier: MIT +Signed-off-by: Andreas Cord-Landwehr +--- + src/map/CMakeLists.txt | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/map/CMakeLists.txt b/src/map/CMakeLists.txt +index b02e9c6..1eff1ea 100644 +--- a/src/map/CMakeLists.txt ++++ b/src/map/CMakeLists.txt +@@ -21,12 +21,13 @@ if (NOT BUILD_TOOLS_ONLY) + style/mapcsslexer.l + ${CMAKE_CURRENT_BINARY_DIR}/mapcsslexer.cpp + DEFINES_FILE ${CMAKE_CURRENT_BINARY_DIR}/mapcssscanner.h +- COMPILE_FLAGS "--nounistd" ++ COMPILE_FLAGS "--nounistd --noline" + ) + bison_target(mapcssparser + style/mapcssparser.y + ${CMAKE_CURRENT_BINARY_DIR}/mapcssparser_impl.cpp + DEFINES_FILE ${CMAKE_CURRENT_BINARY_DIR}/mapcssparser_impl.h ++ COMPILE_FLAGS "--no-lines" + ) + add_flex_bison_dependency(mapcssscanner mapcssparser) + set_source_files_properties(${BISON_mapcssparser_OUTPUTS} ${FLEX_mapcssscanner_OUTPUTS} PROPERTIES SKIP_AUTOMOC ON) +-- +2.43.0 +