The command "info gcc" stopped working after upgrading from gcc-11.2.0 to gcc-11.2.1_p20220115, with and without the "doc" use flag. Reproducible: Always
Indeed, sys-devel/gcc-11.2.1_p20220115 doesn't install any info pages at all (info gcc, info cpp and so on), with or without 'doc' USE flag. The problem (at the moment) is caused by missing .info files in source archive: localhost ~ # tar tvJf /var/cache/distfiles/gcc-11-20220115.tar.xz | grep '\.info' localhost ~ # tar tvJf /var/cache/distfiles/gcc-11.2.0.tar.xz | grep '\.info' -rw-r--r-- rguenther/users 3105741 2021-07-28 07:06 gcc-11.2.0/gcc/doc/gcc.info -rw-r--r-- rguenther/users 50309 2021-07-28 07:06 gcc-11.2.0/gcc/doc/cppinternals.info -rw-r--r-- rguenther/users 242655 2021-07-28 07:06 gcc-11.2.0/gcc/doc/cpp.info -rw-r--r-- rguenther/users 2761282 2021-07-28 07:06 gcc-11.2.0/gcc/doc/gccint.info -rw-r--r-- rguenther/users 218776 2021-07-28 07:06 gcc-11.2.0/gcc/doc/gccinstall.info -rw-r--r-- rguenther/users 921075 2021-07-28 07:06 gcc-11.2.0/gcc/fortran/gfortran.info -rw-r--r-- rguenther/users 61705 2021-07-28 07:10 gcc-11.2.0/libitm/libitm.info -rw-r--r-- rguenther/users 216462 2021-07-28 07:09 gcc-11.2.0/libgomp/libgomp.info -rw-r--r-- rguenther/users 36575 2021-07-28 07:10 gcc-11.2.0/libquadmath/libquadmath.info localhost ~ # `gcc-11-20220115.tar.xz` is the main source file used by gcc-11.2.1_p20220115.ebuild (you can check it by running `ebuild gcc-11.2.1_p20220115.ebuild unpack`). `gcc-11.2.0.tar.xz` was used by the previous stable version of gcc (gcc-11.2.0.ebuild). You can try to make .info files from .texinfo by means of makeinfo, but from what I see, this method was dropped long time ago (bug #198182). Currently, gcc's configure (during compile phase) tells the following: checking for makeinfo... makeinfo --split-size=5000000 --split-size=5000000 checking for modern makeinfo... (cached) no configure: WARNING: *** Makeinfo is missing or too old. *** Info documentation will not be built.
Filed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106899 upstream. This has been putting me off keywording stable snapshots again even if it's a good idea. I guess we can pre-generate them ourselves when we know we want to keyword it.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8f5b4ed89df03f95dab0b918d2b010bbc1da28a commit b8f5b4ed89df03f95dab0b918d2b010bbc1da28a Author: Sam James <sam@gentoo.org> AuthorDate: 2022-09-10 03:04:41 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-09-10 03:04:41 +0000 toolchain.eclass: allow re-generation of info pages for snapshots Snapshots don't (yet?) contain pre-generated info pages (and man pages, but that's turned out not to be an issue, as they get regenerated and nobody notices). Given it's often easier and more sensible to keyword a snapshot from one of the stable branches upstream rather than cherry-picking patches, we need to make sure we don't regress with the documentation provided when we do that. Allow re-generation of info pages using texinfo for snapshots; we have a safeguard (eqawarn) for if they start appearing in snapshots and nobody noticed. Closes: https://bugs.gentoo.org/834845 Signed-off-by: Sam James <sam@gentoo.org> eclass/toolchain.eclass | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e8c12159bc7298cf4bb4057bfd197f98713da28 commit 3e8c12159bc7298cf4bb4057bfd197f98713da28 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-09-10 03:55:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-09-10 03:56:54 +0000 sys-devel/gcc: keyword 11.3.1_p20220909 Notably contains fixes for PPC which may cause crashes at runtime. Had come across this bug and a few others when poking at Clang build failure on PPC (bug 829602), although it doesn't seem to have fixed that (tagging bug anyway as it's possibly related in some form). I've been tempted to keyword a newer 11 stable snapshot for a while but didn't feel comfortable doing so until bug 834845 was resolved (info page/docs issue). Bug: https://bugs.gentoo.org/829602 Bug: https://bugs.gentoo.org/834845 Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104090 See: https://github.com/buildroot/buildroot/commit/b42c6b24755170a8eb015b3ea0b25e6d91e037cb Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/gcc-11.3.1_p20220909.ebuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)