shellinabox: fix build on musl
authorOlivier Singla <olivier.singla@gmail.com>
Thu, 4 Aug 2016 01:47:12 +0000 (21:47 -0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 4 Aug 2016 20:38:14 +0000 (22:38 +0200)
commit35ccd358b304413229fc2e32f1318426cbb23a20
treec9b546cff946296f9f114cc0f2203c5cac319116
parent99ed68487a83380cf00ba5c602746ada3f995bf7
shellinabox: fix build on musl

This commit fixes the build of shellinabox with the musl C library,
which requires two changes:

 - A patch to include <sys/ttydefaults.h>, which is needed to get the
   definitions of TTYDEF_*

 - A hack to workaround what seems to be a problem in musl itself (musl
   does #define utmp utmpx, which causes some symbol conflicts down the
   road). Since anyway the utmpx implementation is just a set of stubs
   in musl, we simply make shellinabox believe that <utmpx.h> is not
   available by passing the appropriate variable. The musl issue has
   been reported at http://www.openwall.com/lists/musl/2016/08/04/8.

Fixes:

  http://autobuild.buildroot.net/results/1847cab964957da3c9bf4911a5ad3602b3c82431/

Signed-off-by: Olivier Singla <olivier.singla@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/shellinabox/0002-launcher.c-include-sys-ttydefaults.h.patch [new file with mode: 0644]
package/shellinabox/shellinabox.mk