Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506874 - dev-util/kbuild-0.1.9998_pre20120806 with sys-libs/uclibc - ?
Summary: dev-util/kbuild-0.1.9998_pre20120806 with sys-libs/uclibc - ?
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: uclibc-porting
  Show dependency tree
 
Reported: 2014-04-06 01:22 UTC by René Rhéaume
Modified: 2018-10-14 12:12 UTC (History)
0 users

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


Attachments
kbuild-uclibc.patch (kbuild-uclibc.patch,3.35 KB, patch)
2014-04-06 01:22 UTC, René Rhéaume
Details | Diff
kbuild-0.1.9998_pre20120806.ebuild.patch (kbuild-0.1.9998_pre20120806.ebuild.patch,315 bytes, patch)
2014-04-06 01:24 UTC, René Rhéaume
Details | Diff
kbuild-uclibc-shthread.patch (kbuild-uclibc-shthread.patch,315 bytes, patch)
2014-04-06 01:28 UTC, René Rhéaume
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description René Rhéaume 2014-04-06 01:22:15 UTC
Created attachment 374340 [details, diff]
kbuild-uclibc.patch

kbuild as is does compile on uclibc. It is due to missing defines, and because the functions lchmod (a BSD extension) and getloadavg do not exist in uclibc. I attach the build fix patch here.

That does not allow to build VirtulaBox on uclibc yet
Comment 1 René Rhéaume 2014-04-06 01:24:02 UTC
Created attachment 374342 [details, diff]
kbuild-0.1.9998_pre20120806.ebuild.patch
Comment 2 René Rhéaume 2014-04-06 01:28:41 UTC
Created attachment 374344 [details, diff]
kbuild-uclibc-shthread.patch

This patch should not sent upstream. However, I am unable to fix the preprocessing problem leading to "#error Port me" when building shthread.c on uclibc. I only came with this ugly hack applied conditionally.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-06 14:24:12 UTC
Could you report the errors you purportedly patched, please?
Comment 4 René Rhéaume 2014-04-06 17:20:50 UTC
* Added lchmod implementation in src/kmk/kmkbuiltin/chmod.c and kmk/kmkbuiltin/cp_utils.c.
* Added __UCLIBC__ conditional in src/kmk/kmkbuiltin/cp.c , src/kmk/kmkbuiltin/fts.c , src/lib/k/kDefs.h , 
* Added getloadavg implementation in src/kmk/job.c
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-07 00:10:55 UTC
Still no idea what bugs you are fixing, I just see more vague descriptions.
Comment 6 SpanKY gentoo-dev 2014-08-03 14:34:32 UTC
the lchmod call should be changed to fchmodat.  the former is not in POSIX while the latter is, and both glibc/uclibc support it already.
Comment 7 Anthony Basile gentoo-dev 2018-10-14 12:12:20 UTC
sys-libs/uclibc has been removed from the tree, replaced by sys-libs/uclibc-ng.  if this is still a problem on uclibc-ng, please open a new bug.