Re: RPM that installs a slightly modified Redhat kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/3/06, Kenneth Porter <shiva@xxxxxxxxxxxxxxx> wrote:
> On Tuesday, January 03, 2006 3:21 PM -0500 James Olin Oden
> <james.oden@xxxxxxxxx> wrote:
>
> > Start with the kernel srpm.  Do a:
> >
> >    rpmbuild -bp kernel-*.src.rpm
> >
> > Replacing * with the approriate version and release.   Then go into
> > the directory where the kernel was extracted and generate your patch.
>
> The trick here is to remember to extract the BUILD directory once with the
> above command, rename that directory (I add "-original" to the end), then
> extract a 2nd copy, and make the changes to that. This makes it easy to
> extract the diff.

That is the hard way IMHO.  All you have to do is the sources
extracted and patched via the prep option of rpmbuild (i.e. -bp) and
then make copies of the files you change with a consistent extensioin
and then use gendiff.  So if you consistent extension for your backups
of the originals was .orig, you would type:

   gendiff $kernel_dir .orig > your.patch

And your done generating the patch.

Cheers...james

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux