Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 506874

Summary: dev-util/kbuild-0.1.9998_pre20120806 with sys-libs/uclibc - ?
Product: Gentoo Linux Reporter: René Rhéaume <rene.rheaume>
Component: [OLD] DevelopmentAssignee: 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

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.