i3 fails to build on musl with the following message: ../../i3-4.13/libi3/resolve_tilde.c:28:26: error: use of undeclared identifier 'GLOB_TILDE' int res = glob(head, GLOB_TILDE, ((void*)0), &globbuf); GLOB_TILDE is not included in glob.h from musl but it is in development in upstream[1]. It was actually planned for musl 1.1.16[2]. I tried out the patch from Alpine Linux[3] and it just worked for i3-4.13-r1 and i3-9999 (see ebuild patches). The i3 upstream is aware of the problem and of the Alpine patch but waits for musl to implement GLOB_TILDE[4]. Shall I create a pull request for the portage tree or the musl overlay on GitHub? [1]: http://www.openwall.com/lists/musl/2017/01/17/3 [2]: http://wiki.musl-libc.org/wiki/Roadmap [3]: http://git.alpinelinux.org/cgit/aports/tree/community/i3wm/musl.patch [4]: https://github.com/i3/i3/pull/1869
Created attachment 463682 [details] build.log
Created attachment 463684 [details, diff] patch for i3-4.13-r1.ebuild * include patch for i3 * renamed from *-r1.ebuild to *-r2.ebuild
Created attachment 463686 [details, diff] patch for i3-9999.ebuild * apply patch to i3
Created attachment 463688 [details, diff] i3 patch from Alpine Linux
Here are the updated ebuilds and the patch ready to try in my overlay on GitHub: https://github.com/jorsn/jorsn-gentoo-musl/tree/master/x11-wm/i3
Author: Nelo-T. Wallus <nelo@wallus.de> Date: Thu Jul 13 21:17:15 2017 +0200 x11-wm/i3: Add GLOB_TILDE patch for musl Package-Manager: Portage-2.3.6, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/5230