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
1
vote
1 answer

module level code run twice when patching

Consider the following simple code: test_code.py def f(): return 'unpatched' import patch_stuff patch_stuff.patch_it_up() print f() patch_stuff.py from mock import patch def patch_it_up(): p = patch('test_code.f') m = p.start() …
Jonathan Livni
  • 101,334
  • 104
  • 266
  • 359
1
vote
1 answer

How to keep a set of configuration changes made on top of a software distribution?

I am looking for a way to implement a configuration management solution for software like JIRA or Confluence which do come as archives but where you do have to modify few configuration files or to add missing jars files. Each time a new version…
sorin
  • 161,544
  • 178
  • 535
  • 806
1
vote
0 answers

Let variables on neighbor patches influence turtles decisions

my problem right now is the following: I wan't my turtles to decide whether they move forward-left or forward-right each step they take. Target is to model some kind of semi-random movement pattern from south-west to noth-east. I called it…
Nebel
  • 11
  • 1
1
vote
1 answer

Detecting File changes - Patching System

I'm working an application that manages the launching, licencing and patching of multiple other in-house applications. We call this portal. There are a number of reasons for using portal, which i wont get into here, but patching in a limited…
Ben
  • 1,291
  • 2
  • 15
  • 36
1
vote
1 answer

The installation directory contains different application install4j

I am getting the following error when I apply a patch created in Install4j. The existing installation also created in Install4j: The installation directory contains different application. The installation cannot be performed. Can someone tell me…
kesavan
  • 21
  • 1
1
vote
1 answer

How do I apply a patch against a .php file in MediaWiki?

I'm trying to integrate Google Adsense into my MediaWiki site with the ShoutWikiAds (http://www.mediawiki.org/wiki/Extension:ShoutWiki_Ads) extension. Step 2 reads: Apply the patch against your $IP/skins/MonoBook.php. The patch is: Index:…
Mike
  • 25
  • 4
1
vote
1 answer

Some WIX extension tags write rows to CreateFolder table which lead to Not-Uninstallable Patch

I found an issue in WIX extension implementation. Some WIX extension tags write rows to CreateFolder table, e.g. , , . As the official MSI document says, a patch can be Not uninstallable if it contains new rows in the CreateFolder table. I think…
1
vote
1 answer

Tools to diff, patch or merge on a word-by-word basis

For text, not source code, files like LaTeX, markdown, restructuredText, usually single line breaks does not matter for the semantics and they are frequently refilled within 80 columns. When things are changed, the line break might change by quite a…
1
vote
1 answer

Identifying files for a hot fix/patch

We (occasionally!) have to issue hot fixes for our product and do this by reissuing the affected files directly rather than with a new installer. The product has a large number of pieces, some managed code, some unmanaged. Currently development…
Rob Walker
  • 46,588
  • 15
  • 99
  • 136
1
vote
1 answer

Mobile Azure Service C# .NET Backend PATCH not updating

I've created a simple .NET backend mobile azure service in C#. I have the mobile service up and running (all it's doing currently is working with your normal CRUD on a single table). The problem I'm having is that the PATCH/UPDATE will not do as…
Rob
  • 51
  • 1
1
vote
0 answers

How to split or merge patches or agents in NetLogo?

I have two conditions that I am unable to implement in NL. Consider the following scenario. I have cities as turtles. Each patch has one turtle i.e. one city. Under certain conditions I want to split a city into two but have it visually appear as…
AEA
  • 83
  • 6
1
vote
1 answer

How to download and apply a patch from gdb mailing list to gdb using git

I just want to apply a patch to gdb source code from gdb patch mailing list, but I dont know how to download the particular patch. The patch seems to contain a lot of messages along with the output of "diff" program so I am a bit confused and need…
bunny
  • 31
  • 2
1
vote
1 answer

Patching a method without changing how the method works?

I'm trying to test that a pandas method gets called with some values. However, just by applying a @patch decorator causes the patched method to throw a ValueError within pandas, when the actual method does not. I'm just trying to test that…
Grant David Bachman
  • 2,158
  • 3
  • 21
  • 32
1
vote
1 answer

How to find out all the patches applied between two git branches?

I want to find out all the patches that have been applied between two git branches. I tried the commands below, but that didn't work out for me. git diff 1.6..1.4 | grep -r -i --include *\.patch How can I find out all the patches that have…
Amit Singh Tomar
  • 8,380
  • 27
  • 120
  • 199
1
vote
1 answer

Patch alpha channel does not work with "copy figure"?

I want to copy the figure, keeping the vector based graphics. The reason for this is that I want to use the figure in Powerpoint. I cannot save the figure in .eps format, since Powerpoint will format the plot to some TIFF format or so and will only…
patrik
  • 4,506
  • 6
  • 24
  • 48
1 2 3
99
100