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

  • Done
  • quality assurance status badge
Details
2 participants
  • Efraim Flashner
  • Maxime Devos
Owner
unassigned
Submitted by
Maxime Devos
Severity
normal
M
M
Maxime Devos wrote on 11 May 2022 19:23
(address . bug-guix@gnu.org)
362d12d7a221d3cda06d60067ecf80d332cc76a7.camel@telenet.be
X-Debbugs-CC: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>

Title says it all.

Also see the following excerpt from the build log:

Toggle quote (3 lines)
> 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:

Maybe AR and CC as well.


Greetings,
Maxime.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYnvxHRccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7hFwAQC1Zrab6EY8wIvwOU0Deshfg0FV
ghwNhfjrlNtbmCjKSAD9G/gDeVnnow3CnZno6q4DpYQ2UGdykhEfy9rIYpcQHwU=
=bfrf
-----END PGP SIGNATURE-----


E
E
Efraim Flashner wrote on 15 May 2022 15:01
(name . Maxime Devos)(address . maximedevos@telenet.be)
YoD5sFwo87kDWhxu@3900XT
On Wed, May 11, 2022 at 07:23:41PM +0200, Maxime Devos wrote:
Toggle quote (15 lines)
> X-Debbugs-CC: Denis 'GNUtoo' Carikli <GNUtoo@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@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
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmKA+bAACgkQQarn3Mo9
g1FFrg/+LDrd2d+rNStfsoG4AuO3rFJDW6x0lDbIoRjHnjTSDyHNl4EVCUh1SdsJ
s/vtaxTNBwboFykRbrpy8nWMSMkl5uOVJe4Efku1Ku6755lVWrKpXX9IFDawIeeM
UZVHpgx6ePcDnV88NA0HM02mEf/Yrju/7tCCxwqZwRWsSSo1Y+T7IB3QyR767IbK
rv2wfUY3tiPhBoHp79rEqXetMn9nU8JSia++F5H5ovXvLkXt2Izwvt7oJLXS5Wy8
Z5Tt3Nc9O3QdZJriucdzUQBYTa46mUDbnLGC4zcgfJmwfK4sBxq4btmeaqhefOnb
BFi/LygydTFabFTNl9Ck0GYZSqrlDhatFJ/fyJUMP/4CglhYBUFgfgZ0ktcgqlyz
Vhb5xrbCmbAxfj/XoM3qqFNk2cOjG1kwwbKzWAKTwVJlv3z/GYUan7+3aiK0ZMMF
YpYzXzEO9JobqTdCyTXaH85TS7jVTVrbz3l4CE47GTJOZ0FGetcWmixWLbyKZqQi
Uy5KQVYV7XmmPw0Kpov0I+hfUo8ctQnuxG61XDNOo46h4ObXtRzN7LqWyG6dOVfL
KsR8/nmshCS2tjDH+ZF3fFrDuf9I+OPhuhXrEw3s1Ycauv62MnuZUk03vZAtSQP3
Sclk4+hcxD1yL7ucc/27F0RNzvAPf9e+S8SjevsKEW/ctK/vn5U=
=/3ws
-----END PGP SIGNATURE-----


Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 55373@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 55373
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch