See https://bugs.gentoo.org/740754#c6 `libtextstyle` is optional for bison. The configure script probes for it and links to the library if available, or doesn't if it's not. Ideally we would guard this behavior behind the `gettext` USE flag so we can conditionally control the `gettext` dependency. Reproducible: Always
Created attachment 885534 [details, diff] My failed attempt at adding the flag. I think we need to add the flag to `libtextstyle-optional.m4` instead of the `configure.ac`. I'm not sure where `libtextstyle-optional.m4` came from though.
Created attachment 885556 [details, diff] Working patch! I had to modify the file in the `m4` directory, not sure if that's allowed or if those are auto generated.
Created attachment 885658 [details, diff] gnulib libtextstyle patch I sent the following patch to gnulib upstream. The email hasn't shown up in the list archive though: https://lists.gnu.org/archive/html/bug-gnulib/2024-02/index.html Unfortunately I don't think there is a patch to send to upstream to bison. I think they just need to cut a new release that pulls in the latest gnulib. I'll send a PR for the bison ebuild.
Just FYI, here is the PR: https://github.com/gentoo/gentoo/pull/35479