Skip to content

Build with musl libc

Josiah Worcester util-linux 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6fdisk, display, hexdump.h: Use standard C types instead of u_int, u_char, u_long, etc.fdisk/fdiskbsdlabel.c text-utils/display.c text-utils/hexdump.h+35 -350 replies
2/6fsck, checktty, flock: Use more portable includes.fsck/fsck.c login-utils/checktty.c sys-utils/flock.c+6 -10 replies
3/6checktty: Use NGROUPS_MAX instead of NGROUPSlogin-utils/checktty.c+2 -21 reply
4/6lib/tt.c: Fix mbs_width macro for systems without WIDECHARlib/tt.c+1 -10 replies
5/6test_sysinfo: Use CHAR_BIT*sizeof(void*) instead of __WORDSIZE.tests/helpers/test_sysinfo.c+1 -10 replies
6/6hwclock: Don't use asm/io.h if sys/io.h can't be foundhwclock/cmos.c+6 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] Build with musl libc

I was trying to build util-linux with the musl libc (http://www.etalabs.net/musl/),
and found that a few patches were needed. These seem to just be some minor cleanups in most cases. I'm a bit dubious of the hwclock patch, though, as it seems at least a little bit hackish.

Josiah Worcester (6):
fdisk, display, hexdump.h: Use standard C types instead of u_int,
u_char, u_long, etc.
fsck, checktty, flock: Use more portable includes.
checktty: Use NGROUPS_MAX instead of NGROUPS
lib/tt.c: Fix mbs_width macro for systems without WIDECHAR
test_sysinfo: Use CHAR_BIT*sizeof(void*) instead of __WORDSIZE.
hwclock: Don't use asm/io.h if sys/io.h can't be found

 fdisk/fdiskbsdlabel.c        |   34 +++++++++++++++++-----------------
 fsck/fsck.c                  |    2 +-
 hwclock/cmos.c               |    7 ++++++-
 lib/tt.c                     |    2 +-
 login-utils/checktty.c       |    7 +++++--
 sys-utils/flock.c            |    2 ++
 tests/helpers/test_sysinfo.c |    2 +-
 text-utils/display.c         |   32 ++++++++++++++++----------------
 text-utils/hexdump.h         |    4 ++--
 9 files changed, 51 insertions(+), 41 deletions(-)
Signature · 1 line
1.7.5.3