Summary: | dev-util/kbuild-0.1.9998_pre20120806 with sys-libs/uclibc - ? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | René Rhéaume <rene.rheaume> |
Component: | [OLD] Development | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | Keywords: | PATCH |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 570544 | ||
Attachments: |
kbuild-uclibc.patch
kbuild-0.1.9998_pre20120806.ebuild.patch kbuild-uclibc-shthread.patch |
Created attachment 374342 [details, diff]
kbuild-0.1.9998_pre20120806.ebuild.patch
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.
Could you report the errors you purportedly patched, please? * 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 Still no idea what bugs you are fixing, I just see more vague descriptions. 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. 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. |
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