LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-18-2006, 03:19 AM   #1
henryquinn
LQ Newbie
 
Registered: Jan 2006
Posts: 13

Rep: Reputation: 0
Question why patch


I am trying to build a cross-compiling toolchain based on gcc, glibc and binutils.
In all the howto's and tutorials I can find patches are applied to said packages, although
never the same patches it seems like.

The comments in most of these patches indicate that the patch fixes some bug or adds some functionality.

My question is: Does the patch fix or implements the functionality only for that version/release of the package and is it then absorbed into the package meaning that a new version of the package needs not be patched again.

Can someone please explain this to me or at least shed some light on the subject?

Thanks
 
Old 01-18-2006, 03:30 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Well ultimately a patch may or may not be accepted my the main application developers. There are often very good reasons why a patch isn't integrated, it may be an "optimization" that may only work under certain circumstances, and might otherwise reduce performance. just an example of course.
 
Old 01-18-2006, 03:36 AM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Unless you really want something the patch does, it is really pointless. I've had programs that wouldn't compile without a patch. You pretty much have to patch with those. I usually don't bother with patches, except kernel patches in debian.
 
Old 01-18-2006, 03:50 AM   #4
henryquinn
LQ Newbie
 
Registered: Jan 2006
Posts: 13

Original Poster
Rep: Reputation: 0
I think I see what you mean - if the patch fixes something or improves the package for a supported platform it will probably be integrated into the package, like for example: "fixes crash in glibc if ... so and so" let say on a ARM processor.

Else if it only let say implements soft-float for ARM in gcc it might not make it in.

Thanks for your insight guys... The release notes will probably also shed light on the subject....

Henry
 
  


Reply



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
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
Patch-o-Matic TTL Patch Knopper Linux - Networking 1 02-02-2005 09:27 AM
How to Install patch-o-matic(a iptables patch) on redhat 9? itebooks Linux - Security 1 07-23-2004 08:51 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:08 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration