GNU bug report logs - #55373
efibootmgr fails to cross-compile: it looks for 'pkg-config' instead of 'TARGET-pkg-config'

Previous Next

Package: guix;

Reported by: Maxime Devos <maximedevos <at> telenet.be>

Date: Wed, 11 May 2022 17:24:02 UTC

Severity: normal

Done: Efraim Flashner <efraim <at> flashner.co.il>

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: Maxime Devos <maximedevos <at> telenet.be>
Subject: bug#55373: closed (Re: bug#55373: efibootmgr fails to
 cross-compile: it looks for 'pkg-config' instead of 'TARGET-pkg-config')
Date: Sun, 15 May 2022 13:03:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#55373: efibootmgr fails to cross-compile: it looks for 'pkg-config' instead of 'TARGET-pkg-config'

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

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

-- 
55373: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55373
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Efraim Flashner <efraim <at> flashner.co.il>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: 55373-done <at> debbugs.gnu.org,
 denis 'gnutoo' carikli <gnutoo <at> cyberdimension.org>
Subject: Re: bug#55373: efibootmgr fails to cross-compile: it looks for
 'pkg-config' instead of 'TARGET-pkg-config'
Date: Sun, 15 May 2022 16:01:36 +0300
[Message part 3 (text/plain, inline)]
On Wed, May 11, 2022 at 07:23:41PM +0200, Maxime Devos wrote:
> X-Debbugs-CC: Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org>
> 
> Title says it all.
> 
> Also see the following excerpt from the build log:
> 
> > make -f /tmp/guix-build-efibootmgr-17.drv-0/source/Make.deps deps SOURCES="efibootmgr.c efi.c unparse_path.c" SUBDIR_CFLAGS="-I/tmp/guix-build-efibootmgr-17.drv-0/source/src/include"
> > /gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/sh: line 1: pkg-config: command not found
> 
> Looks like PKG_CONFIG needs to be added to #:make-flags:
> <https://github.com/rhboot/efibootmgr/blob/892cb7444ce6f2cded9c67ff2ab3ef35a4c810c8/Make.rules#L64>.
> 
> Maybe AR and CC as well.
> 

I also needed to adjust efivar so it would refer to the correct gcc when
cross-compiling. Anyway, this should now be fixed.


-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
From: Maxime Devos <maximedevos <at> telenet.be>
To: bug-guix <at> gnu.org
Subject: efibootmgr fails to cross-compile: it looks for 'pkg-config'
 instead of 'TARGET-pkg-config'
Date: Wed, 11 May 2022 19:23:41 +0200
[Message part 6 (text/plain, inline)]
X-Debbugs-CC: Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org>

Title says it all.

Also see the following excerpt from the build log:

> make -f /tmp/guix-build-efibootmgr-17.drv-0/source/Make.deps deps SOURCES="efibootmgr.c efi.c unparse_path.c" SUBDIR_CFLAGS="-I/tmp/guix-build-efibootmgr-17.drv-0/source/src/include"
> /gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/sh: line 1: pkg-config: command not found

Looks like PKG_CONFIG needs to be added to #:make-flags:
<https://github.com/rhboot/efibootmgr/blob/892cb7444ce6f2cded9c67ff2ab3ef35a4c810c8/Make.rules#L64>.

Maybe AR and CC as well.


Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 7 days ago.

Previous Next


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