diff options
author | Sam James <sam@gentoo.org> | 2022-12-02 06:13:03 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-12-02 21:09:49 +0000 |
commit | 0651969b55abf2bce481cb8d48a983463ddcc5cf (patch) | |
tree | dcb6a544646ef2ec4cf3e436608584f2fa54a1ea /app-alternatives | |
parent | app-alternatives/yacc: define LICENSE and HOMEPAGE for the virtual (diff) | |
download | gentoo-0651969b55abf2bce481cb8d48a983463ddcc5cf.tar.gz gentoo-0651969b55abf2bce481cb8d48a983463ddcc5cf.tar.bz2 gentoo-0651969b55abf2bce481cb8d48a983463ddcc5cf.zip |
app-alternatives/yacc: install env.d file for YACC
Without this, autotools will end up probing for bison even when
it's not specifically needed.
If packages really do need bison, it's not expected that
ebuild maintainers will fix the underlying problem, but
the ebuilds should then set YACC=bison and BDEPEND on it.
If upstream is active, they should consider reporting the problem
to them though.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-alternatives')
-rw-r--r-- | app-alternatives/yacc/yacc-1.ebuild | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app-alternatives/yacc/yacc-1.ebuild b/app-alternatives/yacc/yacc-1.ebuild index 93e55d2d17fd..d5508b6ebb90 100644 --- a/app-alternatives/yacc/yacc-1.ebuild +++ b/app-alternatives/yacc/yacc-1.ebuild @@ -28,12 +28,24 @@ src_install() { # around bison(1). dosym yacc.bison /usr/bin/yacc newman - yacc.1 <<<".so yacc.bison.1" + + newenvd - 90yacc <<-EOF + YACC=bison + EOF elif use byacc; then dosym byacc /usr/bin/yacc newman - yacc.1 <<<".so byacc.1" + + newenvd - 90yacc <<-EOF + YACC=byacc + EOF elif use reference; then dosym yacc-reference /usr/bin/yacc newman - yacc.1 <<<".so yacc-reference.1" + + newenvd - 90yacc <<-EOF + YACC=yacc + EOF else die "Invalid USE flag combination (broken REQUIRED_USE?)" fi |