portability improvements for non-Linux systems

Jérémie Koenig jk at jk.fr.eu.org
Wed Mar 24 12:14:37 UTC 2010


Hello,

As part of my preparation for porting debian-installer to the Hurd (as
a Debian GSoC project), I have done some preliminary work on busybox
(more is to come), namely:

0c3df06 kconfig: fix #include ordering in the bison grammar
40293cf kconfig: drop PATH_MAX
83ce04d libbb: reenable xmalloc_realpath()
0fcba35 realpath: use xmalloc_realpath() and drop PATH_MAX
1b81c60 start-stop-daemon: drop PATH_MAX
fb34704 libbb: use sysconf() to query the page size
e8f57a6 libbb: utsname.dommainname is linux-only
88782c4 libbb: setsockopt_bindtodevice() portability stub
5a913d8 umount: use xmalloc_realpath() and drop PATH_MAX
(the patches are attached)

The first patch fixes a compile failure which comes up with recent
versions of bison (see bug #1375). The others fix portability issues
on non-Linux systems. The last one is superfluous, as umount is
probably highly Linux-specific and probably won't compile on any other
system, let alone one which doesn't define PATH_MAX (the Hurd does not
have a umount() call at all).

I'm not sure whether non-Linux support in general, and Hurd support in
particular, is a priority as far as your project is concerned, however
I would be grateful if you could review those and consider including
them.

-- 
Jérémie Koenig <jk at jk.fr.eu.org>
http://jk.fr.eu.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-kconfig-fix-include-ordering-in-the-bison-grammar.patch
Type: application/octet-stream
Size: 1042 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100324/e2ee67df/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-kconfig-drop-PATH_MAX.patch
Type: application/octet-stream
Size: 4485 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100324/e2ee67df/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-libbb-reenable-xmalloc_realpath.patch
Type: application/octet-stream
Size: 1840 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100324/e2ee67df/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-realpath-use-xmalloc_realpath-and-drop-PATH_MAX.patch
Type: application/octet-stream
Size: 1272 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100324/e2ee67df/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-start-stop-daemon-drop-PATH_MAX.patch
Type: application/octet-stream
Size: 1010 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100324/e2ee67df/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-libbb-use-sysconf-to-query-the-page-size.patch
Type: application/octet-stream
Size: 1751 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100324/e2ee67df/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-libbb-utsname.dommainname-is-linux-only.patch
Type: application/octet-stream
Size: 831 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100324/e2ee67df/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-libbb-setsockopt_bindtodevice-portability-stub.patch
Type: application/octet-stream
Size: 1204 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100324/e2ee67df/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-umount-use-xmalloc_realpath-and-drop-PATH_MAX.patch
Type: application/octet-stream
Size: 3368 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100324/e2ee67df/attachment-0008.obj>


More information about the busybox mailing list