I am trying to build a kernel RPM from a kernel source RPM.

Here is precisely what I did (no more and no less):

   1. Install Mandrake 7.1 (Developer option) with standard defaults (I now 
have a "virgin" system)
   2. Install latest kernel source RPM from Cooker
         rpm -ivh kernel-2.2.17-8mdk.src.rpm
   3. Attempt to build and create kernel installation RPMs
         rpm -ba --target=i586 kernel-2.2.spec

If anyone attempts this, you will discover that it will not complete the 
build.  You simply cannot build a new Mandrake kernel RPM on a "stock" 
developer version of Mandrake 7.1.  In fact, I even tried building the SAME 
kernel version that is used by Mandrake 7.1 (2.2.14-15mdk) and it fails.

I don't know how the Mandrake RPM builders create new kernel releases, but 
they can't be doing it on a standard developer installation.  There must be 
several tweaks and upgrades that are necessary to build a new kernel 
RPM.  I'm trying to figure out what is missing, but it's mostly trial and 
error at this point.

Jeff


At 11:36 PM 9/19/00 -0600, you wrote:
>Jeff Groves wrote:
> >
> > At 12:27 PM 9/19/00 -0600, you wrote:
> >
> > The kernel headers and other kernel stuff is installed:
> >
> > # rpm -qa | grep kernel
> > kernel-2.2.15-4mdk
> > kernel-doc-2.2.15-4mdk
> > kernel-headers-2.2.15-4mdk
> > kernel-utils-2.2.15-4mdk
> > kernel-source-2.2.15-4mdk
> >
> > I cannot install kernel-headers-2.2.17-6mdk, since that is supposed to be
> > created by the build!
>
>Okay... this is where you got me confused... are you building a kernel
>source RPM from a kernel SRPM?
>
>There is a difference =)
>
>What *exactly* are you trying to accomplish here? Build a kernel RPM? Or
>build a kernel?
>
> >
> > > > The last error lines were:
> > > >    + %make bZImage
> > > >    /var/tmp/rpm-tmp.6671: fg: no job control
> > > >    Bad exit status from /var/tmp/rpm-tmp.6671 (%build)
> > >
> > >No job control? You must be missing more than just your kernel headers.
> > >Can you do this:
> >
> > Job control works fine.  I actually ran the build like this:
> >
> >    nohup rpm -ba --target=i586 kernel-2.2.spec &
> >    tail -f nohup.out
> >
> > Do I also need to install the unmodified kernel
> > (kernel-linus-2.2.17-1mdk.src.rpm)?
> >
> > I'm running out of ideas.  Surely there must be some others who have build
> > kernels from RPMs.  What am I missing?
>
>I've done it, but I've never built a kernel source RPM from a kernel
>source SRPM
>*dizzy*.
>
>The easiest way to go is to get (as someone else has already suggested)
>the
>kernel source tarball from ftp.kernel.org, untar it in /usr/src, and
>build from
>there... that's how I've done it.
>
>I've installed the Mandrake kernel source RPM and compiled from that
>before,
>but as much as I like Mandrake I found their flavour of the kernel
>sources
>a tad too adventurous. Too many things that didn't work the way they
>should
>have -- not to mention the first kernel oops I've ever seen under
>Linux...
>going back to the Torvalds tarballs fixed all those problems.
>
>-Stephen-
>
>Keep in touch with http://mandrakeforum.com:
>Subscribe the "[EMAIL PROTECTED]" mailing list.


Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.

Reply via email to