[ale] (FA)Q: installed kernel SRPM - now what?

James P. Kinney III jkinney at localnetsolutions.com
Fri Aug 16 21:04:13 EDT 2002


Mike (et al),

the directories are created by one of the rpm rpm's The rpm-build is
needed to have them and to build from rpm*.src.rpm's

As with any big compilation, a build can craok at any point where there
is a problem. The kernel rpm build usually dies (after I edit something)
around the patch portion.

On Fri, 2002-08-16 at 17:38, Mike Panetta wrote:
> Did you really create the /usr/src/redhat directory?  If you did, did
> you also create the SOURCES, SPECS, BUILD, RPMS/{i386, i486, i586, i686,
> athlon, noarch}, and SRPMS dirs too?  If you did not the RPM will not
> build (RPM stupidly IMO does not create the dirs for you if they do not
> exist).
> 
> The file not found error could (believe it or not) be referring to one
> of the (possibly) missing directories above (more then likely the BUILD
> dir).  RPM is sometimes confusing.  One of the things that annoyed me
> the most about RPM when I was first learning about building my own was
> if the RPMS/ dir or one of them did not exist, the RPM build would not
> complain about it untill AFTER it had already finished compiling
> everything, so with a long RPM build like the kernel, the error would
> not be noticed untill like 30min to an hr after I started the build, and
> I would have to restart it after fixing it!
> 
> Yes RPM can be annoying, but I still like it, or atleast the idea of how
> its supposed to work.
> 
> Mike
> 
> 
> On Fri, 2002-08-16 at 15:05, John Mills wrote:
> > James, all --
> > 
> > On 15 Aug 2002, James P. Kinney III wrote:
> > 
> > > >From this point it really is rpm simple. run the command:
> > > 
> > > rpm -bb /usr/src/redhat/SPEC/kernel.spec  (as root, duh!)
> > 
> > I am not getting this to work, and I'm not sure whether the spec isn't
> > being found, or if it specifies some other file which isn't found. The
> > spec _is_ present: I used filename completion to add it to the command.
> > 
> > I started with:
> > [root at lab_linux2 ~/incoming] mkdir /usr/src/redhat
> > [root at lab_linux2 ~/incoming] rpm -i kernel-2.4.18-5.src.rpm
> > [root at lab_linux2 SOURCES]# cd /usr/src/redhat/SOURCES
> > [root at lab_linux2 SOURCES] ls
> >   [lots and lots of stuff, all at the same directory level, installed by
> >    RPM]
> > [root at lab_linux2 SOURCES] ls ../SPECS/
> > kernel-2.4.spec
> > 
> > I do:
> > 
> > [root at lab_linux2 SOURCES]# rpm -bb /usr/src/redhat/SPECS/kernel-2.4.spec
> > /usr/src/redhat/SPECS/kernel-2.4.spec: No such file or directory
> > 
> > '-v' and '-vv' options add nothing to the message. Do I need do specify a
> > target?
> > 
> > Which way do I have to face for this to work?
> > 
> > Thanks.
> > 
> >  - John Mills
> > 
> > 
> > ---
> > This message has been sent through the ALE general discussion list.
> > See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
> > sent to listmaster at ale dot org.
> > 
> 
-- 
James P. Kinney III   \Changing the mobile computing world/
President and CEO      \          one Linux user         /
Local Net Solutions,LLC \           at a time.          /
770-493-8244             \.___________________________./

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 



 This is a digitally signed message part




More information about the Ale mailing list