🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #599

Bug#1150716: ayatana-ido FTCBFS: hard codes the build architecture vapigen

#599
From: Helmut Grohne
Date: Mon, 12 Oct 2026 17:20
57 lines
3368 bytes
--Den96crumUWUrqKD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: ayatana-ido
Version: 0.10.4-1.1
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs

ayatana-ido fails to cross build from source because the CMake
instructions hard code the build architecture vapigen. While vapigen
looks architecture-independent on the surface, it uses pkg-config and
thus uses architecture-dependent paths. Hence it fails finding GLib-2.0.
I'm attaching a patch that looks up the correct vapigen via (the
correctly detected) pkg-config. Please consider applying it. Note that
the package already contains a similar change for gir.

Helmut

--Den96crumUWUrqKD
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="cross.patch"

--- ayatana-ido-0.10.4.orig/cmake/FindVala.cmake
+++ ayatana-ido-0.10.4/cmake/FindVala.cmake
@@ -32,6 +32,14 @@
 # OF SUCH DAMAGE.
 #=============================================================================
 
+find_package(PkgConfig)
+if(PKG_CONFIG_FOUND)
+  pkg_check_modules(_pc_vapigen vapigen)
+  if(_pc_vapigen_FOUND)
+    pkg_get_variable(_pc_vapigen_executable vapigen vapigen)
+  endif()
+endif()
+
 find_program (VALA_COMPILER "valac")
 
 if (VALA_COMPILER)
@@ -40,7 +48,11 @@
 	string (REGEX MATCH "[.0-9]+" VALA_VERSION "${VALA_VERSION}")
 endif (VALA_COMPILER)
 
-find_program (VAPI_GEN "vapigen")
+if(_pc_vapigen_executable)
+  set(VAPI_GEN "${_pc_vapigen_executable}")
+else()
+  find_program (VAPI_GEN "vapigen")
+endif()
 
 if (VAPI_GEN)
 	execute_process (COMMAND ${VAPI_GEN} --version

--Den96crumUWUrqKD--
Technical Details
Message-ID: <NNrQS-5704-37@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Helmut Grohne <helmut@subdivi.de>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1150716: ayatana-ido FTCBFS: hard codes the build architecture vapigen
Date: Mon, 12 Oct 2026 19:20:02 +0200
Message-ID: <NNrQS-5704-37@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Oct 12 17:15:20 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Helmut Grohne <helmut@subdivi.de>, 1150716@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-ayatana-devel@lists.alioth.debian.org
X-Debian-Pr-Message: report 1150716
X-Debian-Pr-Package: src:ayatana-ido
X-Debian-Pr-Keywords: patch upstream
X-Debian-Pr-Source: ayatana-ido
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="Den96crumUWUrqKD"
Content-Disposition: inline
X-Reportbug-Version: 13.2.0
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996427
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 57
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 9 Oct 2026 13:40:09 +0200
X-Original-Message-ID: <20261009114009.GA1775780@subdivi.de>