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

Bug 538684

Summary: app-shells/zsh should install header files
Product: Gentoo Linux Reporter: ZyX <kp-pav>
Component: [OLD] UnspecifiedAssignee: Tim Harder <radhermit>
Status: RESOLVED FIXED    
Severity: normal CC: kp-pav
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: zsh-5.0.7-r2.ebuild.diff

Description ZyX 2015-02-03 16:21:42 UTC
Created attachment 395458 [details, diff]
zsh-5.0.7-r2.ebuild.diff

When zsh package is being installed it lacks headers that are necessary for compiling zsh third-party modules (I currently know only of one: my zpython). This patch adds necessary headers, putting them into /usr/include/zsh. It is assumed that they will be inluded using

    #define MODULE
    #include <zsh/zsh.mdh>

in place where module present in zsh distribution will use

    #include "{module_name}.mdh"

. Additionally it installs makepro.awk script to /usr/share/zsh and aczshoot.m4 to /usr/share/aclocal. I have actually no idea what can they be useful for (zpython builds fine without both), but in Debian zsh-dev maintainers install them.

I hope this patch and a fix to debian zsh-dev package will attract more developers to writing zsh third-party modules.
Comment 1 Tim Harder gentoo-dev 2015-06-21 05:08:24 UTC
Headers are now installed in 5.0.8, makepro.awk and the m4 file aren't as they seem somewhat pointless to install since most external modules using autotools would probably just bundle them if they used them.