Sorry for bothering.
Fabulous Zhang Zheng <
[email protected]> 于2022年7月30日周六 01:31写道:
Thanks for your reply
<[email protected]> 于2022年7月30日周六 01:09写道:
On Sat, 30 Jul 2022 00:38:54 +0800
Fabulous Zhang Zheng <[email protected]> wrote:
Dear everyone,
While gentoo-devhelp is a better place for questions, it's been inactive >> > for years so I sent an email here. Apologies if this is solely for
gentoo
developers.
There's #gentoo-dev-help
After trying to read cmake.eclass source code, I think separately
denoting
ninja/make in src_compile and src_install might be possible. But
cmake_build still automatically detects the build type so I am confused. >> >
Take a look at CMAKE_MAKEFILE_GENERATOR variable used in cmake.eclass.
You want to change this from the default to emake if you want to use
make instead of ninja.
I noticed this variable before but it must be set before inherit.
If I try something like:
if ! use ninja; then
CMAKE_MAKEFILE_GENERATOR=emake
fi
inherit cmake xdg ninja-utils
pkgcheck will say report error:
external commands disallowed during metadata regen: 'use ninja'
Best regards
I asked this question in #gentoo-dev-help.
According to @iamben and @floppy, using the default ninja is best supported, emake would only be preferred if the package fails with ninja.
And apologies again, for bothering with this list,
I was not aware of the IRC.
Best regards
<div dir="ltr"><div dir="ltr"><div id="gmail-:uj" class="gmail-Ar gmail-Au gmail-Ao" style="display:block"><div id="gmail-:uf" class="gmail-Am gmail-Al editable gmail-LW-avf gmail-tS-tW gmail-tS-tY" aria-label="邮件正文" aria-multiline="true" style="
direction:ltr;min-height:85px" tabindex="1"><div>Sorry for bothering.</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Fabulous Zhang Zheng <<a href="mailto:
[email protected]">
[email protected]</a>&
gt; 于2022年7月30日周六 01:31写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Thanks for your reply<br></div><br><div class="
gmail_quote"><div dir="ltr" class="gmail_attr"><<a href="mailto:
[email protected]" target="_blank">
[email protected]</a>> 于2022年7月30日周六 01:09写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.
8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, 30 Jul 2022 00:38:54 +0800<br>
Fabulous Zhang Zheng <<a href="mailto:
[email protected]" target="_blank">
[email protected]</a>> wrote:<br>
> Dear everyone,<br>
> <br>
> <br>
> While gentoo-devhelp is a better place for questions, it's been inactive<br>
> for years so I sent an email here. Apologies if this is solely for gentoo<br>
> developers.<br>
There's #gentoo-dev-help<br>
> <br>
> After trying to read cmake.eclass source code, I think separately denoting<br>
> ninja/make in src_compile and src_install might be possible. But<br>
> cmake_build still automatically detects the build type so I am confused.<br>
> <br>
Take a look at CMAKE_MAKEFILE_GENERATOR variable used in cmake.eclass.<br>
You want to change this from the default to emake if you want to use<br>
make instead of ninja.<br>
<br></blockquote><div>I noticed this variable before but it must be set before inherit.</div><div>If I try something like:</div><div><br></div><div style="margin-left:40px"> if ! use ninja; then<br> CMAKE_MAKEFILE_GENERATOR=emake<br>fi<br>inherit
cmake xdg ninja-utils</div><div style="margin-left:40px"><br></div>pkgcheck will say report error:</div><div class="gmail_quote">external commands disallowed during metadata regen: 'use ninja'</div><div class="gmail_quote"><br></div><div class="
gmail_quote">Best regards<br></div></div></blockquote><div><div><br></div><div>I asked this question in #gentoo-dev-help.</div><div><br></div><div>According to @iamben and <a class="gmail_plusreply" id="gmail-plusReplyChip-1">@floppy</a>, using the
default ninja is best supported,</div><div>emake would only be preferred if the package fails with ninja.</div><div><br></div><div>And apologies again, for bothering with this list,</div><div>I was not aware of the IRC.</div><div><br></div><div>Best
regards</div> </div></div></div>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)