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


Groups > linux.debian.bugs.dist > #1244591

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

From Adam Borowski <kilobyte@angband.pl>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#980813: (nolibc.h) Re: Bug#980813 closed by carnil@debian.org (BTS maintenance)
Date 2025-05-03 15:50 +0200
Message-ID <KIlpD-sBB-1@gated-at.bofh.it> (permalink)
References <KHBwt-hzGZ-3@gated-at.bofh.it> <BAaUO-5hl-9@gated-at.bofh.it> <KIlpD-sBB-3@gated-at.bofh.it> <BAaUO-5hl-9@gated-at.bofh.it> <KIlpD-sBB-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


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!
⠈⠳⣄⠀⠀⠀⠀

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web