no redhat kernel-source after building - Redhat

This is a discussion on no redhat kernel-source after building - Redhat ; I did: rpm -vih kernel-2.4.21-52.EL.src.rpm Then: rpmbuild -ba --target i686 kernel-2.4.spec Which, expectedly, built: kernel-2.4.21-52.EL.i686.rpm kernel-debuginfo-2.4.21-52.EL.i686.rpm kernel-hugemem-2.4.21-52.EL.i686.rpm kernel-hugemem-unsupported-2.4.21-52.EL.i686.rpm kernel-smp-2.4.21-52.EL.i686.rpm kernel-smp-unsupported-2.4.21-52.EL.i686.rpm kernel-unsupported-2.4.21-52.EL.i686.rpm I installed (and am successfully using) kernel-hugemem-2.4.21-52 via the usual 'rpm -vih' command. But where is the package that's ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: no redhat kernel-source after building

  1. no redhat kernel-source after building

    I did:
    rpm -vih kernel-2.4.21-52.EL.src.rpm

    Then:
    rpmbuild -ba --target i686 kernel-2.4.spec

    Which, expectedly, built:

    kernel-2.4.21-52.EL.i686.rpm
    kernel-debuginfo-2.4.21-52.EL.i686.rpm
    kernel-hugemem-2.4.21-52.EL.i686.rpm
    kernel-hugemem-unsupported-2.4.21-52.EL.i686.rpm
    kernel-smp-2.4.21-52.EL.i686.rpm
    kernel-smp-unsupported-2.4.21-52.EL.i686.rpm
    kernel-unsupported-2.4.21-52.EL.i686.rpm

    I installed (and am successfully using) kernel-hugemem-2.4.21-52
    via the usual 'rpm -vih' command.

    But where is the package that's supposed to be named something like
    kernel-source-2.4.21-52.EL.i686.rpm?
    I don't see it anywhere and really need the source installed.

    rpm -a -q | grep kernel yields:
    kernel-smp-2.4.21-20.EL
    kernel-hugemem-2.4.21-51.EL
    kernel-2.4.21-4.EL
    kernel-source-2.4.21-27.EL
    kernel-hugemem-2.4.21-47.0.1.EL
    kernel-source-2.4.21-20.EL
    kernel-smp-2.4.21-9.EL
    kernel-smp-2.4.21-27.EL
    kernel-hugemem-2.4.21-52.EL
    kernel-2.4.21-20.EL
    kernel-smp-2.4.21-4.EL
    kernel-utils-2.4-8.37.6
    kernel-pcmcia-cs-3.1.31-13
    kernel-hugemem-2.4.21-50.EL

    .... but no 52 kernel-source.

    How can I create and install it?
    Seems to me this technique used to generate a kernel-source rpm.

    Thanks in advance.

  2. Re: no redhat kernel-source after building

    The Derfer wrote:
    > I did:
    > rpm -vih kernel-2.4.21-52.EL.src.rpm
    >
    > Then:
    > rpmbuild -ba --target i686 kernel-2.4.spec
    >
    > Which, expectedly, built:
    >
    > kernel-2.4.21-52.EL.i686.rpm
    > kernel-debuginfo-2.4.21-52.EL.i686.rpm
    > kernel-hugemem-2.4.21-52.EL.i686.rpm
    > kernel-hugemem-unsupported-2.4.21-52.EL.i686.rpm
    > kernel-smp-2.4.21-52.EL.i686.rpm
    > kernel-smp-unsupported-2.4.21-52.EL.i686.rpm
    > kernel-unsupported-2.4.21-52.EL.i686.rpm
    >
    > I installed (and am successfully using) kernel-hugemem-2.4.21-52
    > via the usual 'rpm -vih' command.
    >
    > But where is the package that's supposed to be named something like
    > kernel-source-2.4.21-52.EL.i686.rpm?
    > I don't see it anywhere and really need the source installed.
    >


    Read the .spec file: I believe it's called "kernel-devel", and it's a noarch architecture. And you can do this directly:

    rpmbuild --rebuild kernel-2.4.21-52.EL.src.rpm --target i686
    rpmbuild --rebuild kernel-2.4.21-52.EL.src.rpm --target noarch
    rpmbuild --rebuild kernel-2.4.21-52.EL.src.rpm --target i386

    The i386 build gets you the BOOT kernels for CD installations.



  3. Re: no redhat kernel-source after building

    On Jan 5, 10:49 am, Nico Kadel-Garcia wrote:
    > The Derfer wrote:
    > > I did:
    > > rpm -vih kernel-2.4.21-52.EL.src.rpm

    >
    > > Then:
    > > rpmbuild -ba --target i686 kernel-2.4.spec

    >
    > > Which, expectedly, built:

    >
    > > kernel-2.4.21-52.EL.i686.rpm
    > > kernel-debuginfo-2.4.21-52.EL.i686.rpm
    > > kernel-hugemem-2.4.21-52.EL.i686.rpm
    > > kernel-hugemem-unsupported-2.4.21-52.EL.i686.rpm
    > > kernel-smp-2.4.21-52.EL.i686.rpm
    > > kernel-smp-unsupported-2.4.21-52.EL.i686.rpm
    > > kernel-unsupported-2.4.21-52.EL.i686.rpm

    >
    > > I installed (and am successfully using) kernel-hugemem-2.4.21-52
    > > via the usual 'rpm -vih' command.

    >
    > > But where is the package that's supposed to be named something like
    > >kernel-source-2.4.21-52.EL.i686.rpm?
    > > I don't see it anywhere and really need the source installed.

    >
    > Read the .spec file: I believe it's called "kernel-devel", and it's a noarch architecture. And you can do this directly:
    >
    > rpmbuild --rebuild kernel-2.4.21-52.EL.src.rpm --target i686
    > rpmbuild --rebuild kernel-2.4.21-52.EL.src.rpm --target noarch
    > rpmbuild --rebuild kernel-2.4.21-52.EL.src.rpm --target i386
    >
    > The i386 build gets you the BOOT kernels for CD installations.



    Thanks, but it was my understanding that kernel-devel and kernel-
    source
    were two different things. Hope I'm wrong; your way sounds easier.


  4. Re: no redhat kernel-source after building

    On Jan 5, 10:50 pm, The Derfer wrote:
    > On Jan 5, 10:49 am, Nico Kadel-Garcia wrote:
    >
    >
    >
    > > The Derfer wrote:
    > > > I did:
    > > > rpm -vih kernel-2.4.21-52.EL.src.rpm

    >
    > > > Then:
    > > > rpmbuild -ba --target i686 kernel-2.4.spec

    >
    > > > Which, expectedly, built:

    >
    > > > kernel-2.4.21-52.EL.i686.rpm
    > > > kernel-debuginfo-2.4.21-52.EL.i686.rpm
    > > > kernel-hugemem-2.4.21-52.EL.i686.rpm
    > > > kernel-hugemem-unsupported-2.4.21-52.EL.i686.rpm
    > > > kernel-smp-2.4.21-52.EL.i686.rpm
    > > > kernel-smp-unsupported-2.4.21-52.EL.i686.rpm
    > > > kernel-unsupported-2.4.21-52.EL.i686.rpm

    >
    > > > I installed (and am successfully using) kernel-hugemem-2.4.21-52
    > > > via the usual 'rpm -vih' command.

    >
    > > > But where is the package that's supposed to be named something like
    > > >kernel-source-2.4.21-52.EL.i686.rpm?
    > > > I don't see it anywhere and really need the source installed.

    >
    > > Read the .spec file: I believe it's called "kernel-devel", and it's a noarch architecture. And you can do this directly:

    >
    > > rpmbuild --rebuild kernel-2.4.21-52.EL.src.rpm --target i686
    > > rpmbuild --rebuild kernel-2.4.21-52.EL.src.rpm --target noarch
    > > rpmbuild --rebuild kernel-2.4.21-52.EL.src.rpm --target i386

    >
    > > The i386 build gets you the BOOT kernels for CD installations.

    >
    > Thanks, but it was my understanding that kernel-devel andkernel-source
    > were two different things. Hope I'm wrong; your way sounds easier.



    Am I right about this or is at all bundled in devel now?
    Is this step the one that builds the kernel-source:?

    rpmbuild --rebuild kernel-2.4.21-52.EL.src.rpm --target noarch


+ Reply to Thread