OSDN Git Service

Accumulated web page changes. (Release announcement for previous release, roadmap...
[android-x86/external-toybox.git] / www / news.html
1 <!--#include file="header.html" -->
2
3 <h2>News</h2>
4 <hr><b>January 18, 2013</b>
5 <blockquote><p>This must be Thursday. I never could get the hang of Thursdays. - The Hitchhiker's Guide to the Galaxy.</p></blockquote>
6
7 <p><a href=downloads/toybox-0.4.3.tar.bz2>Toybox 0.4.3</a> is based on
8 <a href=http://landley.net/hg/toybox/shortlog/793>commit 793</a>. There
9 are now exactly 100 commands in defconfig (of a little over 220 on the
10 <a href=roadmap.html>todo list</a>).</p>
11
12 <p>Elie De Brauwer added the rev command, cleaned up tac, implemented the -s
13 and -f flags for seq, added -v and -i to killall (and fixed killall not to
14 kill itself before finishing its pid list), and added to the test suite.
15 Felix Janda added -m to mkdir, pwd -L and -P, and more test suite entries.</p>
16
17 <p>Rob Landley added the losetup command, and fixed the existing ls, cp, and
18 readlink commands. The segfault in ls
19 happened when it couldn't determine the screen size (last release changed the
20 default to -C and a screen size of 0 made column view unhappy), and cp got an
21 extensive rewrite bringing it up to date with the dirtree changes and fixing
22 a number of things it never did right in the first place. The xabspath()
23 code in the library now handles a symlink after ".." properly (and the test
24 suite checks for it).</p>
25
26 <p>Infrastructure-wise the code is better about automatically setting the
27 error return code properly. Now error_msg() sets the exit code to 1 if it's
28 still defaulting to 0, and the global exit path does a fflush(NULL) with error
29 bit check rather than trying to be quite so granular about flushing. (That
30 means if we use printf() instead of xprintf() it still exits with the right
31 error code, it just doesn't end the program early on an output error.)
32 Minor bugfix so TOYBOX_DEBUG
33 doesn't always warn about the lack of suid bit when toybox is built with
34 at least one STAYROOT command. Bugfix for the option [grouping] logic
35 (and then further fixes to the error reporting pointed out by Ashwini Sharma).
36 dirtree_handle_callback() now has a prefix like the rest of the dirtree
37 functions. A lot of stuff doing manual path handling was switched to using
38 libc basename() (including, embarassingly, the basename command), which means
39 it now correctly detects "/trailing/slash/" which the previous code didn't.</p>
40
41 <p>Also, last release included some accidentally checked in debug code that
42 disabled compiler optimization, so the binary size bloated a bit. It's back
43 to -Os by default now.</p>
44
45 <hr><b>December 15, 2012</b>
46 <blockquote><p>"The major difference between a thing that might go wrong and a
47 thing that cannot possibly go wrong is that when a thing that cannot possibly
48 go wrong goes wrong it usually turns out to be impossible to get at or repair."
49 </p><p>- The Hitchhiker's Guide to the Galaxy.</p></blockquote>
50
51 <p><a href=downloads/toybox-0.4.2.tar.bz2>Toybox 0.4.2</a> is based on
52 <a href=http://landley.net/hg/toybox/shortlog/749>commit 749</a> and is
53 just a resync. Linux 3.7 came out, meaning it's time to do an Aboriginal
54 Linux release, and that should use a stable version of toybox. So here's
55 a new stable version.</p>
56
57 <p>The new commands are cut (from Jason Kyungwan Han), touch
58 (from Choubey Ji), expand (from Jonathan Clairembault, and he fixed a
59 bug in login), and rm (from Rob Landley). Felix Janda added UTF-8
60 support infrastructure (for non-ascii character sets) with a config option.
61 Elie De Brauwer added tests for cat and sha1sum, and -so options to pidof.
62 The "ls" command defaults to -C (column view) now, and "readlink" now supports
63 -fenq.</p>
64
65 <p>Portability work: toybox should now build against the musl C library,
66 and against older glibc versions (circa 2008, much before that and kernel
67 features we depend on start to drop out).</p>
68
69 <p>The whole codebase got reindented from "one tab" to "two spaces" per
70 level. The option parsing logic now understands [groups] of commands (when more
71 than one in a group is selected it can switch the others off, or error out,
72 or other things). The error_exit() infrastructure can now longjmp back to an
73 earlier point instead of exiting. Each toys/* directory now has a README,
74 the first line of which is the fancy name menuconfig uses for the directory
75 (so no more hardwired directory list in scripts/genconfig.sh).</p>
76
77 <p>Fixed a filehandle leak in getmountlist().
78 Pass parent pointer to dirtree_add_node() so it can give error messages with
79 full path. The yesno() function now always reads from stdin and writes to
80 stderr (we can retry tty checking complexity once we've got commands needing
81 it).</p>
82
83 <p>The open group broke their website so the
84 <a href=http://opengroup.org/onlinepubs/9699919799>old links</a> to POSIX 2008
85 now <a href=http://pubs.opengroup.org/onlinepubs/9699919799>need to start with
86 pubs</a>. Some of the links in the tree have been updated, others haven't while
87 I wait to see if their webmaster notices and fixes it.</p>
88
89 <p>(I note that the current rm implementation is not technically posix compliant
90 because the standard requires infinite recursion depth and the current
91 implementation uses one filehandle per level. I can add a config option
92 to do it Posix's way, which is more brittle and needs extra security checks,
93 but am waiting for somebody to complain first. The default "ulimit -n" is 1024
94 filehandles, so drilling down over 1000 nested subdirectories).</p>
95
96 <hr><b>November 13, 2012</b>
97 <blockquote><p>"Rule Six: The winning team shall be the first team that wins."
98 - The Hitchhiker's Guide to the Galaxy.</p></blockquote>
99
100 <p><a href=downloads/toybox-0.4.1.tar.bz2>Toybox 0.4.1</a> is based on
101 <a href=http://landley.net/hg/toybox/shortlog/691>commit 691</a>.</p>
102
103 <p>Elie De Brauwer contributed usleep, Ashwini Kumar contributed du, and
104 Kyungwan Han contributed vconfig. Other new commands include switch_root and
105 md5sum, and the remaining shell wrappers are now proper commands (dos2unix,
106 unix2dos).</p>
107
108 <p>The patch command now supports -l, and gethostname is now enabled by
109 default. The df command follows symlinks to get the actual device name.
110 Felix Janda added -m support to wc (for utf8).</p>
111
112 <p>On the infrastructure side, the commands have now been grouped into
113 "posix", "lsb", and "other" subdirectories (for things required by Posix-2008,
114 the Linux Standard Base 4.1, and commands in neither). This affects menuconfig
115 and the actual source layout (toys/cp.c is now toys/posix/cp.c, and so on).
116 An android directory is planned (see the updated
117 <a href=roadmap.html#android>android roadmap analysis</a>).</p>
118
119 <p>The FLAG_ macros for command option parsing and TT alias for the command's
120 global block are now automatically generated, commands should
121 #define FOR_commandname before #including <toys.h> to get the macros for that
122 command.</p>
123
124 <p>An upgrade to the build infrastructure now allows commands with _ and -
125 in them, such as switch_root.</p>
126
127 <p>Bugfixes: Avery Pennarun spotted a case where ls showed uid twice instead of
128 uid and gid, and that nice was using the wrong range of numbers.
129 The ls command also recursed inappropriately last time (not quite
130 properly converted for the dirtree changes last release), and now it's
131 fixed. Roy Tam pointed out a glitch in sh, and fixed df's percentage
132 calculation to match the POSIX spec. The kernel build didn't like our mktemp
133 and it does now. The wc command wasn't quite posix compliant (trailing spaces
134 break stuff). The ls command recursed inappropriately last time (not quite
135 properly converted for the dirtree changes last release), and now it's
136 fixed. The catv command wasn't displaying byte 255 correctly. Some lib
137 fixes (thinko in xpidfile). Fixed uname -m when running a 32 bit x86 binary
138 on an x86-64 host (it lies and says the system is i686, i586, or i486 depending
139 on what the toolchain that built the binary supported. This makes builds in
140 a 32 bit chroot on a 64 bit kernel break less.) The df command was checking
141 partitions in the wrong order (displaying undermounts instead of overmounts:
142 this used to work but some library code changed out from under it and it
143 wasn't updated to match until now). Felix Janda filled out the test suite
144 some more. The patch file creation logic got tweaked several times to
145 successfully apply more patches. Support for older (pre 2.10) glibc
146 versions was added to portability.h.</p>
147
148 <p>Miscelaneous cleanups all around (mknod, sha1sum, logname), including a
149 rewrite of taskset to be less dependent on libc getting the headers right. All
150 the command headers should now point to the current relevant standards
151 document, where applicable.</p>
152
153 <p>This news page had old news entries from before the relaunch moved into
154 a separate <a href=oldnews.html>oldnews</a> page.</p>
155
156 <p>I forgot to create <a href=bin>static binaries</a> last time, but they're
157 back now.</p>
158 </span>
159
160 <hr><b>July 23, 2012</b>
161 <blockquote><p>"Ford", Arthur said. "There's an infinite number of monkeys
162 out here who want to talk to us about this script for Hamlet they've worked
163 out." - The Hitchhiker's Guide to the Galaxy.</p></blockquote>
164
165 <p><a href=downloads/toybox-0.4.0.tar.bz2>Toybox 0.4.0</a> is based on
166 <a href=http://landley.net/hg/toybox/shortlog/640>commit 640</a>.</p>
167
168 <p>The new <a href=status.html>status page</a> is calculated from
169 the roadmap info, and should be easier to keep up to date in future.</p>
170
171 <p>Andre Renaud contributed od and modinfo. Elie De Brauwer contributed
172 taskset, bugfixes to cmp and tail, and tests for sort and tail. Kyungwan Han
173 contributed passwd. Gaurang Shastri contributed w. Ashwini Sharma spotted a
174 case where dirtree was adding extra slashes to a path.</p>
175
176 <p>I rewrote od, cleaned up comm, documented the
177 <a href=code.html#lib_llist>llist</a> and
178 <a href=code.html#lib_dirtree>dirtree</a> infrastructure, added an -r option
179 to date (and fixed a bug where -u wouldn't override /etc/localtime),
180 fixed bugs in chmod +stw, fixed ls to show suid bits properly when the
181 corresponding executable bit wasn't set, and worked around a longstanding
182 glibc bug where static linking prevents stdout from automatically flushing
183 pending output on exit.</p>
184
185 <hr><b>June 25, 2012</b>
186 <blockquote><p>"For a moment, nothing happened. Then, after a second or so, nothing continued to happen." - The Hitchhiker's Guide to the Galaxy.</p></blockquote>
187
188 <p><a href=downloads/toybox-0.3.1.tar.bz2>Toybox 0.3.1</a> is based on commit
189 <a href=http://landley.net/hg/toybox/shortlog/607>commit 607</a>. It's
190 mostly a bugfix release for ls -l (which was unhappy on targets other than
191 x86-64), plus a new "date" from Andre Renaud and rewritten chgrp/chown which
192 now support the full set of posix flags, plus a little work on the test
193 suite and some more header tweaks towards eventual compatability with the
194 musl libc.</p>
195
196 <p>The todo list runneth over, but "release early, release often", so here
197 it is. The roadmap and documentation are a bit behind, and I've got ~40
198 pending submissions to review. I need to catch up...</p>
199 </span>
200
201 <hr><b>June 12, 2012</b>
202 <blockquote><p>"For instance, on the planet Earth, man had always assumed that
203 he was more intelligent than dolphins because he had achieved so much - the
204 wheel, New York, wars and so on - whilst all the dolphins had ever done was
205 muck about in the water having a good time. But conversely, the dolphins had
206 always believed that they were far more intelligent than man - for precisely
207 the same reasons." - The Hitchhiker's Guide to the Galaxy.</p></blockquote>
208
209 <p>It's well past time for <a href=downloads/toybox-0.3.0.tar.bz2>toybox 0.3.0</a>,
210 so here it is, based
211 on <a href=http://landley.net/hg/toybox/shortlog/595>commit 595</a>, and the
212 statically linked <a href=downloads/binaries>prebuilt binaries</a> should
213 actually be statically linked this time (thanks Ashwini Sharma for spotting
214 that).</p>
215
216 <p>It's hard to figure out where to cut a release, because development
217 doesn't stop. "Long before now" is the obviuos answer, of course.
218 The project's maintainer also moved house during this development cycle, which
219 threw things off for a bit (so many boxes). Releases should hopefully be a bit
220 more frequent from here on.</p>
221
222 <p>The big things Rob worked on this time were the new dirtree (directory
223 tree traversal) infrastructure, and a complete rewrite of ls using that
224 which should now implement all 26 posix options.</p>
225
226 <p>Georgi Chorbadzhiyski added printenv, whoami, mkdir, mkfifo, chmod, chown,
227 chgrp, and uniq. He also added fraction and extension support to sleep (so if
228 you need a quarter-second sleep, it can do that now), and fixed a build bug
229 on slackware.</p>
230
231 <p>Daniel Walter contributed a string to mode_t parser (in use by chmod and
232 mkdir -m).  Ilya Kuzmich contributed comm. Elie De Brauwer added mountpoint,
233 vmstat, logname, login, and mktemp. Kevin Chase did some portability cleanups.
234 Pere Orga fixed some documentation.</p>
235
236 <p>The "tac" and "clear" commands are now normal commands instead of shell
237 wrappers, and the header #includes have been cleaned up a bit to remove
238 deprecated functions and attempt to increase compatability with the bionic and
239 musl C libraries, "tail" should now use lseek() for large files, and "id" got
240 some cleanups and bugfixes.</p>
241
242 <p>The new TOYBOX_FLOAT configuration option selects whether or not
243 to include floating point support (for embedded targets where that's
244 problematic).</p>
245
246 <p>Several random bugfixes: unshare() might actually build portably now,
247 yes 'n' | cp -i should no longer bypass stdin and prompt via the tty, the
248 SUID support no longer drops permissions going through the toybox
249 multiplexer command, and a bugfix to xargs -0 means it should no longer
250 segfault. (I have a pending bug report about xargs not doing the full
251 posix whitespace handling that -0 obsoleted, but I'll deal with that next
252 release.)</p>
253
254 <p>The build infrastructure is now automatically generating FLAG_ macros
255 for the options, but currently with the wrong names. Some more macro glue
256 is necessary, which I haven't quite figured out how to do yet.</p>
257
258 <p>A defconfig toybox at the start of the $PATH has successfully built
259 Linux From Scratch (in my Aboriginal Linux project). The commands that
260 'default n' in the config are often still broken, cleanup is ongoing.
261 (The new dirtree stuff broke several of them that haven't been converted
262 yet, but if I wait until everything works we won't have a release before
263 1.0, so here's a checkpoint.)</p>
264
265
266 <hr><b>March 3, 2012</b>
267
268 <blockquote><p>"They went unnoticed at Goonhilly, passed over Cape Canaveral
269 without a blip, and Woomera and Jodrell Bank looked straight through them.
270 Which was a pity, because it was exactly the sort of thing they'd been looking
271 for all these years."</p></p>- The Hitchhiker's Guide to the Galaxy.</p>
272 </p></blockquote>
273
274 <p>Here's <a href=downloads/toybox-0.2.1.tar.bz2>toybox 0.2.1</a> based
275 on <a href=http://landley.net/hg/toybox/shortlog/512>commit 512</a>.  This
276 time around, there are statically linked <a href=downloads/binaries>prebuilt
277 binaries</a> for various embedded targets.</p>
278
279 <p>It's been a busy few weeks, almost entirely due to new contributors. (I
280 have not quite been keeping up.)</p>
281
282 <p>Elie De Brauwer contributed free, uptime, swapon, swapoff, lsmod, mknod,
283 insmod, rmmod, and fixed a bug in basename.  Andre Renaud contributed ls, ln,
284 realpath, and hostname. Andres Heck contributed pidof and killall.  Daniel
285 Walter wrote kill and extended id. Timothy Elliott contributed tail and tests
286 for cmp. Frank Bergmann sent a warning fix. Bryce Fricke added -i to cp.
287 Nathan McSween pointed out an optimization. Georgi Chorbadzhiyski fixed
288 cross compiling to work more reliably.</p>
289
290 <p>(My own contribution this time around was just tightening up other people's
291 code, a build fix to unshare, some random bugfixes, and so on. My only new
292 code this time around was writing a bash replacement for the existing python
293 bloat-o-meter.)</p>
294
295 <p>Last time (the 0.2.0 release) included the first pass at an id command from
296 Tim Bird, env and basename from Tryn Mirell, cmp and head from Timothy Elliott,
297 more bugfixes from Nathan McSween and Elie De Brauwer, and Luis Felipe Strano
298 Moraes did a first pass at the who command plus other bugfixes and
299 optimizations.</p>
300
301 <p>(For that release I did xargs, cal, truncate, unlink, nohup, tty, wc, link,
302 dirname, unshare, and various infrastructure tweaks, but it took me 3 months
303 and those guys did their stuff in a week or so.)</p>
304
305
306 <hr><b>February 12, 2012</b>
307 <blockquote><p>
308 "for though it has many omissions and contains much that is apocryphal, or at
309 least wildly inaccurate, it scores over the older, more pedestrian work in two
310 important respects..."</p>
311 <p> - The Hitchhiker's Guide to the Galaxy</p></blockquote>
312
313 <p>Here's the first BSD licensed release,
314 <a href=downloads/toybox-0.2.0.tar.bz2>toybox-0.2.0</a>, more a synchronization
315 point than anything particularly useful.  47 commands in a reasonably
316 ready-to-use state (what "make defconfig" builds), another ten or so partially
317 finished stubs ("make allyesconfig"), and several
318 patches pending on the mailing list I need to review and merge.</p>
319
320 <p>More to come...</p>
321
322 <hr>
323 <p><b>November 15, 2011</b> - Back from the dead, Toybox is now under a 2
324 clause BSD license, and aiming to become the default command line
325 implementation of Android systems everywhere.</p>
326
327 <p>More to come...</p>
328
329 <hr>
330
331 <p><a href=oldnews.html>Old news</a> from before the relaunch.</p>
332
333 <!--#include file="footer.html" -->