Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 609306

Summary: =x11-wm/i3-4.13-r1 on musl - emake failed: resolve_tilde.c:28:26: error: use of undeclared identifier 'GLOB_TILDE'
Product: Gentoo Linux Reporter: Johannes Rosenberger <gentoo>
Component: Current packagesAssignee: Nelo-T. Wallus (ntnn) <nelo>
Severity: normal CC: gentoo, musl, tsmksubc
Priority: Normal Keywords: EBUILD, PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: build.log
patch for i3-4.13-r1.ebuild
patch for i3-9999.ebuild
i3 patch from Alpine Linux

Description Johannes Rosenberger 2017-02-13 23:24:21 UTC
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?

Comment 1 Johannes Rosenberger 2017-02-13 23:25:12 UTC
Created attachment 463682 [details]
Comment 2 Johannes Rosenberger 2017-02-13 23:28:16 UTC
Created attachment 463684 [details, diff]
patch for i3-4.13-r1.ebuild

* include patch for i3
* renamed from *-r1.ebuild to *-r2.ebuild
Comment 3 Johannes Rosenberger 2017-02-13 23:30:15 UTC
Created attachment 463686 [details, diff]
patch for i3-9999.ebuild

* apply patch to i3
Comment 4 Johannes Rosenberger 2017-02-13 23:31:31 UTC
Created attachment 463688 [details, diff]
i3 patch from Alpine Linux
Comment 5 Johannes Rosenberger 2017-02-13 23:43:44 UTC
Here are the updated ebuilds and the patch ready to try in my overlay on GitHub:
Comment 6 Nelo-T. Wallus (ntnn) 2017-07-28 11:36:57 UTC
Author: Nelo-T. Wallus <>
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