Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361541 - sys-apps/busybox-1.8.13 fails to compile on a x86 uclibc box
Summary: sys-apps/busybox-1.8.13 fails to compile on a x86 uclibc box
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
: 367235 380535 405231 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-01 01:39 UTC by Adeel
Modified: 2012-04-23 15:36 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch without bugzilla damage. (busybox-1.18.3-fix-nsec.patch,442 bytes, patch)
2011-04-10 17:50 UTC, Nick Bowler
Details | Diff
busybox-1.19.4-date_nano.patch (busybox-1.19.4-date_nano.patch,553 bytes, patch)
2012-02-22 18:31 UTC, Iwan Aucamp
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adeel 2011-04-01 01:39:48 UTC
This is exactly the same issue as discussed in http://bugs.gentoo.org/335947 . Seems like the upstream patch wasn't introduced in the 1.18.3 release; the fix is the same, but the line numbers differ.


here's the updated patch:


--- coreutils/date.c    2011-02-08 17:24:57.000000000 +0000
+++ coreutils/date1.c   2011-04-01 01:31:26.000000000 +0000
@@ -249,7 +249,7 @@ int date_main(int argc UNUSED_PARAM, cha
                xstat(filename, &statbuf);
                ts.tv_sec = statbuf.st_mtime;
 #if ENABLE_FEATURE_DATE_NANO
-               ts.tv_nsec = statbuf.st_mtim.tv_nsec;
+               ts.tv_nsec = statbuf.st_mtimensec;
                /* some toolchains use .st_mtimensec instead of st_mtim.tv_nsec */
 #endif
        } else {
Comment 1 Nick Bowler 2011-04-10 17:50:10 UTC
Created attachment 269353 [details, diff]
Patch without bugzilla damage.

Note that bugzilla will destroy patches that are posted in the comment field, so here's the same patch as an attachment.
Comment 2 SpanKY gentoo-dev 2011-08-07 20:25:39 UTC
*** Bug 367235 has been marked as a duplicate of this bug. ***
Comment 3 SpanKY gentoo-dev 2011-08-28 02:01:26 UTC
*** Bug 380535 has been marked as a duplicate of this bug. ***
Comment 4 SpanKY gentoo-dev 2012-02-22 17:24:11 UTC
*** Bug 405231 has been marked as a duplicate of this bug. ***
Comment 5 Iwan Aucamp 2012-02-22 18:31:52 UTC
Created attachment 302887 [details, diff]
busybox-1.19.4-date_nano.patch

I have created a patched ebuild of sys-apps/busybox-1.19.4 which fixes this -
can be found in overlay:
https://gitorious.org/abraxas-gentoo-overlay/abraxas-gentoo-overlay

Patch is also attatched, please note that changing statbuf.st_mtim.tv_nsec to st_mtimensec without checks will break glibc.
Comment 6 SpanKY gentoo-dev 2012-04-23 15:36:46 UTC
latest uclibc + busybox seem to build fine together