GNU bug report logs - #75642
A fix for `guile-3.0.pc`

Previous Next

Package: guile;

Reported by: Werner LEMBERG <wl <at> gnu.org>

Date: Sat, 18 Jan 2025 06:28:02 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Werner LEMBERG <wl <at> gnu.org>
Subject: bug#75642: closed (Re: bug#75642: A fix for `guile-3.0.pc`)
Date: Fri, 28 Feb 2025 20:19:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#75642: A fix for `guile-3.0.pc`

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 75642 <at> debbugs.gnu.org.

-- 
75642: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=75642
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: Werner LEMBERG <wl <at> gnu.org>
Cc: 75642-done <at> debbugs.gnu.org
Subject: Re: bug#75642: A fix for `guile-3.0.pc`
Date: Fri, 28 Feb 2025 21:18:14 +0100
Hi Werner,

Werner LEMBERG <wl <at> gnu.org> skribis:

>>From d92e90bf2a019fc4cb62b0a7398bddf87740e9f1 Mon Sep 17 00:00:00 2001
> From: Werner Lemberg <wl <at> gnu.org>
> Date: Fri, 17 Jan 2025 11:10:26 +0100
> Subject: [PATCH] Add `LIB_GETRANDOM` to `Libs.private` in `.pc` files
>
> The omission was discovered while cross-compiling LilyPond with mingw
> 11.0.1: without this addition, linking with libguile causes the error
>
>   undefined reference to `BCryptGenRandom'

Applied, together with a ‘NEWS’ update.  Thanks!

Ludo’.

[Message part 3 (message/rfc822, inline)]
From: Werner LEMBERG <wl <at> gnu.org>
To: bug-guile <at> gnu.org
Subject: A fix for `guile-3.0.pc`
Date: Sat, 18 Jan 2025 06:26:38 +0000 (UTC)
[Message part 4 (text/plain, inline)]
Hope this helps.


    Werner
[0011-Add-LIB_GETRANDOM-to-Libs.private-in-.pc-files.patch (text/x-patch, inline)]
From d92e90bf2a019fc4cb62b0a7398bddf87740e9f1 Mon Sep 17 00:00:00 2001
From: Werner Lemberg <wl <at> gnu.org>
Date: Fri, 17 Jan 2025 11:10:26 +0100
Subject: [PATCH] Add `LIB_GETRANDOM` to `Libs.private` in `.pc` files

The omission was discovered while cross-compiling LilyPond with mingw
11.0.1: without this addition, linking with libguile causes the error

  undefined reference to `BCryptGenRandom'
---
 meta/Makefile.am                 | 1 +
 meta/guile-3.0-uninstalled.pc.in | 8 ++++----
 meta/guile-3.0.pc.in             | 8 ++++----
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/meta/Makefile.am b/meta/Makefile.am
index 28cd3b0b3..0525b0493 100644
--- a/meta/Makefile.am
+++ b/meta/Makefile.am
@@ -81,6 +81,7 @@ dependency_substitutions =				\
   -e "s|[@]BDW_GC_CFLAGS[@]|$(BDW_GC_CFLAGS)|g"		\
   -e "s|[@]BDW_GC_LIBS[@]|$(BDW_GC_LIBS)|g"		\
   -e "s|[@]LIB_CLOCK_GETTIME[@]|$(LIB_CLOCK_GETTIME)|g"	\
+  -e "s|[@]LIB_GETRANDOM[@]|$(LIB_GETRANDOM)|g"		\
   -e "s|[@]LIBGMP[@]|$(LIBGMP)|g"			\
   -e "s|[@]LIBLTDL[@]|$(LIBLTDL)|g"			\
   -e "s|[@]LIBFFI_LIBS[@]|$(LIBFFI_LIBS)|g"		\
diff --git a/meta/guile-3.0-uninstalled.pc.in b/meta/guile-3.0-uninstalled.pc.in
index e43fd3ae4..725c74c24 100644
--- a/meta/guile-3.0-uninstalled.pc.in
+++ b/meta/guile-3.0-uninstalled.pc.in
@@ -5,8 +5,8 @@ Name: GNU Guile (uninstalled)
 Description: GNU's Ubiquitous Intelligent Language for Extension (uninstalled)
 Version: @GUILE_VERSION@
 Libs: -L${builddir}/libguile -lguile-@GUILE_EFFECTIVE_VERSION@ @BDW_GC_LIBS@
-Libs.private: @LIB_CLOCK_GETTIME@ @LIBGMP@ @LIBLTDL@ @LIBFFI_LIBS@	\
-  @LIBUNISTRING@ @GUILE_LIBS@ @LIBICONV@ @LIBINTL@ @LIBSOCKET@		\
-  @SERVENT_LIB@ @HOSTENT_LIB@ @GETADDRINFO_LIB@ @INET_NTOP_LIB@		\
-  @INET_PTON_LIB@
+Libs.private: @LIB_CLOCK_GETTIME@ @LIB_GETRANDOM@ @LIBGMP@ @LIBLTDL@	\
+  @LIBFFI_LIBS@ @LIBUNISTRING@ @GUILE_LIBS@ @LIBICONV@ @LIBINTL@ 	\
+  @LIBSOCKET@ @SERVENT_LIB@ @HOSTENT_LIB@ @GETADDRINFO_LIB@ 		\
+  @INET_NTOP_LIB@ @INET_PTON_LIB@
 Cflags: -I${srcdir} -I${builddir} @GUILE_CFLAGS@ @BDW_GC_CFLAGS@
diff --git a/meta/guile-3.0.pc.in b/meta/guile-3.0.pc.in
index c6d12b589..202868589 100644
--- a/meta/guile-3.0.pc.in
+++ b/meta/guile-3.0.pc.in
@@ -23,8 +23,8 @@ Name: GNU Guile
 Description: GNU's Ubiquitous Intelligent Language for Extension
 Version: @GUILE_VERSION@
 Libs: -L${libdir} -lguile-@GUILE_EFFECTIVE_VERSION@ @BDW_GC_LIBS@
-Libs.private: @LIB_CLOCK_GETTIME@ @LIBGMP@ @LIBLTDL@ @LIBFFI_LIBS@	\
-  @LIBUNISTRING@ @GUILE_LIBS@ @LIBICONV@ @LIBINTL@ @LIBSOCKET@		\
-  @SERVENT_LIB@ @HOSTENT_LIB@ @GETADDRINFO_LIB@ @INET_NTOP_LIB@		\
-  @INET_PTON_LIB@
+Libs.private: @LIB_CLOCK_GETTIME@ @LIB_GETRANDOM@ @LIBGMP@ @LIBLTDL@	\
+  @LIBFFI_LIBS@ @LIBUNISTRING@ @GUILE_LIBS@ @LIBICONV@ @LIBINTL@ 	\
+  @LIBSOCKET@ @SERVENT_LIB@ @HOSTENT_LIB@ @GETADDRINFO_LIB@ 		\
+  @INET_NTOP_LIB@ @INET_PTON_LIB@
 Cflags: -I${pkgincludedir}/@GUILE_EFFECTIVE_VERSION@ @GUILE_CFLAGS@ @BDW_GC_CFLAGS@
-- 
2.35.3


This bug report was last modified 84 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.