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

Bug 566742

Summary: app-misc/tmux >1.9a-r2 fails to compile on musl (fixed upstream)
Product: Gentoo Linux Reporter: toast+misc
Component: Current packagesAssignee: Gentoo Shell Tools project <shell-tools>
Status: RESOLVED FIXED    
Severity: normal CC: blueness, shell-tools
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/tmux/tmux/issues/212
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Backported patch to tmux-2.1

Description toast+misc 2015-11-24 19:50:52 UTC
sys/cdefs.h is not meant to be used by applications, and is not present in musl
sys/queue.h is a self-contained header-only library, and as such is not present in musl

These are used in tmux-2.1 (and at least one in tmux-2.0).

Bug reported upstream and has been patched in git in commit 0a2ef2b (see URL)

Possibly backport said commit?
Comment 1 Felix Janda 2015-11-24 20:54:59 UTC
Created attachment 417782 [details, diff]
Backported patch to tmux-2.1

This patch is the restriction of the upstream commit to compat/vis.h.

(The compilation of version 2.0 fails for different (related) reasons.
Since 2.0-r4 is unstable while 2.1 is stable I wouldn't bother
adding a patch for version 2.0.)
Comment 2 Felix Janda 2016-06-16 12:44:21 UTC
By now only versions 2.1 and 2.2 are in the tree. The bug is fixed
upstream in version 2.2. Fox version 2.1 the patch from comment 1 is
still necessary.