Hello community,

here is the log from the commit of package libqt5-qtbase for openSUSE:Leap:15.2 
checked in at 2020-03-23 09:33:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/libqt5-qtbase (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.libqt5-qtbase.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libqt5-qtbase"

Mon Mar 23 09:33:43 2020 rev:64 rq:787224 version:5.12.7

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/libqt5-qtbase/libqt5-qtbase.changes    
2020-02-10 16:41:32.475707044 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.libqt5-qtbase.new.3160/libqt5-qtbase.changes  
2020-03-23 09:33:46.856307452 +0100
@@ -1,0 +2,6 @@
+Mon Mar 16 23:38:55 UTC 2020 - Stefan BrĂ¼ns <stefan.bru...@rwth-aachen.de>
+
+- Fix builds of packages using qt5_make_output_file, e.g. FreeCAD.
+  * Fix-qt5_make_output_file-macro-for-paths-containing-dots.patch
+
+-------------------------------------------------------------------

New:
----
  Fix-qt5_make_output_file-macro-for-paths-containing-dots.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libqt5-qtbase.spec ++++++
--- /var/tmp/diff_new_pack.EXyVE3/_old  2020-03-23 09:33:48.776308830 +0100
+++ /var/tmp/diff_new_pack.EXyVE3/_new  2020-03-23 09:33:48.776308830 +0100
@@ -76,6 +76,7 @@
 Patch24:        fix-fixqt4headers.patch
 # patches 1000-2000 and above from upstream 5.12 branch #
 Patch1001:      0002-Doc-QPluginLoader-remove-the-claim-we-search-the-cur.patch
+Patch1002:      Fix-qt5_make_output_file-macro-for-paths-containing-dots.patch
 # patches 2000-3000 and above from upstream 5.13/dev branch #
 Patch2000:      reproducible-qrc-time.patch
 Patch2001:      0001-Fix-notification-of-QDockWidget-when-it-gets-undocke.patch

++++++ Fix-qt5_make_output_file-macro-for-paths-containing-dots.patch ++++++
>From 8a3fde00bf53d99e9e4853e8ab97b0e1bcf74915 Mon Sep 17 00:00:00 2001
From: Joerg Bornemann <joerg.bornem...@qt.io>
Date: Wed, 29 Jan 2020 11:06:35 +0100
Subject: Fix qt5_make_output_file macro for paths containing dots

Commit 89bd5a7e broke CMake projects that use dots in their build
paths, because the used regular expression matches the directory part
of the path as well.

The regex wants to achieve the same as get_filename_component(...
NAME_WLE) which is available since CMake 3.14. Re-implement the
NAME_WLE functionality for older CMake versions by using multiple
get_filename_component calls.

Fixes: QTBUG-81715
Task-number: QTBUG-80295
Change-Id: I2ef053300948f6e1b2c0c5eafac35105f193d4e6
Reviewed-by: Alexandru Croitor <alexandru.croi...@qt.io>
---
 src/corelib/Qt5CoreMacros.cmake | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'src/corelib/Qt5CoreMacros.cmake')

diff --git a/src/corelib/Qt5CoreMacros.cmake b/src/corelib/Qt5CoreMacros.cmake
index 7735e51012..b3da6406a1 100644
--- a/src/corelib/Qt5CoreMacros.cmake
+++ b/src/corelib/Qt5CoreMacros.cmake
@@ -59,7 +59,14 @@ macro(QT5_MAKE_OUTPUT_FILE infile prefix ext outfile )
     set(_outfile "${CMAKE_CURRENT_BINARY_DIR}/${rel}")
     string(REPLACE ".." "__" _outfile ${_outfile})
     get_filename_component(outpath ${_outfile} PATH)
-    string(REGEX REPLACE "\\.[^.]*$" "" _outfile ${_outfile})
+    if(CMAKE_VERSION VERSION_LESS "3.14")
+        get_filename_component(_outfile_ext ${_outfile} EXT)
+        get_filename_component(_outfile_ext ${_outfile_ext} NAME_WE)
+        get_filename_component(_outfile ${_outfile} NAME_WE)
+        string(APPEND _outfile ${_outfile_ext})
+    else()
+        get_filename_component(_outfile ${_outfile} NAME_WLE)
+    endif()
     file(MAKE_DIRECTORY ${outpath})
     set(${outfile} ${outpath}/${prefix}${_outfile}.${ext})
 endmacro()
-- 
cgit v1.2.1


Reply via email to