[From nobody Tue May  5 10:35:06 2026
Received: (at submit) by bugs.debian.org; 30 Apr 2026 20:40:33 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.8 required=4.0 tests=BAYES_00, DATE_IN_PAST_24_48, 
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
 SPF_HELO_NONE,SPF_NONE,WORD_WITHOUT_VOWELS autolearn=no
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 18; hammy, 142; neutral, 25; spammy,
 1. spammytokens:0.848-+--inc hammytokens:0.000-+--HTo:N*Debian,
 0.000-+--H*Ad:N*Bug, 0.000-+--H*Ad:N*Tracking, 0.000-+--HTo:N*System,
 0.000-+--HTo:N*Bug
Return-path: &lt;helmut@subdivi.de&gt;
Received: from isilmar-4.linta.de ([136.243.71.142]:55504)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;helmut@subdivi.de&gt;) id 1wIYBT-00FPQy-1W
 for submit@bugs.debian.org; Thu, 30 Apr 2026 20:40:33 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=subdivi.de;
 s=k27.isilmar-4; t=1777581629;
 bh=Xp94BsaSVAzHTE008POztSJMjxBoTdNtvSQymbk02q8=;
 h=Date:From:To:Subject:From;
 b=bPz/QT7tmpX+KHpkcQdy5KV3z8CKQ2SMM+4mknCeMmfh5cb5h9A7hJpLyQPmyWtTF
 UJ+gj8kLJsXJ/O/aqVnw1eT0uTb6iKOb7QFeRB04Xhwv/jLeU42X8I/P1R4vxYNbiR
 fR2HVYPHukPJPPJ6LWj4vho3qJ71APVa17ZAEZTqM9EsySxsOKuR4iRq+uMwWfBWmi
 OhuqGsC6/iciJPolvMUki4caRFj88RY6br6b6+bNoAqMASd281yeQfyort4o3KW0aJ
 tK7JSwj7KsJCMTWbCv2XoEVfxSbGNyk/aiTMeu294V8bqRkBG4fEvLFTmu4onHrVhz
 48I2p5WEXo3wg==
Received: from isilmar-4.linta.de (isilmar.linta [10.0.0.1])
 by isilmar-4.linta.de (Postfix) with ESMTP id D69E5200667
 for &lt;submit@bugs.debian.org&gt;; Thu, 30 Apr 2026 20:40:29 +0000 (UTC)
Date: Wed, 29 Apr 2026 11:59:20 +0200
From: Helmut Grohne &lt;helmut@subdivi.de&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: libimage-librsvg-perl FTCBFS: hard codes the build architecture
 pkg-config
Message-ID: &lt;20260429095920.GA2649902@subdivi.de&gt;
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=&quot;lBO+bbEaDHYjx1QN&quot;
Content-Disposition: inline
X-Reportbug-Version: 13.2.0
Delivered-To: submit@bugs.debian.org


--lBO+bbEaDHYjx1QN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: libimage-librsvg-perl
Version: 0.07-11
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs

libimage-librsvg-perl fails to cross build from source, because the
upstream Makefile.pl hard codes the build architecture pkg-config. In
doing so, it fails to locate librsvg and the compiler fails including
its headers. I'm attaching a patch to pick up the substitution provided
by debhelper. Please consider applying it and forwarding it upstream.

Helmut

--lBO+bbEaDHYjx1QN
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename=&quot;cross.patch&quot;

--- libimage-librsvg-perl-0.07.orig/Makefile.PL
+++ libimage-librsvg-perl-0.07/Makefile.PL
@@ -1,9 +1,10 @@
 use ExtUtils::MakeMaker;
 
+my $pkg_config = $ENV{&quot;PKG_CONFIG&quot;} // &quot;pkg-config&quot;;
 my %config;
 
-$config{INC} = ' ' . `pkg-config --cflags librsvg-2.0`;
-$config{LIBS} = ' ' . `pkg-config --libs-only-l librsvg-2.0`;
+$config{INC} = ' ' . `$pkg_config --cflags librsvg-2.0`;
+$config{LIBS} = ' ' . `$pkg_config --libs-only-l librsvg-2.0`;
 
 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
 # the contents of the Makefile that is written.

--lBO+bbEaDHYjx1QN--
]