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

Bug 173412

Summary: sys-kernel/genkernel-3.4.6 - gen_initrd.sh (with luks) static check fails w/ non-English locale
Product: Gentoo Hosted Projects Reporter: Peter Hultqvist <gentoo>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED FIXED    
Severity: normal CC: guillaume-laures
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Peter Hultqvist 2007-04-04 23:42:04 UTC
/usr/shar/genkernel/gen_initrd.sh
function: is_static:
Quote: 	objdump -T $1 2>&1 | grep "not a dynamic object" > /dev/null
Hardcoded check against english message.
This fail when the system returns other than english messages.
In swedish the message is: "inte ett dynamiskt objekt"
And thus the static check fails.

Reproducible: Always

Steps to Reproduce:
Set system messages to other language than english.
LANG=sv_SE.UTF-8

In /etc/genkernel.conf set:
LUKS="yes"

genkernel initrd

Actual Results:  
* LUKS support requires static cryptsetup at /bin/cryptsetup
* Not including LUKS support


Expected Results:  
Inlcuded the static cryptsetup

Use a non language senitive check method in is_static()
Comment 1 Peter Hultqvist 2007-04-04 23:45:39 UTC
sys-kernel/genkernel
      Latest version available: 3.4.6
      Latest version installed: 3.4.6
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2007-04-05 14:25:11 UTC
OK.  I think I have this fixed.  I force the command to use English, though I was unable to duplicate this myself, probably because I use English everything by default.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2007-04-05 15:01:09 UTC
This is fixed in genkernel 3.4.7 which is now in the tree.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2007-06-21 00:06:58 UTC
*** Bug 182705 has been marked as a duplicate of this bug. ***