Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #87333 > unrolled thread

Bug#980813: (nolibc.h) Re: Bug#980813 closed by carnil@debian.org (BTS maintenance)

Started byAdam Borowski <kilobyte@angband.pl>
First post2025-05-03 15:50 +0200
Last post2025-05-03 15:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#980813: (nolibc.h) Re: Bug#980813 closed by carnil@debian.org (BTS maintenance) Adam Borowski <kilobyte@angband.pl> - 2025-05-03 15:50 +0200

#87333 — Bug#980813: (nolibc.h) Re: Bug#980813 closed by carnil@debian.org (BTS maintenance)

FromAdam Borowski <kilobyte@angband.pl>
Date2025-05-03 15:50 +0200
SubjectBug#980813: (nolibc.h) Re: Bug#980813 closed by carnil@debian.org (BTS maintenance)
Message-ID<KIlpD-sBB-1@gated-at.bofh.it>
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!
⠈⠳⣄⠀⠀⠀⠀

[toc] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web