<div dir="ltr"><img width="0" height="0" alt="" style="display:flex" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="emailTracker"><div dir="ltr"><img src="cid:ii_kt5ww4lk3" alt="image.gif" width="1" height="1"><img src="cid:ii_kt4whkxl0" alt="image.gif" width="1" height="1">Hi, Axel.<div><br></div><div>Thanks for the prompt response.</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>Hrm, yes, but this is caused by this sed call in debian/rules:</span></blockquote><br><span> # Doesn't this need to go before we zcompile stuff into .zwc files? -- Axel</span><br><span> sed -i -e 's,^local HELPDIR=.*,local HELPDIR=$${HELPDIR:-/usr/share</span><span>/zsh/help},; s,:-more,:-/usr/bin/pager,;' \</span><br><span> debian/zsh-common/usr/share/zs</span><span>h/functions/Misc/run-help</span><br><span> sed -i -e '1!b;s:^#!.*[ /]zsh:#!/bin/zsh:;s#/usr/local</span><span>/bin#/usr/bin#;' \</span><br><span> `find debian/zsh-common/usr/share/zs</span><span>h/functions -type f`</span><br clear="all"><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><span>Oh, I see it now. Maybe I even read this comment, but before understanding what was going on, so haven't got my attention.</span></div><div dir="ltr"><span><br></span></div><div>For the fix, is it possible to edit the 'configure' file that sets the 'runhelpdir' variable before compilation? The path is not hardcoded in the 'run-help' source file. Something in the lines of:</div><div><br></div></div></div></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div>sed -i -e "s,/'\$${VERSION}'/,/," configure</div></div></div></div></div></div></blockquote><div><br></div>or even<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>sed -i -e 's,/[^/]\+/\(functions\|help\),/\1,' configure</div></div></blockquote><div><br></div><div><br></div>Best,<div><div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Leonardo Gama</div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qui., 2 de set. de 2021 às 23:54, Axel Beckert <<a href="mailto:abe@debian.org" target="_blank">abe@debian.org</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Control: retitle -1 zsh: Modifying HELPDIR comes too late, doesn't catch .zwc files<br>
Control: tag -1 + confirmed<br>
<br>
Hi Leo,<br>
<br>
Leo Gama wrote:<br>
> Subject: "functions/Misc.zwc" isn't compiled from the bundled source files<br>
<br>
Sorry, but that's clearly not true: Since zsh_5.8.orig.tar.xz does not<br>
contain any .zwc file, all .zwc files in the binary packages can't be<br>
anything else than compiled from the bundled source at package build<br>
time.<br>
<br>
> If I try to call "run-help" at a ZSH prompt, it reports:<br>
> > $ run-help<br>
> > There is no list of special help topics available at this time.<br>
<br>
Can confirm that, though.<br>
<br>
> And trying to use it to see the help text for any built-in command just<br>
> opens a man page for zsh...<br>
> <br>
> Turns out that the default HISTDIR (which is wrong) in the file that<br>
> contains the bytecode compiled version of "run-help" is different from the<br>
> default in the source code "run-help" file:<br>
> > $ grep 'HELPDIR:-/' /usr/share/zsh/functions/Misc/run-help<br>
> > local HELPDIR=${HELPDIR:-/usr/share/zsh/help}<br>
> > $ strings /usr/share/zsh/functions/Misc.zwc | grep 'HELPDIR:-/'<br>
> > HELPDIR:-/usr/share/zsh/5.8/help<br>
> > HELPDIR:-/usr/share/zsh/5.8/help<br>
<br>
Hrm, yes, but this is caused by this sed call in debian/rules:<br>
<br>
# Doesn't this need to go before we zcompile stuff into .zwc files? -- Axel<br>
sed -i -e 's,^local HELPDIR=.*,local HELPDIR=$${HELPDIR:-/usr/share/zsh/help},; s,:-more,:-/usr/bin/pager,;' \<br>
debian/zsh-common/usr/share/zsh/functions/Misc/run-help<br>
sed -i -e '1!b;s:^#!.*[ /]zsh:#!/bin/zsh:;s#/usr/local/bin#/usr/bin#;' \<br>
`find debian/zsh-common/usr/share/zsh/functions -type f`<br>
<br>
Actually your issue is already mentioned in form of the question in<br>
the comment in front of that rule. Or in other words: Your bug report<br>
just answered that question with "yes". :-)<br>
<br>
Retitling the bug report accordingly.<br>
<br>
Regards, Axel<br>
-- <br>
,''`. | Axel Beckert <<a href="mailto:abe@debian.org" target="_blank">abe@debian.org</a>>, <a href="https://people.debian.org/~abe/" rel="noreferrer" target="_blank">https://people.debian.org/~abe/</a><br>
: :' : | Debian Developer, <a href="http://ftp.ch.debian.org" rel="noreferrer" target="_blank">ftp.ch.debian.org</a> Admin<br>
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5<br>
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE<br>
</blockquote></div>
<br></div>