Re: rpm makefile patch for Linux/PPC


Subject: Re: rpm makefile patch for Linux/PPC
sterwill@abisource.com
Date: Wed Jan 26 2000 - 10:32:37 CST


Logan Hall wrote:
> it looks like the default location for rpmrc is /usr/lib/rpm/rpmrc.

My rpm man page gives me /usr/lib/rpm/rpmrc:/etc/rpmrc:~/.rpmrc as
default --rcfile value. But often people using RPM on non-Red Hat
installations will have it elsewhere (like /usr/local/etc/rpmrc, or
/usr/local/encap/rpm-3.0.3/etc/rpmrc).

> There is also a convertrpmrc.sh file there that i am looking through.
>
> possibly there is a way to get rpm to do the expanding work and read the rpmrc file.
> What is it used for exactly anyway?

Really, we only need the "topdir" key (which one can get, in a symbolic
form, from rpm --showrc). It tells us where to put our source files
(usually /usr/src/redhat/SOURCES) and our spec file so we can say
"rpm, go build _that_ package", which is done through something like
"rpm -ba /usr/src/redhat/SPECS/abisuite-0.7.8.spec". If there's another,
better way to do this, like building where "topdir" doesn't need to be
known, I'm completely open to it.

When I wrote all the Unix installers, I picked what would get a package
out on the machines I had to work with, and since the installers are
mostly shell scripts, I knew they could be made more general later.

> I still get this error when trying to build a rpm:
> Executing: %build
> + umask 022
> + cd /usr/src/redhat/BUILD
> + cd abisuite-2000.01.25
> + UNIX_CAN_BUILD_STATIC=0
> + ABI_BUILD_VERSION=2000.01.25
> + make -C abi-2000.01.25 compile canonical
> make[3]: Entering directory `/usr/src/redhat/BUILD/abisuite-2000.01.25/abi-2000.01.25'
> make[3]: *** No rule to make target `compile'. Stop.
> make[3]: Leaving directory `/usr/src/redhat/BUILD/abisuite-2000.01.25/abi-2000.01.25'
> Bad exit status from /var/tmp/rpm-tmp.64873 (%build)
> make[2]: *** [rpm] Error 1
> make[2]: Leaving directory `/usr/src/abiword/abi/src/pkg/linux'
> make[1]: *** [distribution] Error 2
> make[1]: Leaving directory `/usr/src/abiword/abi/src'
> make: *** [distribution] Error 2
>
> I cant figgure it out. it builds normaly so im not sure why it would barf on compile.
> any ideas?

I'll have to give it a pass through today and see why the "compile"
step is failing. How many arguments are you passing for the top-level
Make? I use something like the following for releases, where
$target_formats is a string like "rpm" or "rpm tgz deb" or similar:

unset ABI_OPT_DEBUG
ABI_DIST_TARGET=$target_formats
export ABI_DIST_TARGET
make distribution DIST=/place/to/put/packages ABI_BUILD_VERSION=0.7.8

-- 
Shaw Terwilliger



This archive was generated by hypermail 2b25 : Wed Jan 26 2000 - 10:32:38 CST