Bug#980813: (nolibc.h) Re: Bug#980813 closed by carnil@debian.org (BTS maintenance)
Control: reopen -1
On Thu, May 01, 2025 at 12:42:06PM +0000, Debian Bug Tracking System wrote:
> This bug was filed for a (very) old kernel or the bug is old itself
> without resolution.
nolibc.h has been greatly expanded since then, it's a set of 30 includes
now. It's also a lot more useful now.
> - the current version in unstable/testing
> - the latest kernel from backports
I've checked experimental, as that's the branch relevant for forky.
> > Hi!
> > The kernel sources these days ship "nolibc.h", a stand-alone header that
> > defines all syscalls and hides away per-arch differences. It's great for
> > writing programs in libc-less situations and/or writing an ad-hoc minimal
> > libc (and possibly eg. reducing 950KB /sbin/ldconfig to almost nothing).
Today I'd argue it _is_ a libc of sorts, thanks to scope creep.
> > Thus, could you please install this file?
Looking at the current state, I propose skipping this tool's Makefile which
introduces unneeded moving parts and makes the header arch-dependent. It
also has hardcoded assumptions like installing directly to
${OUTPUT}sysroot/include and so on. All of this just to avoid 5 files.
Thus, it'd be enough to install:
tools/include/nolibc/*.h /usr/include/nolibc/
Meow!
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁
⢿⡄⠘⠷⠚⠋⠀ 4.77MHz, 640KB + 16KB on the GPU, enough for anyone!
⠈⠳⣄⠀⠀⠀⠀
Reply to: