Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 613792 - >=sys-libs/efivar-23 (including current stable) miss pkgconfig (build time) dependancy
Summary: >=sys-libs/efivar-23 (including current stable) miss pkgconfig (build time) d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-25 14:12 UTC by Julien Décharne
Modified: 2017-03-25 22:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Décharne 2017-03-25 14:12:04 UTC
>=sys-libs/efivar-23 fail to compile if pkgconfig is not installed. ebuilds should add virtual/pkgconfig to their DEPEND variable.

TO REPRODUCE:
# emerge --depclean
  note: virtual/pkgconfig might be pulled by some packages, in this case this bug doesn't appear; for reproducing this bug removing pkgconfig by hand is necessary : emerge --unmerge virtual/pkgconfig dev-utils/pkgconfig
# emerge sys-libs/efivar
(...)
x86_64-pc-linux-gnu-gcc (...) -o efivar efivar.c -lefivar -ldl
(...)sys-libs/efivar-30/temp/ccsucL3b.ltrans0.ltrans.o: In function `main':
<artificial>:(.text.startup+0x2ef): undefined reference to `poptAliasOptions'
(...)
 * ERROR: sys-libs/efivar-30::gentoo failed (compile phase):
 *   emake failed
(...)


WORKAROUND:
# emerge --oneshot virtual/pkgconfig
# emerge sys-libs/efivar
(...)
x86_64-pc-linux-gnu-gcc (...) -o efivar efivar.c -lefivar -ldl -lpopt
(...)
# emerge --depclean


DETAILS
Without pkgconfig installed, efivar's Make system doesn't define pkgconfig-related variables - without emitting any warning. When compiling, the last gcc command fail to find reference symbols defined by library popt, because Make didn't add proper argument for searching popt library at link time ("-lpopt").
Comment 1 Mike Gilbert gentoo-dev 2017-03-25 22:38:14 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0106c058b984a0868ec01d7f74044145c56814e2

commit 0106c058b984a0868ec01d7f74044145c56814e2
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sat Mar 25 18:36:02 2017 -0400

    sys-libs/efivar: depend on pkgconfig
    
    Bug: https://bugs.gentoo.org/613792
    Package-Manager: Portage-2.3.5_p2, Repoman-2.3.2_p32

 sys-libs/efivar/efivar-30.ebuild | 4 +++-
 sys-libs/efivar/efivar-31.ebuild | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)