[Bug 13096] New: Patch to make busybox build on Hurd
bugzilla at busybox.net
bugzilla at busybox.net
Sat Jul 18 21:26:13 UTC 2020
https://bugs.busybox.net/show_bug.cgi?id=13096
Bug ID: 13096
Summary: Patch to make busybox build on Hurd
Product: Busybox
Version: 1.32.x
Hardware: All
OS: Other
Status: NEW
Severity: minor
Priority: P5
Component: Other
Assignee: unassigned at busybox.net
Reporter: schierlm at gmx.de
CC: busybox-cvs at busybox.net
Target Milestone: ---
Created attachment 8541
--> https://bugs.busybox.net/attachment.cgi?id=8541&action=edit
Busybox patch
For my Hurd rescue system, I decided to include busybox as it has many useful
tools.
However, I ran into 4 small issues while compiling my desired collection of
applets (other applets do not compile at all as they use Linux specific APIs,
but that is fine as I can always exclude them from my busybox build).
PATH_MAX is undefined, which is used on the host to compute applet tables.
Work around it by simply defining it to 1024 if undefined.
LOGIN_NAME_MAX is undefined, which is used in die_if_bad_username.c.
Conditionally exclude this check if undefined.
mailutils.c includes prctl.h, although only two applets (sendmail and
popmaildir) need it.
RLIMIT_NICE is undefined on Hurd, which is used in shell_common.c. Note that I
took the liberty to reorder the limits list so that LIMIT_F_IDX can always stay
at 2.
Patch is attached, and also available from
<https://github.com/schierlm/HurdRescue/blob/master/busybox-1.32.0-fixes.patch>.
Config is available from
<https://github.com/schierlm/HurdRescue/blob/master/busybox-1.32.0-.config>.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list