Re: Building rpm-python from scratch?
Brad Smith <[email protected]> Sat, 11 Mar 2006 12:32:44 -0500
| Newsgroups | gmane.linux.redhat.rpm.python |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>I installed the package on my
>>laptop, did an rpmbuild -bp on it and uploaded the build directory to the RHEL3 system. Although
>>running ./configure works fine (I was hoping that would catch any missing dependencies), running
>>make in the python directory produces a slew of errors (same if I try making the rpm directory first).
>
>
> What happens if you take the appropriate RHEL3 rpm srpm and install
> that, changing the spec appropriately hint:
>
> %define with_python_version 2.2%{nil}
>
> Bump release and rpmbuild -bb. Obviously you'll have to track updating
> rpm manually, but it seems you can't really be caring about it being a
> supported RHEL instance if you just upgrade python.
>
Ok, I'm just going to have to ask a dummy rpmbuild question now. Not having root on the RHEL3
system, I installed the .src.rpm on my laptop and copied the relevant /usr/src/redhat/* directories
from it to ~/src/rpmbuild/ on the RHEL3 box. However...
[brads@loop rpmbuild]$ rpmbuild -bb --buildroot /home/brads/src/rpmbuild/ SPECS/rpm.spec
error: File /usr/src/redhat/SOURCES/rpm-4.2.3.tar.gz: No such file or directory
My understanding was that --buildroot told rpmbuild to look in a dir other than /usr/src/redhat. I
also tried setting "%define __prefix /home/brad/src/rpmbuild/" in the spec file, but it's
still trying to build out of /usr/src/redhat, which I don't have access too. Any idea what I'm doing
wrong here?
Thanks,
- --Brad
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFEEwm8Dvp49DvQ8kcRArCaAJ9879iEnr2Q6NNna+hVwK5cRgu9GACdEUBC
T9ESPedsS3frdnCXnvPQuVk=
=zjvv
-----END PGP SIGNATURE-----