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. It was actually planned for musl 1.1.16.
I tried out the patch from Alpine Linux 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.
Shall I create a pull request for the portage tree or the musl overlay on GitHub?
Created attachment 463682 [details]
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:
Author: Nelo-T. Wallus <firstname.lastname@example.org>
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