On Sat, 2002-02-23 at 00:02, David Chart wrote: > I'm trying to build 0.99.2 RPMs on Ximianised Yellow Dog 2.1. Abi > builds, but the packaging chokes as follows: > > (cd /home/David/abiword-0.99.2/abi/../abidistfiles/icons; cp abi* > /home/David/abifiles//Linux_2.4.10-12a_ppc_OBJ/AbiSuite/icons) > (cd /home/David/abiword-0.99.2/abi/../unixfonts/fonts ; cp *.* > /home/David/abifiles//Linux_2.4.10-12a_ppc_OBJ/AbiSuite/fonts) > make[1]: Leaving directory `/home/David/abiword-0.99.2/abi/src' > make ABI_ROOT=/home/David/abiword-0.99.2/abi prefix=/usr/local -C src > distribution > make[1]: Entering directory `/home/David/abiword-0.99.2/abi/src' > Building distribution packages for linux... > make[2]: Entering directory > `/home/David/abiword-0.99.2/abi/src/pkg/linux' > Making source pack in directory > [/home/David/abiword-0.99.2/abi/../abiword-0.99.2]... > tar (child): /usr/src/redhat/SOURCES/abiword-0.99.2.tar.gz: Cannot open: > No such file or directory > tar (child): Error is not recoverable: exiting now > make[2]: *** [pack_rpm] Error 141 > make[2]: Leaving directory > `/home/David/abiword-0.99.2/abi/src/pkg/linux' > make[1]: *** [distribution] Error 2 > make[1]: Leaving directory `/home/David/abiword-0.99.2/abi/src' > make: *** [distribution] Error 2 > > How do I stop it choking at this point?
I think you need to set up your .rpmmacros or something like that. You have the source installed in ~David, but by default RPM expects to build from /usr/src/redhat. Alternatively, do '# chown David.David -R /usr/src/redhat', and build from there (as David). That's what I do (well, as jskov :) Jesper