[neon/3rdparty/libaccounts-qt/Neon/unstable] debian/patches: add dualbuild patch

Carlos De Maine null at kde.org
Tue Jun 27 11:33:07 BST 2023


Git commit 5fe7eaaf14ab581c05f497fddccbbb254469aa9a by Carlos De Maine.
Committed on 27/06/2023 at 10:33.
Pushed by carlosdem into branch 'Neon/unstable'.

add dualbuild patch

A  +20   -0    debian/patches/dualbuild.diff
M  +1    -0    debian/patches/series

https://invent.kde.org/neon/3rdparty/libaccounts-qt/-/commit/5fe7eaaf14ab581c05f497fddccbbb254469aa9a

diff --git a/debian/patches/dualbuild.diff b/debian/patches/dualbuild.diff
new file mode 100644
index 0000000..dbab33d
--- /dev/null
+++ b/debian/patches/dualbuild.diff
@@ -0,0 +1,20 @@
+diff --git a/Accounts/Accounts.pro b/Accounts/Accounts.pro
+index 13804ee071c4968cb06f43866bfb8c675fffa3dc..755703c6a841083451a1ee36e90f86a4b0160591 100644
+--- a/Accounts/Accounts.pro
++++ b/Accounts/Accounts.pro
+@@ -1,9 +1,13 @@
+-
+ include( ../common-project-config.pri )
+ include( ../common-vars.pri )
+ 
+ TEMPLATE = lib
+-TARGET = accounts-qt5
++equals(QT_VERSION, 5){
++   TARGET = accounts-qt5
++}
++equals(QT_VERSION, 6) {
++   TARGET = accounts-qt6
++}
+ 
+ # Input
+ public_headers = \
diff --git a/debian/patches/series b/debian/patches/series
index e50d6d4..9a21b7d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 Install-the-doc-FILES.patch
 Build-docs-if-doxygen-is-available.patch
 qt6-toset.diff
+dualbuild.diff
\ No newline at end of file


More information about the Neon-commits mailing list