Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 490802

Summary: =sys-boot/grub-2.00_p5107-r2[static] fails to link due to undefined references to 'png_*' and 'udev_*'
Product: Gentoo Linux Reporter: Changyuan Yu <reivzy>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED CANTFIX    
Severity: normal CC: floppym
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: output of emerge --info '=sys-boot/grub-2.00_p5107-r2::gentoo'
buid log

Description Changyuan Yu 2013-11-09 04:33:12 UTC
When build sys-boot/grub-2.00_p5107-r2 with static USE flag, fail to link.

Reproducible: Always

Steps to Reproduce:
1. emerge grub-2.00_p5107-r2 with use flag 'device-mapper multislot nls static truetype', GRUB_PLATFORMS="efi-64 pc'

Actual Results:  
grub fail to build.

Expected Results:  
grub build success

When I remove 'static' USE flag, grub build sucess.
Comment 1 Changyuan Yu 2013-11-09 04:35:16 UTC
Created attachment 362830 [details]
output of  emerge --info '=sys-boot/grub-2.00_p5107-r2::gentoo'
Comment 2 Changyuan Yu 2013-11-09 04:40:40 UTC
Created attachment 362832 [details]
buid log
Comment 3 Mike Gilbert gentoo-dev 2013-11-10 17:36:47 UTC
The png failures should be fixed in freetype-2.5.0.1.

  24 Oct 2013; Mark Wright <gienah@gentoo.org> freetype-2.5.0.1.ebuild:
  if use png, then sed freetype2.pc to add the png lib, to fix bug 487646.


Since modern udev does not support static libs, you will need to disable the device-mapper use flag if you want to build static grub.