site  contact  subhomenews

e3 fixed

September 04, 2009 — BarryK
I was puzzled, when I released a new 4.3 alpha or beta, e3 was broken. Note, 'vi' runs e3 in its vi-compatible mode.

I have found out why. I introduced file stripping into the '3builddistro' script in Woof, and it also strips e3 -- result, e3 reduces from 13KB to 208 bytes and won't run.

Comments

need C version of e3
Username: technosaurus
If you do the standard compile you get that behavior , but if you compile it in the e3c directory then stripping does not have that effect. I did a static compile against dietlibc and it is still only 13kb. strip --strip-all --remove-section=.comment --remove-section=.note e3c is about as small as you can go without using sstrip. Then you just need a symlink for e3. I can upload it if you'd like. It will eventually make it to my dietbinaries page on code.google.com. It is a good source for files to go in init (~300 binaries so far)

e3c != e3 ????
Username: technosaurus
"well, it seems like e3c only operates in default wv mode (maybe not but they all look the same to me - I use geany) and is originally based on version 0.6 Here is the culprit for bad stripping behavior "A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux" e3 uses this technique to reduce the size (only a couple kb) in e3.h starting at ~line 817 this reminded me of an ongoing issue /etc/xdg/rox.sourceforge.net/MIME-types/text is set to use exec xterm -e vi "$@" instead of defaulttexteditor "$@" I think that it may be part of the rox package, but changing this gives the expected behavior when clicking on .c .h and many other types of files (even though this mime type is duplicated properly with defaulttexteditor in Choices) as opposed to a blank "vi" terminal. Right click and open as text works, but can become cumbersome when patching a batch of code. Anyhow you probably patch more code than I, so I thought I'd share my little "fix"

text mime type
Username: BarryK
"technosaurus, Thanks for that info, I've fixed it.

Forum
Username: BarryK
"John, I logged into the forum a little while ago, it seemed ok. Do you think it has been compromised by someone?


Tags: woof