[Clfs-commits] [CLFS Trac] #203: jdk precompiled binaries and /lib64

CLFS Trac trac at cross-lfs.org
Sun Feb 15 01:49:31 PST 2009


#203: jdk precompiled binaries and /lib64
-------------------------+--------------------------------------------------
 Reporter:  usk          |       Owner:  clfs-commits at lists.cross-lfs.org.
     Type:  enhancement  |      Status:  new                              
 Priority:  minor        |   Milestone:                                   
Component:  BOOK         |     Version:  CBLFS                            
 Keywords:               |  
-------------------------+--------------------------------------------------
 There is a note saying: "The JDK binary installation script for 64-bit
 systems has the dynamic linker path hard-coded at /lib64/ld-
 linux-x86-64.so.2 <...> Changing this path manually or with a sed in the
 *.bin corrupts the *.bin and the install will fail. <...>".

 I'm using a simple perl script to fix this after JDK installation:

 {{{
 cd $JAVA_HOME &&
 perl -i -pe 's,/lib64/ld-linux-x86-64.so.2,/lib/ld-
 linux-x86-64.so.2\0\0,g;' $(grep -lr ld-linux-x86-64.so.2 .)
 }}}

 It's working for me. You just need to keep string length unchanged adding
 \0's.

 Can anyone test it?

-- 
Ticket URL: <http://trac.cross-lfs.org/ticket/203>
CLFS Trac <http://trac.cross-lfs.org>
The Cross Linux From Scratch Project.


More information about the Clfs-commits mailing list