🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1152223: mit-scheme FTCBFS: uses the build architecture pkg-config to locate PostgreSQL library

#2312
From: Helmut Grohne
Date: Mon, 26 Oct 2026 20:20
42 lines
2795 bytes
--qWwAdAQ4ouZGaUAs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: mit-scheme
Version: 12.1-14
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs

mit-scheme fails to cross build from source as it uses the build
architecture pkg-config (hard coded via the relevant configure.ac) to
locate the PostgreSQL library. I'm attaching a patch to make it use the
correct pkg-config.

Note that this does not fully fix the build. In the end, I am faced with
an illegal instruction. Please consider that out of scope for this
report and close it when just addressing the pkg-config usage.

Helmut

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

--- mit-scheme-12.1.orig/src/pgsql/configure.ac
+++ mit-scheme-12.1/src/pgsql/configure.ac
@@ -101,9 +101,9 @@
 	[AC_MSG_RESULT([no])])
 fi
 
-AC_CHECK_PROG([PKG_CONFIG], [pkg-config], [yes])
+PKG_PROG_PKG_CONFIG
 
-if ! pkg-config --exists libpq 2>/dev/null; then
+if ! "$PKG_CONFIG" --exists libpq 2>/dev/null; then
     AC_MSG_ERROR([PostgreSQL not found.])
 fi
 

--qWwAdAQ4ouZGaUAs--
Technical Details
Message-ID: <NSzkK-84wi-55@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!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!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!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#1152223: mit-scheme FTCBFS: uses the build architecture pkg-config to locate PostgreSQL library
Date: Mon, 26 Oct 2026 21:20:02 +0100
Message-ID: <NSzkK-84wi-55@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Oct 26 20:18:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: Helmut Grohne <helmut@subdivi.de>, 1152223@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: bap@debian.org
X-Debian-Pr-Message: report 1152223
X-Debian-Pr-Package: src:mit-scheme
X-Debian-Pr-Keywords: patch upstream
X-Debian-Pr-Source: mit-scheme
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="qWwAdAQ4ouZGaUAs"
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/1999095
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 42
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 22 Oct 2026 14:05:22 +0200
X-Original-Message-ID: <20261022120522.GA4160799@subdivi.de>