Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526686 - sys-devel/gcc: only gcc/doc/ info pages are installed from gcc/ which misses gfortran
Summary: sys-devel/gcc: only gcc/doc/ info pages are installed from gcc/ which misses ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-24 22:18 UTC by Dirk Sondermann
Modified: 2022-09-10 05:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Sondermann 2014-10-24 22:18:16 UTC
When gcc-4.7.3-r1 is installed with the fortran USE flag set the gfortran info file (gfortran.info.bz2) is not installed together with the other info files (for example, gcc.info.bz2) in /usr/share/gcc-data/i686-pc-linux-gnu/4.7.3/info.

The reason seems to be that the following fragment of toolchain_src_install in /usr/portage/eclass/toolchain.eclass considers only info files in gcc/doc while gfortran.info is located in gcc/fortran:

  # Copy over the info pages.  We disabled their generation
  # earlier, but the build system only expects to install out
  # of the build dir, not the source.  #464008
  mkdir -p gcc/doc
  local x=
  for x in "${S}"/gcc/doc/*.info* ; do
          if [[ -f ${x} ]] ; then
                  cp "${x}" gcc/doc/ || die
          fi
  done

As a local workaround, I'm using the following function in /etc/portage/env/sys-devel/gcc:

  src_prepare() {
    toolchain_src_prepare
    if use fortran; then
      cp gcc/fortran/*.info gcc/doc
    fi
  }
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2020-02-01 23:38:19 UTC
Also worth considering other docs:

  gcc-9.2.0/libitm/libitm.info
  gcc-9.2.0/gcc/fortran/gfortran.info

  gcc-9.2.0/gcc/doc/gccinstall.info
  gcc-9.2.0/gcc/doc/gccint.info
  gcc-9.2.0/gcc/doc/gcc.info
  gcc-9.2.0/gcc/doc/cppinternals.info
  gcc-9.2.0/gcc/doc/cpp.info

  gcc-9.2.0/libgomp/libgomp.info
  gcc-9.2.0/libquadmath/libquadmath.info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-10 05:05:25 UTC
It looks like Fortran is the only thing which isn't actually being installed.

# ls /usr/share/gcc-data/x86_64-pc-linux-gnu/9.5.0/info
cpp.info  cppinternals.info  gcc.info  gccinstall.info  gccint.info  libgomp.info  libitm.info  libquadmath.info