Subject: Re: pkg/20930: package gcc3 failed make install
To: , <gnats-bugs@gnats.netbsd.org>
From: Thomas T. Thai <tom@minnesota.com>
List: netbsd-bugs
Date: 03/31/2003 10:41:30
I also forgot to mention that if you do:

# gmake info
gmake[1]: Entering directory `/usr/pkgsrc/lang/gcc3/work/gcc-3.2.2/libiberty'
gmake[2]: Entering directory
`/usr/pkgsrc/lang/gcc3/work/gcc-3.2.2/libiberty/testsuite'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory
`/usr/pkgsrc/lang/gcc3/work/gcc-3.2.2/libiberty/testsuite'
gmake[1]: Leaving directory `/usr/pkgsrc/lang/gcc3/work/gcc-3.2.2/libiberty'
gmake[1]: Entering directory `/usr/pkgsrc/lang/gcc3/work/gcc-3.2.2/libiberty'
gmake[2]: Entering directory
`/usr/pkgsrc/lang/gcc3/work/gcc-3.2.2/libiberty/testsuite'
gmake[2]: Nothing to be done for `info'.
gmake[2]: Leaving directory
`/usr/pkgsrc/lang/gcc3/work/gcc-3.2.2/libiberty/testsuite'
gmake[1]: Leaving directory `/usr/pkgsrc/lang/gcc3/work/gcc-3.2.2/libiberty'
gmake[1]: Entering directory `/usr/pkgsrc/lang/gcc3/work/gcc-3.2.2/zlib'
gmake[1]: Nothing to be done for `info'.
gmake[1]: Leaving directory `/usr/pkgsrc/lang/gcc3/work/gcc-3.2.2/zlib'
gmake[1]: Entering directory `/usr/pkgsrc/lang/gcc3/work/gcc-3.2.2/gcc'
cd . && makeinfo   -I doc -I doc/include -o doc/gcc.info doc/gcc.texi
doc/invoke.texi:8494: Misplaced {.
doc/invoke.texi:8494: Misplaced }.
doc/invoke.texi:8495: Misplaced {.
doc/invoke.texi:8495: Misplaced }.
doc/invoke.texi:8563: Misplaced {.
doc/invoke.texi:8563: Misplaced }.
doc/invoke.texi:8565: Misplaced {.
doc/invoke.texi:8565: Misplaced }.
makeinfo: Removing output file `doc/gcc.info' due to errors; use --force
to preserve.
gmake[1]: *** [doc/gcc.info] Error 2
gmake[1]: Leaving directory `/usr/pkgsrc/lang/gcc3/work/gcc-3.2.2/gcc'
gmake: *** [do-info] Error 1

If you are using makeinfo 4.0.

>> On 29 Mar 2003 tom@minnesota.com wrote:
>>
>>> /usr/bin/install-info --info-dir=/usr/pkg/info /usr/pkg/info/cpp.info
>>> install-info: warning: no entries found for `/usr/pkg/info/cpp.info';
>>> nothing deleted install-info: No such file or directory for
>>> /usr/pkg/info/cpp.info
>>
>> See PR 20880
>>  http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=20880
>>
>> I also had that problem later with other packages too. I think the
>> problem was caused by having old, out-of-date install-info program. (I
>> had that tool under /sbin/install-info, so I moved it away.)
>
> I did some more digging and found this out:
>
> http://gcc.gnu.org/ml/gcc/2003-02/msg00164.html
>
> which says:
>
> ---
> You need at least makeinfo 4.1 on the 3.2 branch and 4.2 for 3.3 branch
> and mainline.  (The current release is 4.4.)
> ---
>
> If that's the case then their Makefile.in is incorrect and needs to be
> patched for our package system. We currently have gcc-3.2.2, which
> requires makeinfo-4.1. However the Makefile.in snippet:
>
> ---
> MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
>         then echo $$r/texinfo/makeinfo/makeinfo ; \
>         else if (makeinfo --version \
>           | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
>         then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
> ---
>
> would succeed even if we have:
>
> # makeinfo --version
> makeinfo (GNU texinfo) 4.0
>
> --
> Thomas T. Thai