🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1150714: libmirage FTCBFS: uses the build architecture vapigen

#602
From: Helmut Grohne
Date: Mon, 12 Oct 2026 17:20
44 lines
3086 bytes
--jMlpF5F2v4rTo0e7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: libmirage
Version: 3.3.1-3
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs

libmirage fails to cross build from source, because its upstream build
system hard codes the build architecture vapigen. The vapigen.pc package
configuration exports a matching vapigen executable on Debian systems
and discovering it that way fixes the cross build. Please consider
applying the attached patch and forwarding it upstream.

Helmut

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

--- libmirage-3.3.1.orig/CMakeLists.txt
+++ libmirage-3.3.1/CMakeLists.txt
@@ -57,7 +57,15 @@
         set(VAPI_STATUS "OFF (introspection disabled)")
     else()
         find_program(VALAC valac DOC "the Vala compiler")
-        find_program(VAPIGEN vapigen DOC "tool to generate the Vala API")
+        pkg_check_modules(_pc_vapigen vapigen)
+        if(_pc_vapigen_FOUND)
+            pkg_get_variable(_pc_vapigen_executable vapigen vapigen)
+        endif()
+        if(_pc_vapigen_executable)
+            set(VAPIGEN "${_pc_vapigen_executable}")
+        else()
+            find_program(VAPIGEN vapigen DOC "tool to generate the Vala API")
+        endif()
         if(VALAC AND VAPIGEN)
             include(GObjectIntrospection)
             set(VAPI_STATUS "ON")

--jMlpF5F2v4rTo0e7--
Technical Details
Message-ID: <NNrQS-5704-51@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#1150714: libmirage FTCBFS: uses the build architecture vapigen
Date: Mon, 12 Oct 2026 19:20:02 +0200
Message-ID: <NNrQS-5704-51@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Oct 12 17:15:19 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Helmut Grohne <helmut@subdivi.de>, 1150714@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: matteobin@tiepi.it
X-Debian-Pr-Message: report 1150714
X-Debian-Pr-Package: src:libmirage
X-Debian-Pr-Keywords: patch upstream
X-Debian-Pr-Source: libmirage
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="jMlpF5F2v4rTo0e7"
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/1996426
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 44
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sat, 10 Oct 2026 23:26:26 +0200
X-Original-Message-ID: <20261010212626.GA3445325@subdivi.de>