Questions tagged [patch]

A patch is a piece of software designed to fix problems with, or update a computer program or its supporting data. This includes fixing security vulnerabilities and other bugs, and improving the usability or performance.

Programmers publish and apply patches in various forms. Because proprietary software authors withhold their source code, their patches are distributed as binary executables instead of source. This type of patch modifies the program executable—the program the user actually runs—either by modifying the binary file to include the fixes or by completely replacing it.

Patches can also circulate in the form of source code modifications. In these cases, the patches consist of textual differences between two source code files. These types of patches commonly come out of open source projects. In these cases, developers expect users to compile the new or changed files themselves.

Because the word "patch" carries the connotation of a small fix, large fixes may use different nomenclature. Bulky patches or patches that significantly change a program may circulate as "service packs" or as "software updates". Microsoft Windows NT and its successors (including Windows 2000, Windows XP, and later versions) use the "service pack" terminology.

In several Unix-like systems, particularly Linux, updates between releases are delivered as new software packages. These updates are in the same format as the original installation so they can be used either to update an existing package in-place (effectively patching) or be used directly for new installations.

2809 questions
11
votes
10 answers

What exactly does the word Patch mean when referring to 'submitting a patch'?

What exactly does the word patch mean when referring to 'submitting a patch'? I've seen this used a lot, especially in the open source world. What what does it mean and what exactly is involved in submitting a patch?
Gary Willoughby
  • 50,926
  • 41
  • 133
  • 199
11
votes
4 answers

Apply update without restarting application

Recently I had an interview for a .NET position. Out of questions asked, I was having real trouble in answering one question. I hope someone can help me on this. Scenario (Question): The first release of an application (could that be winform/wpf UI…
sophieJ
  • 149
  • 1
  • 5
11
votes
2 answers

How to create a patch with Git Extensions

Is there a way to create a patch from selected commits in the user interface from Git Extensions? I know how to export a patch trough command line, but I wonder if there is a similar functionality like in the TortoiseHg user interface (right click →…
Willem D'Haeseleer
  • 19,661
  • 9
  • 66
  • 99
11
votes
1 answer

SVN Patch - with multiple files

I am trying to make a patch with multiple files in different directories. I don't want to include all my uncommitted files as I have a lot not applicable to the patch. I know of this command to create a patch with a specific file, only issue is this…
Sunjalo
  • 189
  • 1
  • 6
10
votes
2 answers

Is there a diff patch plugin for patching files in Notepad++?

I know that Eclipse and NetBeans have a plugin so you just e.g. in NetBeans do this: Open the project and right-click on the file or folder you want to patch. Tools > Apply Diff Patch... Browse to and select the patch file you want to apply. >…
asd2586
  • 129
  • 1
  • 2
  • 8
10
votes
2 answers

What is a good practice for building software patches?

I recently took charge of a software product which was evolved rather unorganized and I have established a new project structure,a source code repository, issue tracking and a buildsystem using nant and teamcity. I'm at the point where every commit…
Gooo
  • 239
  • 1
  • 8
10
votes
3 answers

Apply patch line-by-line

Since I'm stuck with Subversion and shell tools for the time, git-gui and such are out of the question. Are there any shell tools to apply a patch line-by-line interactively?
l0b0
  • 55,365
  • 30
  • 138
  • 223
10
votes
3 answers

Why is patch rejecting my patch-file on a SVN working copy?

I have a patchfile like this: Index: dir/file.xml =================================================================== --- dir/file.xml (revision 178) +++ dir/file.xml (working copy) @@ -7,7 +7,7 @@ - + …
Simon
  • 4,395
  • 8
  • 33
  • 50
10
votes
3 answers

quilt patch with a new file

I'm trying to create a new quilt patch with only one file added. Unfortunately the file seems to be ignored. I did quilt new some_patch and quilt add some_file. I can see the file in quilt files then, but when I refresh, I get back: Nothing in patch…
viraptor
  • 33,322
  • 10
  • 107
  • 191
10
votes
5 answers

How to determine the Security Patch Level of an Android device?

How can I determine the security patch level of an Android device using an API or other mechanism? I'm looking for the same security patch information that can be found manually by clicking the Settings -> About menu on the device. Google issues…
tardis
  • 1,280
  • 3
  • 23
  • 48
10
votes
2 answers

What are these differences in two DLL file generated from the same source code

All my code is under source control, so I'm 100% sure that the source code hasn't changed. But if I build a C# DLL two times their content is slightly different. I can reproduce the problem 100% of the time by just building, and then building…
Roy T.
  • 9,429
  • 2
  • 48
  • 70
10
votes
1 answer

NetLogo: the meaning of TO-REPORT explained for dummies?

I have a problem to understand the role of to-report and report in NetLogo, even it seems pretty useful and I can't really find a help written in "human style" language. In NetLogo dictionnary…
maycca
  • 3,848
  • 5
  • 36
  • 67
10
votes
3 answers

Is there a function in elisp to apply a patch to a buffer?

I am working on an emacs mode for a review tool, and want to use ediff for viewing diffs... the problem is that the review tool only yields a diff, rather than old and new files. I'd like to put the old file in a buffer and apply a diff rather than…
HenryR
  • 8,219
  • 7
  • 35
  • 39
10
votes
1 answer

using self in python @patch decorator

I'm trying to use python's mock.patch to implement unit tests with nose. class A: def setUp(self): self.b = 8 #contrived example @patch.object('module.class', 'function', lambda x: self.b) def testOne(self): # do test…
10
votes
6 answers

Patch an application

I need to create a patching routine for my application, it's really small but I need to update it daily or weekly how does the xdelta and the others work? i've read around about those but I didn't understand much of it the user shouldn't be prompted…
user302823
  • 361
  • 1
  • 3
  • 13