Ken Moffat wrote:
> On Sun, Feb 24, 2013 at 01:31:23PM -0600, Bruce Dubbs wrote:
>> Bruce Dubbs wrote:
>>> Pierre Labastie wrote:
>>>> Le 23/02/2013 22:52, Bruce Dubbs a écrit :
>>>
>>>
>>> Good point.  I didn't notice that they were there by default.  If the
>>> .info files are present, then there is no need to build them at all.
>>> It's just that the Makefile does that by default.  We only need to
>>> suppress that.
>>>
>>> Unfortunately the current method seems to suppress the install too.
>>>
> [...]
>>
>> OK, that works with a modification.  What needs to be done is:
>>
>> mkdir -v ../gcc-build
>> cd       ../gcc-build
>> mkdir -p gcc/doc
>> touch    gcc/gcc-vers.texi
>> cp       ../gcc-4.7.2/gcc/doc/*.info gcc/doc
>>
>> The key is the touch because otherwise gcc/gcc-vers.texi is generated
>> and that forces make to try to rebuild the .info files.  The touch must
>> occur before the cp command
>>
>> We could simplify slightly with:
>>
>> mkdir -vp         ../gcc-build/gcc/doc
>> touch             ../gcc-build/gcc/gcc-vers.texi
>> cp gcc/doc/*.info ../gcc-build/gcc/doc
>> cd                ../gcc-build
>>
>> What we have now in Chapter 5 is preferable because it avoids extra work
>> and putting the info files in /tools.  The above only is needed in
>> Chapter 6 if we want to bother.
>>
>   Agreed so far.
>
>> I guess another option is to maintain the current suppression of the
>> info file rebuild and manually install the .info files after make install.

>   You seem to be missing the info files for libitm, libgomp,
> libquadmath.  With your diff those are in (4.7.2) libitm/, libgomp/,
> libquadmath/ and also in similar directories under the build dir but
> below '*-linux-*/ - e.g. x86_64-unknown-linux-gnu/libitm/ : I'm not
> at the desktop, can't remember the full name for i386.

This is what the tarball has:

[ /mnt/lfs/sources/gcc-4.7.2 ]$ find -name \*.info
./libjava/classpath/doc/cp-tools.info
./libgomp/libgomp.info
./libitm/libitm.info
./libquadmath/libquadmath.info
./gcc/doc/cppinternals.info
./gcc/doc/gcj.info
./gcc/doc/gccinstall.info
./gcc/doc/gccint.info
./gcc/doc/gcc.info
./gcc/doc/cpp.info
./gcc/fortran/gfortran.info


>   As far as people building extra languages in BLFS are concerned,
> the source has gcc/fortran/gfortran.info and
> libjava/classpath/doc/cp-tools.info.  I suppose the preformatted
> versions will be good enough for these, even though the 4.7 branch
> has changes for texinfo-5.0.
>
>   AFAICS the source does not have any info files for ada - perhaps
> those are why the build tries to create the info files.

Of course we are not building Fortran or Ada or Java, but with the 
commands I wrote earlier, I do have the following in /usr/share/info:

-rw-r--r-- 1 root root  240866 Feb 24 19:13 cpp.info
-rw-r--r-- 1 root root   50231 Feb 24 19:13 cppinternals.info
-rw-r--r-- 1 root root 2250911 Feb 24 19:13 gcc.info
-rw-r--r-- 1 root root  202998 Feb 24 19:13 gccinstall.info
-rw-r--r-- 1 root root 2338853 Feb 24 19:13 gccint.info
-rw-r--r-- 1 root root  103716 Feb 24 19:13 libgomp.info
-rw-r--r-- 1 root root   60442 Feb 24 19:13 libitm.info
-rw-r--r-- 1 root root   36426 Feb 24 19:13 libquadmath.info

So I think that's all the appropriate entries for what we build.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to