File 0004-Use-5-suffix-for-kconfig_compiler-to-be-in-sync-with.patch of Package mingw64-kconfig

diff -ur kconfig-5.103.0.orig/src/kconfig_compiler/checkkcfg.pl kconfig-5.103.0/src/kconfig_compiler/checkkcfg.pl
--- kconfig-5.103.0.orig/src/kconfig_compiler/checkkcfg.pl	2023-02-05 10:18:56.000000000 +0100
+++ kconfig-5.103.0/src/kconfig_compiler/checkkcfg.pl	2024-07-02 15:28:53.213007573 +0200
@@ -17,12 +17,12 @@
 
 $kcfgc = $file . "c";
 
-$cmd = "./kconfig_compiler_kf5 $file $kcfgc";
+$cmd = "./kconfig_compiler5 $file $kcfgc";
 
 #print "CMD $cmd\n";
 
 if ( system( $cmd ) != 0 ) {
-  print STDERR "Unable to run kconfig_compiler_kf5\n";
+  print STDERR "Unable to run kconfig_compiler5\n";
   exit 1;
 }
 
diff -ur kconfig-5.103.0.orig/src/kconfig_compiler/CMakeLists.txt kconfig-5.103.0/src/kconfig_compiler/CMakeLists.txt
--- kconfig-5.103.0.orig/src/kconfig_compiler/CMakeLists.txt	2024-07-02 15:24:55.165484520 +0200
+++ kconfig-5.103.0/src/kconfig_compiler/CMakeLists.txt	2024-07-02 15:27:16.485201426 +0200
@@ -20,7 +20,7 @@
 )
 
 set_target_properties(kconfig_compiler PROPERTIES
-    OUTPUT_NAME "kconfig_compiler_kf5"
+    OUTPUT_NAME "kconfig_compiler5"
 )
 
 target_link_libraries(kconfig_compiler Qt${QT_MAJOR_VERSION}::Xml)
Nur in kconfig-5.103.0/src/kconfig_compiler: CMakeLists.txt.orig.
diff -ur kconfig-5.103.0.orig/src/kconfig_compiler/KConfigCodeGeneratorBase.cpp kconfig-5.103.0/src/kconfig_compiler/KConfigCodeGeneratorBase.cpp
--- kconfig-5.103.0.orig/src/kconfig_compiler/KConfigCodeGeneratorBase.cpp	2023-02-05 10:18:56.000000000 +0100
+++ kconfig-5.103.0/src/kconfig_compiler/KConfigCodeGeneratorBase.cpp	2024-07-02 15:28:06.889100047 +0200
@@ -107,7 +107,7 @@
 void KConfigCodeGeneratorBase::start()
 {
     const QString m_fileName = QFileInfo(m_inputFile).fileName();
-    m_stream << "// This file is generated by kconfig_compiler_kf5 from " << m_fileName << ".kcfg"
+    m_stream << "// This file is generated by kconfig_compiler5 from " << m_fileName << ".kcfg"
              << ".\n";
     m_stream << "// All changes you do to this file will be lost.\n";
 }
diff -ur kconfig-5.103.0.orig/src/kconfig_compiler/kconfig_compiler.cpp kconfig-5.103.0/src/kconfig_compiler/kconfig_compiler.cpp
--- kconfig-5.103.0.orig/src/kconfig_compiler/kconfig_compiler.cpp	2023-02-05 10:18:56.000000000 +0100
+++ kconfig-5.103.0/src/kconfig_compiler/kconfig_compiler.cpp	2024-07-02 15:29:38.592916741 +0200
@@ -247,7 +247,7 @@
     } else if (type == QLatin1String("urllist")) {
         return QStringLiteral("const QList<QUrl> &");
     } else {
-        std::cerr << "kconfig_compiler_kf5 does not support type \"" << qPrintable(type) << "\"" << std::endl;
+        std::cerr << "kconfig_compiler5 does not support type \"" << qPrintable(type) << "\"" << std::endl;
         return QStringLiteral("QString"); // For now, but an assert would be better
     }
 }
@@ -301,7 +301,7 @@
     } else if (type == QLatin1String("urllist")) {
         return QStringLiteral("QList<QUrl>");
     } else {
-        std::cerr << "kconfig_compiler_kf5 does not support type \"" << qPrintable(type) << "\"" << std::endl;
+        std::cerr << "kconfig_compiler5 does not support type \"" << qPrintable(type) << "\"" << std::endl;
         return QStringLiteral("QString"); // For now, but an assert would be better
     }
 }
@@ -352,7 +352,7 @@
     } else if (type == QLatin1String("urllist")) {
         return QStringLiteral("QList<QUrl>()");
     } else {
-        std::cerr << "Error, kconfig_compiler_kf5 does not support the \"" << qPrintable(type) << "\" type!" << std::endl;
+        std::cerr << "Error, kconfig_compiler5 does not support the \"" << qPrintable(type) << "\" type!" << std::endl;
         return QStringLiteral("QString"); // For now, but an assert would be better
     }
 }
openSUSE Build Service is sponsored by