[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Does RPM ignore the PATH ?



On Thu, Nov 30, 2000 at 05:02:26PM -0800, Perry Hutchison wrote:
> Trying to build libtermcap with RPM version 3.0.5 on Red Hat Linux 6.2
> 
>    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.11922
>    + umask 022
>    + cd /var/tmp/usr/src/redhat/BUILD
>    + cd termcap-2.0.8
>    + make CFLAGS=-O2 -m486 -fno-strength-reduce -I.
>    if [ ! -d pic ]; then mkdir pic; fi
>    gcc -O2 -m486 -fno-strength-reduce -I. -M termcap.c tparam.c version.c | \
>            sed -e 's,^[    ]*\(.*\.o\)[    ]*:,\1 pic/\1:,' > .depend
>    gcc -O2 -m486 -fno-strength-reduce -I. -c termcap.c
>    gcc -O2 -m486 -fno-strength-reduce -I. -fPIC -c termcap.c -o pic/termcap.o
>    gcc -O2 -m486 -fno-strength-reduce -I. -c tparam.c
>    gcc -O2 -m486 -fno-strength-reduce -I. -fPIC -c tparam.c -o pic/tparam.o
>    gcc -O2 -m486 -fno-strength-reduce -I. -c version.c
>    gcc -O2 -m486 -fno-strength-reduce -I. -fPIC -c version.c -o pic/version.o
>    ar ucvr libtermcap.a termcap.o tparam.o version.o
>    a - termcap.o
>    a - tparam.o
>    a - version.o
>    cd pic; \
>    gcc -shared -o ../libtermcap.so.2.0.8 -Wl,-soname,libtermcap.so.2 termcap.o tparam.o version.o -lc
>    makeinfo termcap.texi --output=termcap.info
>    make: makeinfo: Command not found
>    make: *** [termcap.info] Error 127
>    Bad exit status from /var/tmp/rpm-tmp.11922 (%build)
> 
> but the makeinfo executable does exist (I just got through building it):
>    $ ls -l /var/tmp/usr/src/redhat/BUILD/texinfo-4.0/makeinfo/makeinfo
>    -rwxr-xr-x    1 phutchis users      167300 Nov 30 16:05 /var/tmp/usr/src/redhat/BUILD/texinfo-4.0/makeinfo/makeinfo
> 
> and to make sure that the directory containing it would be in the
> PATH I ran rpm like this:
> 
>   ( export PATH=$PATH:/var/tmp/usr/src/redhat/BUILD/texinfo-4.0/makeinfo ; rpm --nodeps -ba SPECS/libtermcap.spec )
> 
> (The --nodeps is needed bacause the rpm database does not know that
> makeinfo is available.)
> 
> Is there any way around this short of hacking the Makefile to specify
> the full absolute pathname of makeinfo?
> 

AFAIK, on the build side, rpm does not change any environment variable, rather
supplies variables in the script, in your case, /var/tmp/rpm-tmp.11922. Try
running that script outside of an rpm build to convince yourself the problem
is in your build, not rpm.

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@jbj.org	(jbj@redhat.com)
Chapel Hill, NC





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []