How to compile a soft same as the version realeased by fedora?

stan gryt2 at
Sat Mar 19 22:36:21 UTC 2011

On Sat, 19 Mar 2011 14:42:20 -0700
JD <jd1008 at> wrote:

> > The -bp flag just unpacks the source so it can be examined or
> > patches can be created.
> Well, actually, -bp is for "prep"ing the source tree for compilation.
> -bp will APPLY the patches (if they exist and are called for in the
> spec file), rather than create them.
What you say is true, but it also can be used to *create* new patches
if that is your inclination.  The fedora wiki page for compiling a
custom kernel has instructions on how to do this for the kernel.
Obviously, the same general procedure can be used for any src.rpm.  It
requires modification of the spec file as well, and the patches have to
be moved into the SOURCE directory.

I know this works because I patch the kernel using that procedure, and
it then creates RPMs with those patches in place.  The 2.6.35 kernel
source no longer compiles with SMP turned off unless it is patched and
I experience lockups on my single core CPU unless I turn SMP off.

More information about the users mailing list