LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-19-2004, 07:48 PM   #1
Hockeyfan
Member
 
Registered: May 2004
Distribution: SuSe 10.0
Posts: 154

Rep: Reputation: 30
need help building rpm


How do I build an rpm from source files rather than src.rpm file assume files have are located in the /usr/src/redhat/SOURCES directory and the spec file is located in /usr/src/redhat/SPECS

By the way the files are the kernel source for kernel version 2.6.9-1.667. Building the kernel from the kernel-2.6.9-1.667.src.rpm does not help me.
 
Old 11-19-2004, 07:50 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Why does it not help you? Can you elaborate?
 
Old 11-19-2004, 08:39 PM   #3
Hockeyfan
Member
 
Registered: May 2004
Distribution: SuSe 10.0
Posts: 154

Original Poster
Rep: Reputation: 30
The reason it doesn't help me is when I build the rpm from the src.rpm it does not give me the source files for the kernel. The installation puts the compiled kernel modules in /lib/modules/2.6.9-1.667.root
There is a symlink to the source but when I looked in the source directory for the source code there were no souce files, only Makefiles and in some cases Kconfig files. I need to change one setting in the .config file. Since there are no source files I can't recompile the kernel. The only way I was able to get the kernel source on my computer was to install the src.rpm and then untar the kernel source and put it in the /usr/src directory. However when I did that the patches that redhat implemented were not appled to the kernel and the kernel would not compile completely.
 
Old 11-20-2004, 05:15 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
The rpm you are looking for is called "kernel-sources.2.x.x.rpm".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building RPM via src.Rpm ivanatora Linux - Newbie 2 02-20-2006 04:29 PM
regarding building RPM hinetvenkat Linux - Networking 2 08-29-2005 08:42 AM
Help with compiling/building RPM leisure Linux - Software 2 05-08-2005 11:18 PM
building rpm nearfar Linux - Newbie 1 12-29-2003 09:21 PM
building rpm saleem Programming 1 11-12-2001 05:42 AM


All times are GMT -5. The time now is 11:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration