Source: soci
Version: 4.1.2-1
Tags: patch
User: [email protected]
Usertags: ftcbfs

soci fails to cross build from source, because it fails to detect 
mysql/mariadb, skips that part of the build and eventually dh_install 
fails on missing files. Now default-libmysqlclient-dev is in 
Build-Depends and that should all work. A look at the log indicates that 
it tries using mysql_config. This tool happens to not work at all during 
cross compilation and it is recommended that packages use pkg-config 
instead. Indeed, soci's source tries using pkg-config before falling 
back to mysql_config, but nothing depends on pkg-config or pkgconf, so 
this part happens to not work. Making cross building work is a matter of 
adding this small build dependency. I'm attaching a patch for your 
convenience.

Helmut
diff -Nru soci-4.1.2/debian/changelog soci-4.1.2/debian/changelog
--- soci-4.1.2/debian/changelog 2025-10-19 19:10:13.000000000 +0200
+++ soci-4.1.2/debian/changelog 2025-10-25 12:41:01.000000000 +0200
@@ -1,3 +1,10 @@
+soci (4.1.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS: Build-Depends: pkgconf. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sat, 25 Oct 2025 12:41:01 +0200
+
 soci (4.1.2-1) unstable; urgency=medium
 
   * New upstream version 4.1.2, Closes: 1113525
diff -Nru soci-4.1.2/debian/control soci-4.1.2/debian/control
--- soci-4.1.2/debian/control   2025-10-19 19:10:13.000000000 +0200
+++ soci-4.1.2/debian/control   2025-10-25 12:41:01.000000000 +0200
@@ -10,6 +10,7 @@
                libboost-dev,
                libpq-dev,
                libsqlite3-dev,
+               pkgconf,
                unixodbc-dev
 Standards-Version: 4.7.2
 Homepage: http://soci.sourceforge.net/

Reply via email to