Is there a howto for building a source rpm?
Gurus, Is there a HowTo that explains how to compile a *.src.rpm from the SuSE CDs and get an exact duplicate of what SuSE provides? I just tried to rebuild and install the shadow package, and the end result was a non-functioning server. (No big issue, it was a lab/test server.) === What I tried: rpm --rebuild shadow-4.0.2-47.src.rpm (copied from CD 7 of SuSE 8.0) cd /usr/src/packages/SOURCE tar xjf shadow-4.0.2.tar.bz2 (created by rpm above) cd shadow-4.0.2 ./configure --disable-shared --prefix=/usr --exec-prefix=/usr (from shadow.spec) make make install === As I said, everything seemed to work, but when I rebooted I ended up with / mounted readonly!! and KDE did not start up. I remounted / read/write and used Yast2 to re-install shadow. Now everything is fine, but I still want to know how to do this. Thanks Greg -- Greg Freemyer
On Saturday 29 March 2003 00:21, Greg Freemyer wrote:
Gurus,
Is there a HowTo that explains how to compile a *.src.rpm from the SuSE CDs and get an exact duplicate of what SuSE provides? <snip>
I just tried to rebuild and install the shadow package, and the end result was a non-functioning server. (No big issue, it was a lab/test server.)
=== What I tried:
rpm --rebuild shadow-4.0.2-47.src.rpm
This should be enough for an exact duplicate. Didn't this get you an rpm in /usr/src/packages/RPMS/i386 ? If you want to make any changes to the rpm, the standard procedure would be to install the src.rpm with rpm -ivh, edit the spec file in /usr/src/packages/SPECS and finally build the new rpm with "rpm -bb <spec file>" or "rpm -ba <spec file>" if you want a new src.rpm built with your new edited spec file included.
participants (2)
-
Anders Johansson
-
Greg Freemyer