[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox-cvs
Subject:    [Bug 13096] New: Patch to make busybox build on Hurd
From:       bugzilla () busybox ! net
Date:       2020-07-18 21:26:13
Message-ID: bug-13096-161 () https ! bugs ! busybox ! net/
[Download RAW message or body]

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@busybox.net
          Reporter: schierlm@gmx.de
                CC: busybox-cvs@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.
_______________________________________________
busybox-cvs mailing list
busybox-cvs@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic