Re: make rpm fails

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

 



On Fri, 2003-05-02 at 16:13, Bret Comstock Waldow wrote:
> Well, not right away it won't.
> 
> I looked in /usr/src/linux-2.4, where the source code is, and there is a
> "kernel.spec" file there.  I copied this to match the custom name:
> 
> cp kernel.spec kernel-2.4.209custom.spec
> 
> Then I ran the command:
> [root@xxxxxxx linux-2.4]# rpmbuild -ba kernel-2.4.209custom.spec
> error: File /usr/src/redhat/SOURCES/kernel-2.4.209custom.tar.gz: No such
> file or directory
> [root@xxxxxxx linux-2.4]#
> 
> Looking in the .spec file, I find no mention of SOURCES.  "info
> rpmbuild" doesn't address this in any way that makes sense to me, so I
> have to ask, what should I do about this?  How does the tgz kernel file
> get into SOURCES, or what else is supposed to happen?
> 

Um, the specfile you attached is not the Red Hat Linux specfile.  You
need to download the kernel-<version>.src.rpm  (called an SRPM).  Not
the kernel-source-<version>.i386.rpm, which is used for building custom
kernels outside of the RPM build system.  You may want to read one of
the many HOWTOs or help sites on building RPMs first, as you really
should understand the basics before delving into the kernel specfile.

--Jeremy

-- 
/=====================================================================\
| Jeremy Portzer       jeremyp@xxxxxxxxx       trilug.org/~jeremy     |
| GPG Fingerprint: 712D 77C7 AB2D 2130 989F  E135 6F9F F7BC CC1A 7B92 |
\=====================================================================/

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux