Source: pgmodeler
Version: 1.1.0~beta-2
Tags: patch
User: [email protected]
Usertags: ftcbfs

pgmodeler fails to cross build from source, because debian/rules hard
codes the build architecture qmake6. We recently extended debhelper with
a qmake6 buildsystem that will handle cross building correctly. I'm
attaching a patch for your convenience.

Helmut
diff --minimal -Nru pgmodeler-1.1.0~beta/debian/changelog 
pgmodeler-1.1.0~beta/debian/changelog
--- pgmodeler-1.1.0~beta/debian/changelog       2023-11-28 22:51:11.000000000 
+0100
+++ pgmodeler-1.1.0~beta/debian/changelog       2024-01-12 10:26:02.000000000 
+0100
@@ -1,3 +1,10 @@
+pgmodeler (1.1.0~beta-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use --buildsystem=qmake6. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Fri, 12 Jan 2024 10:26:02 +0100
+
 pgmodeler (1.1.0~beta-2) unstable; urgency=medium
 
   * B-D on qt6-svg-dev | libqt6svg6-dev and libgl-dev. Thanks to Dale Deibert
diff --minimal -Nru pgmodeler-1.1.0~beta/debian/control 
pgmodeler-1.1.0~beta/debian/control
--- pgmodeler-1.1.0~beta/debian/control 2023-11-28 22:51:11.000000000 +0100
+++ pgmodeler-1.1.0~beta/debian/control 2024-01-12 10:26:00.000000000 +0100
@@ -4,7 +4,8 @@
 Maintainer: Debian PostgreSQL Maintainers <[email protected]>
 Uploaders: Lisandro Damián Nicanor Pérez Meyer <[email protected]>,
  Christoph Berg <[email protected]>,
-Build-Depends: debhelper-compat (= 13),
+Build-Depends: debhelper (>= 13.11.9),
+               debhelper-compat (= 13),
                libgl-dev,
                libpq-dev,
                libxext-dev,
diff --minimal -Nru pgmodeler-1.1.0~beta/debian/rules 
pgmodeler-1.1.0~beta/debian/rules
--- pgmodeler-1.1.0~beta/debian/rules   2023-10-18 12:10:00.000000000 +0200
+++ pgmodeler-1.1.0~beta/debian/rules   2024-01-12 10:26:02.000000000 +0100
@@ -9,10 +9,10 @@
 export QT_SELECT := qt6
 
 %:
-       dh $@
+       dh $@ --buildsystem=qmake6
 
 override_dh_auto_configure:
-       qmake6 PREFIX=/usr CONFIG+=debug NO_UPDATE_CHECK=1 pgmodeler.pro
+       dh_auto_configure -- CONFIG+=debug NO_UPDATE_CHECK=1 pgmodeler.pro
 
 override_dh_auto_install:
        dh_auto_install

Reply via email to