| Summary: | expr in busybox can't handle math with big numbers | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Gary Thomas <gary> |
| Component: | core | Assignee: | Andrei Gherzan <andrei> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Low | CC: | andrei, lauri.hintsala, meta.mr.watcher, meta.watcher, richard.purdie |
| Version: | 1.1 | ||
| Target Milestone: | 1.2 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Gary Thomas
2011-11-16 03:24:54 UTC
I compiled busybox on my machine and this bug is still present. So i think that this is a busybox bug and not a yocto one. You can test this by downloading source tar ball from upstream and: ~/Desktop/busybox-1.19.3 $ ./expr 111517272011 - 111517292011 0 ~/Desktop/busybox-1.19.3 $ ./expr 111517272011 111517272011 ~/Desktop/busybox-1.19.3 $ ./expr 65536 - 4 65532 (In reply to comment #1) > I compiled busybox on my machine and this bug is still present. So i think that > this is a busybox bug and not a yocto one. You can test this by downloading > source tar ball from upstream and: > > ~/Desktop/busybox-1.19.3 $ ./expr 111517272011 - 111517292011 > 0 > ~/Desktop/busybox-1.19.3 $ ./expr 111517272011 > 111517272011 > ~/Desktop/busybox-1.19.3 $ ./expr 65536 - 4 > 65532 So the problem was around a busybox config. I will commit this change in order to fix this bug. Edwin, you can assign this bug to me if you didn't already fix this. Fix: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=91367de75575e79a94b2f90b6b7aa8740a039fc5 (In reply to comment #4) > Fix: > http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=91367de75575e79a94b2f90b6b7aa8740a039fc5 Sorry. My fix was for yocto time set issue, which was caused by this bug. You can forget my comment. |