| 01:23:42 | bug1 | anyone understand the purpose of the two dup(fd) statements in the busybox openvt applet posted to the n-l |
| 01:27:44 | mjn3 | bug1: you still there? |
| 01:32:21 | mjn3 | bug1: oh well, anyway... he closes fd 0 (stdin) and then open()s the new vt. so the fd returned for it is 0 since that is the lowest available. then he closes 1 (stdout) and 2 (stderr) and dup()s twice so that fds 1 and 2 now point to the new vt as well |
| 01:33:36 | bug1 | yep |
| 01:34:17 | bug1 | cool |
| 01:35:25 | bug1 | that makes sense, i couldnt work it out by looking at it though |
| 01:35:44 | bug1 | ill commit the applet |
| 01:36:41 | bug1 | i better have a look at that cp butg as well that 2 people have mentioned |
| 01:37:02 | mjn3 | if you're adding stuff, i posted a mesg applet to the list in may... in response to someone else's rather bloated version. i never did add it. it would need to be integrated. it is message 2002-May/011409.html in the mailing list archive |
| 01:37:54 | bug1 | ok, ill look into it |
| 01:40:31 | mjn3 | thanks. glad i could help with the openvt thing. later |
| 01:40:42 | bug1 | k |
| 01:45:52 | bug1 | hi Erik, im going to commit the openvt applet soon (unless you have reservations) |
| 01:46:25 | andersee | No worries. |
| 01:46:34 | andersee | I see you got awk, thanks |
| 01:46:42 | bug1 | Ill also look into that cp bug that 2 people have mentioned |
| 01:47:00 | bug1 | i think awk will be usefull to a few people adds a lot of flexibility |
| 01:47:19 | bug1 | not sure what cp is usppoed to do though |
| 01:59:10 | bug1 | andersee: another thing im unsure about is vlad's dhcpcd applet |
| 01:59:41 | bug1 | i think he put a fair bit of effort into it, havent tried it yet htough |
| 02:02:05 | andersee | Me either |
| 02:09:49 | bug1 | openvt going in now |
| 03:44:48 | andersee | bug1: I'm adding tainting support to busybox lsmod/insmod... |
| 03:47:08 | bug1 | ok, that allows it to load lgpl'ed (etc) modules i asusme |
| 03:48:18 | bug1 | such as plex86 |
| 03:48:42 | andersee | $ ./busybox lsmod | head -n 1 |
| 03:48:42 | andersee | Module Size Used by Not tainted |
| 03:48:44 | andersee | $ ./busybox lsmod | head -n 1 |
| 03:48:44 | andersee | Module Size Used by Tainted: PF |
| 03:49:06 | andersee | I just loaded the vmware kernel module to taint my kernel. lsmod works now. |
| 03:49:16 | bug1 | cool |
| 03:49:32 | andersee | Now to fixup tainting in insmod |
| 03:49:33 | bug1 | do you understand how cp is supposed to work wit hspecial files ? |
| 03:49:43 | andersee | What do you mean? |
| 03:50:08 | andersee | 'cp /dev/fd0 /tmp/foo' should copy the contents of the floppy |
| 03:50:15 | bug1 | its been reported by 2 people the busybox cp behaves differently to gnu cp with pipes, devices etc |
| 03:50:18 | andersee | 'cp -a /dev/fd0 /tmp/foo' should copy the device special file itself |
| 03:50:31 | andersee | Hmm |
| 03:50:42 | andersee | I guess its worth looking at. |
| 03:51:19 | andersee | I know I tested cp behavior pretty carefully, but people have changed things since then.... |
| 03:51:57 | bug1 | ill do some tests anyway |
| 03:52:39 | andersee | cool, thx |
| 03:55:36 | bug1 | cp /dev/null . copies the node itself not the contents.... dont you need to use dd to read the contents |
| 03:56:28 | andersee | Nope. |
| 03:56:56 | andersee | $ cp /dev/null . && ls -l ./null |
| 03:56:57 | andersee | -rw-r--r-- 1 andersen andersen 0 Sep 15 23:03 ./null |
| 03:57:11 | andersee | It creates a zero length file. Not a device node. |
| 03:57:29 | andersee | Busybox cp should not copy device nodes by default.... |
| 03:58:30 | bug1 | hmmm, the current bb behaviour seems to make more sense to me |
| 03:59:33 | bug1 | whats the point it creating an empty file |
| 04:00:09 | andersee | Try testing something else, like /dev/fd0 |
| 04:00:28 | bug1 | ahh cp /dev/null -a creates the device |
| 04:04:15 | andersee | right |
| 04:11:30 | andersee | hehe |
| 04:11:35 | andersee | It works |
| 04:11:36 | andersee | $ sudo ./busybox insmod vmmon |
| 04:11:37 | andersee | Using /lib/modules/2.4.20-pre7-erik/misc/vmmon.o |
| 04:11:37 | andersee | Warning: loading vmmon will taint the kernel: no license |
| 04:11:37 | andersee | See http://www.tux.org/lkml/#export-tainted for information about tainted modules |
| 04:12:37 | bug1 | cool |
| 04:17:23 | bug1 | just sent a one line patch to the mailing list re the cp bug... ill be back later |
| 06:52:37 | andersee | bug1: you still around? |
| 06:54:01 | bug1 | yes |
| 06:54:26 | bug1 | (reading up on my zaurus i just got) |
| 06:54:43 | andersee | :-) |
| 06:54:48 | andersee | wants to get one too |
| 06:55:21 | andersee | See any other bugs I should fix before releasing 0.60.4? |
| 06:55:28 | andersee | http://bugs.busybox.net/db/pa/lbusybox.html |
| 06:55:36 | andersee | Any idea on the dpkg bug? |
| 06:55:53 | bug1 | the segfault bug ? |
| 06:56:14 | bug1 | im suspect it may be caused by dmalloc |
| 06:56:48 | bug1 | the fix just got rid of a possible free(NULL) if i remember correctly |
| 06:57:17 | bug1 | dmalloc defaults to deliberatly not handleing free(NULL) |
| 06:58:14 | andersee | Hmm. Do you know if he was using dmalloc? |
| 06:58:28 | andersee | I didn't see that mentioned |
| 06:58:31 | bug1 | he didnt say |
| 06:59:12 | andersee | So perhaps we should write it off as user error? |
| 06:59:24 | andersee | I suppose we could memset(file_entry, 0, sizeof(foo)) |
| 06:59:28 | andersee | Just in case.... |
| 07:00:42 | bug1 | yea i guesss it couldnt hurt |
| 07:00:59 | bug1 | i actually havnet done anything with dpkg for ages |
| 07:01:41 | andersee | Perhaps its best to ignore it... |
| 07:02:01 | bug1 | yea, dont worry about it |
| 07:02:59 | andersee | I'm looking over the debian bug reports now. |
| 07:03:00 | andersee | http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=busybox&repeatmerged=yes |
| 07:03:22 | andersee | Looks like #158706 is easy to fix. :) |
| 07:05:05 | bug1 | i wouldnt worry about the bb ash bug reports too much, ash is still improving |
| 07:05:59 | andersee | I'm actually considering backporting ash from busybox unstable... I think the unstable on is actually more solid at the moment. |
| 07:06:56 | bug1 | you mean backporting to unstable ? |
| 07:07:50 | bug1 | ill do that uname patch if you like |
| 07:08:18 | andersee | I mean taking busybox/shell/ash.c and busybox/libbb/arith.c and backporting then to busybox.stable/ash.c and busybox.stable/libbb/arith.c |
| 07:08:31 | andersee | bug1: Already finished the uname patch. |
| 07:08:33 | andersee | :) |
| 07:08:40 | bug1 | k |
| 07:09:23 | bug1 | isnt that the way ash should be going anyway ? |
| 07:09:58 | bug1 | is stable going to stay the old layout ? |
| 07:10:36 | andersee | Well, ideally, I'd like this to be the end of the line for the 0.60.x... So yeah the one from unstable is where new and interesting things happen. |
| 07:11:01 | bug1 | that mv bug (127522) sounds pretty nasty |
| 07:11:26 | andersee | Looks it. Probably some error checking gone awry |
| 07:14:20 | bug1 | mv works for me |
| 07:14:33 | andersee | Hmm. |
| 07:14:34 | bug1 | must have been something specific to what he was doing |
| 07:14:40 | andersee | Perhaps so. |
| 07:14:51 | andersee | Shall I close it (unreproducable) |
| 07:14:53 | andersee | ? |
| 07:16:16 | bug1 | yea |
| 07:16:23 | bug1 | or ask for more information |
| 07:16:35 | bug1 | but its probably too late for that |
| 07:17:10 | bug1 | #138060: losetup missing that wouldnt take long to put in |
| 07:18:02 | bug1 | but if bb mount supports -o loop than losetup isnt needed is it ? |
| 07:22:26 | bug1 | #148396 looks like free might be converting kB incorrectly |
| 07:23:40 | bug1 | hmm |
| 07:25:54 | andersee | bug1: I added losetup to the .deb so we are good there. |
| 07:26:16 | andersee | bug1: depends on what one is using losetup for. |
| 07:26:55 | andersee | bug1: I'll just enable it (cuz its tiny) to close the bug and let aph worry about the result.... |
| 07:28:56 | bug1 | i think you close #148396 |
| 07:29:27 | bug1 | free and bb free display different amount of free space becasue the buffer increases everytime you run it :) |
| 07:31:41 | bug1 | there is the preserve hardlinks build option in unstable to handle 122860 |
| 07:41:25 | bug1 | busybox.org bug #1224 could be done, the watch applet |
| 07:44:24 | andersee | bug1: hehe |
| 07:50:00 | bug1 | ive got the watch applet ready to commit |
| 07:50:44 | bug1 | except it doesnt compile.. hmm |
| 08:04:26 | bug1 | can close #1224 watch is in there |
| 08:07:27 | andersee | will do, thx. |
| 08:13:13 | andersee | I'm looking at that 'cp' bug just reported |
| 08:17:21 | bug1 | my approach was to just trieat it like a file unless the -a option was used |
| 08:17:43 | bug1 | regular file rather than a special file |
| 08:19:28 | andersee | I just checked in a fix. I did the simple/dumb thing that looked simplest... |
| 08:20:04 | andersee | http://busybox.net/cgi-bin/cvsweb/busybox.stable/libbb/copy_file.c.diff?r1=1.16&r2=1.17 |
| 08:26:07 | bug1 | i guess it will do, cp and mv might need a bit of attention in future though, it seems overly complex |
| 08:26:53 | andersee | indeed |
| 08:27:07 | andersee | I was tempted to pull things into a common function |
| 08:27:38 | andersee | But decided to make things simple/obvious. An easy target to optimize later... |
| 08:29:17 | bug1 | fair enough |
| 08:29:50 | bug1 | back in half hour or so |
| 08:30:16 | andersee | The only thing I can see remaining is ash... I'll put it to the list whether to backport ash from unstable for the 0.60.4 release... |
| 13:03:27 | mjn3 | andersee: morning |
| 13:04:29 | andersee | morning |
| 13:04:46 | andersee | I got busybox in reasonable shape last night... |
| 13:05:11 | mjn3 | i'm just reading the posted messages |
| 13:05:19 | andersee | Also (finally!) got the gcc 2.95 toolchain to build with the STLport C++ lib. |
| 13:05:25 | mjn3 | cool |
| 13:05:33 | andersee | I'll be releasing that and the gcc-3.2 toolchains today |
| 13:06:04 | mjn3 | alright. guess i'll do some rebuilding then... ;-) |
| 13:06:22 | andersee | :-) |
| 13:11:48 | andersee | mjn3: cool. The gcc-2.95/STLport toolchain works perfectly. I just need to fixup the default c++ include dir and I'm (finally) done. |
| 13:12:03 | mjn3 | anyone know of a small implementation of diff? the only one i've been able to find is a rather limited version from the minix src |
| 13:45:41 | mjn3 | andersee: ugh... i just tried the new busybox watch applet. to clean the screen it outputs 25 newlines. :-( |
| 13:48:12 | andersee | ick |
| 13:48:19 | andersee | hasn |
| 13:48:25 | andersee | hasn't read it yet |