Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498666 - sys-boot/gnu-efi does not respect libdir
Summary: sys-boot/gnu-efi does not respect libdir
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: IA-64 team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 426598
  Show dependency tree
 
Reported: 2014-01-20 10:14 UTC by Michał Górny
Modified: 2015-04-13 05:53 UTC (History)
2 users (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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-01-20 10:14:10 UTC
$ qlist gnu-efi | grep /lib
/usr/lib/elf_x86_64_efi.lds
/usr/lib/libgnuefi.a
/usr/lib/libefi.a
/usr/lib/crt0-efi-x86_64.o

The static libraries contain amd64 objects and therefore should be placed in $(get_libdir) (that is lib64 in this case) rather than 'lib'. This install location breaks gummiboot that actually respects libdir (bug #426598).

As for the 'what others do':

- Debian uses /usr/lib as 64-bit libdir (no lib64 there),

- OpenSUSE installs everything in /usr/lib64,

- Fedora installs lib* in /usr/lib64 and the remaining files in /usr/lib64/gnuefi,

- Arch Linux installs everything in /usr/lib64.
Comment 1 Elias Probst 2014-06-06 18:19:40 UTC
It seems 3.0s did better:
/usr/lib64/libgnuefi.a
/usr/lib64/libefi.a
/usr/lib64/elf_x86_64_efi.lds
/usr/lib64/crt0-efi-x86_64.o
/usr/lib/debug/usr/lib64/crt0-efi-x86_64.o.debug
/usr/include/efi/libsmbios.h

but then 3.0u failed again:
/usr/lib/libgnuefi.a
/usr/lib/libefi.a
/usr/lib/elf_x86_64_efi.lds
/usr/lib/debug/usr/lib/crt0-efi-x86_64.o.debug
/usr/lib/crt0-efi-x86_64.o
/usr/include/efi/libsmbios.h

and for 3.0v (simply a bump from 3.0u) it seems the build had some troubles leading to just:
/usr/lib/libefi.a

So 3.0s might be an option for those who need a properly built gnu-efi for gummiboot.
Comment 2 Elias Probst 2015-04-12 18:25:44 UTC
3.0.2 looks fine (see bug#537550).
Comment 3 SpanKY gentoo-dev 2015-04-13 05:50:58 UTC
should be fixed in the 3.0.2 ebuild
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-04-13 05:53:22 UTC
(In reply to SpanKY from comment #3)
> should be fixed in the 3.0.2 ebuild

Now someone has to go through the rev-deps and set the paths and deps right…