[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Void's Forums • View topic - Building RPM Kernel with a patch -- how to add?

Building RPM Kernel with a patch -- how to add?

Place to discuss Fedora and/or Red Hat

Building RPM Kernel with a patch -- how to add?

Postby figuerres » Mon Feb 21, 2005 8:41 am

Hey FOlks !!

I found and read the Void Main how-to on building a new Kernel but I have a question or two I could use some help with.

I have a box I want to make into a firewall and vpn server.

I do not want to build on that box so I want to make my kernel on another box as an rpm. I also wan to be able to do this for some customers who are upgrading stuff and have a "spare" box thats good for a firewall but not for new windows and Microsoft stuff.


so I have the full Fedora 3 installed on a workstation with all the updates and the sourses I need for the kernel etc....

thats good so far...

two things / maby one really...

I want to add a kernel patch to the build so that I can run rpmbuild {blah}
and get a nice binary rpm with the patch added.

how?

I tried and missed somethig cause it just untarred the stock kernel and re-patched it with the stock patch set ....

I tried make rpm and that built an rpm but it was a huge file of about 75 megs!!!

so how do I add my small patch to the spec so that it patches it into the sorce and builds an rpm of the right size??

by the way it's a patch for vpn / ppp to add mppe and mppc that are needed for windows clients to use pptp with decent levels of compression and security.

the patch is a .patch file I can add by hand afer running rpmbuild -bp {blah}

when I tried to add it to the spec file it crashed the patch / prep stage of rpmbuild.

if you need more details I'll fill them in....

thanks for any help on this!
figuerres
user
user
 
Posts: 23
Joined: Mon Feb 21, 2005 8:03 am
Location: Florida USA, Tampa Bay Area

Postby Void Main » Mon Feb 21, 2005 9:31 am

User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby figuerres » Mon Feb 21, 2005 10:25 am

figuerres
user
user
 
Posts: 23
Joined: Mon Feb 21, 2005 8:03 am
Location: Florida USA, Tampa Bay Area

Postby Void Main » Mon Feb 21, 2005 8:36 pm

Ok, you'll find a spec file for the 2.6.10-1.766_FC3 kernel with the patches added and a couple of other minor changes (comment indicating patch was added and commented out two debugging lines), the patch, and modified *.config files here:

http://voidmain.is-a-geek.net/files/misc/mppe-mppc/

After "apt-get source kernel", which will get and install the latest kernel source (for 2.6.10-1.766_FC3 version), place the stuff from SOURCES above to your /usr/src/redhat/SOURCES directory and put the spec file in your /usr/src/redhat/SPECS directory. You can do the diff on it with the stock kernel-2.6.spec if you want to see my changes. It will build a 2.6.10-1.766_FC3 (uni processor only) and with no name changes from the stock name. Modify the spec file and change the name according to my HOWTO if you want to make it different than the stock (probably a good idea). The build doc should cover everything else (but do not copy the config from /boot as mentioned in the doc).

On a side note I'm no spring chicken myself. I used to use SLS before Slackware came out and built from scratch before that. I remember the Walnut Creek CDs very well. Ah the good old days! :) I actually had Slackware installed on 50 PCs at work (UNIX development shop with lots of big iron).

I have also colorized the SPEC file (ala VIM) and underlined lines that I have added or changed:
http://voidmain.is-a-geek.net/files/mis ... .spec.html
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby figuerres » Tue Feb 22, 2005 4:54 am

figuerres
user
user
 
Posts: 23
Joined: Mon Feb 21, 2005 8:03 am
Location: Florida USA, Tampa Bay Area

Postby Void Main » Tue Feb 22, 2005 9:01 am

User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby figuerres » Sun Feb 27, 2005 8:24 pm

figuerres
user
user
 
Posts: 23
Joined: Mon Feb 21, 2005 8:03 am
Location: Florida USA, Tampa Bay Area

Postby figuerres » Sun Feb 27, 2005 8:44 pm

figuerres
user
user
 
Posts: 23
Joined: Mon Feb 21, 2005 8:03 am
Location: Florida USA, Tampa Bay Area

Postby Void Main » Sun Feb 27, 2005 8:52 pm

User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby figuerres » Mon Feb 28, 2005 5:41 pm

figuerres
user
user
 
Posts: 23
Joined: Mon Feb 21, 2005 8:03 am
Location: Florida USA, Tampa Bay Area

Postby Void Main » Mon Feb 28, 2005 7:06 pm

To be honest I don't really know a great up to date tutorial site on building RPMs. I pretty much started by using Matthias' (FreshRPMS) short RPM building document called as a base and then just figuring out the rest by hacking packages/spec files. I feel like I get a little better at it with each package. The RPM HOWTO is here:

http://www.rpm.org/RPM-HOWTO/

It hasn't been updated in a few years but I think the basics should still be the same. Oh, and of course the man pages are always a great read. The kernel is probably not the best RPM to cut your RPM building teeth on. :)
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby figuerres » Tue Mar 01, 2005 4:59 pm

figuerres
user
user
 
Posts: 23
Joined: Mon Feb 21, 2005 8:03 am
Location: Florida USA, Tampa Bay Area

Postby Void Main » Tue Mar 01, 2005 5:23 pm

User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby figuerres » Tue Mar 01, 2005 5:35 pm

figuerres
user
user
 
Posts: 23
Joined: Mon Feb 21, 2005 8:03 am
Location: Florida USA, Tampa Bay Area

Postby figuerres » Tue Mar 01, 2005 5:48 pm

figuerres
user
user
 
Posts: 23
Joined: Mon Feb 21, 2005 8:03 am
Location: Florida USA, Tampa Bay Area

Next

Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 4 guests

cron