Thread: DIY - KeK
View Single Post
Old 07-15-2012, 02:26 PM   #86
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
XZ Utils-5.0.4-static (and LZMA)

I started out to build a current version of strace, but that comes as an xz compressed archive.
Duh...
http://tukaani.org/xz/

So build XZ Utils first:
Spoiler:

(armv6l:1) /home # wget http://tukaani.org/xz/xz-5.0.4.tar.gz
(armv6l:1) /home # tar -xf xz-5.0.4.tar.gz
(armv6l:1) /home # cd xz-5.0.4
(smack this one over the head with a big stick to get autotool's attention)
(armv6l:1) /home/xz-5.0.4 # CFLAGS='--static --static-libgcc' LDFLAGS='--static --static-libgcc' ./configure --disable-shared --prefix=/mnt/us
(armv6l:1) /home/xz-5.0.4 # grep DESTDIR Makefile
(Yes, it supports DESTDIR)
(armv6l:1) /home/xz-5.0.4 # mkdir -p /home/xz504
(armv6l:1) /home/xz-5.0.4 # make
(armv6l:1) /home/xz-5.0.4 # DESTDIR=/home/xz504 make install
(armv6l:1) /home/xz-5.0.4 # cd /home/xz504/mnt/us/bin
(armv6l:1) /home/xz504/mnt/us/bin # ./xz --version
xz (XZ Utils) 5.0.4
liblzma 5.0.4
(armv6l:1) /home/xz504/mnt/us/bin # ldd xz
not a dynamic executable
(armv6l:1) /home/xz504/mnt/us/bin # cd ../../..
(armv6l:1) /home/xz504 # tar -cvzf xz504-static-arm.tar.gz mnt


As you can see in the build notes above, this is the entire distribution (including documentation).
And the tar-ball has a leading directory path of mnt/us ...
(as a reminder of where they should probably end up - but these are all static, so user's choice)

You will probably want to open up the tar ball and select from:
Code:
mnt/us/bin/
mnt/us/bin/xz
mnt/us/bin/lzfgrep
mnt/us/bin/xzdiff
mnt/us/bin/lzmadec
mnt/us/bin/lzcat
mnt/us/bin/unxz
mnt/us/bin/lzdiff
mnt/us/bin/lzma
mnt/us/bin/unlzma
mnt/us/bin/xzcat
mnt/us/bin/xzfgrep
mnt/us/bin/lzcmp
mnt/us/bin/xzgrep
mnt/us/bin/lzless
mnt/us/bin/xzegrep
mnt/us/bin/xzcmp
mnt/us/bin/lzmore
mnt/us/bin/lzgrep
mnt/us/bin/xzmore
mnt/us/bin/xzless
mnt/us/bin/lzegrep
mnt/us/bin/xzdec
mnt/us/bin/lzmainfo
Those applications which you really want from that list above to transfer to your Kindle.
Note: Some of those are scripts, you'll see that when you get the tar-ball opened onto your filesystem.

Edit:
After a bit of study, you probably only need mnt/us/bin/xz because it evidently auto-detects lzma
I have attached it (xz) gzip'd, just gunzip it.

Edit:
The applications inside of the complete tar-ball do not have their symbols stripped.
The individual .gz'd file does have the excess symbols stripped.
Four or five people got copies of the "too big" staticly linked executables.
Attached Files
File Type: gz xz504-static-arm.tar.gz (536.9 KB, 333 views)
File Type: gz xz.gz (113.3 KB, 335 views)

Last edited by knc1; 07-15-2012 at 08:54 PM.
knc1 is offline   Reply With Quote